Documentation ¶
Index ¶
- type Infra
- type InfraClient
- func (cli *InfraClient) CreateOrUpdate(ctx context.Context, key client.ObjectKey, current client.Object, ...) error
- func (cli *InfraClient) Delete(ctx context.Context, object client.Object) error
- func (cli *InfraClient) GetUID(ctx context.Context, key client.ObjectKey, current client.Object) (types.UID, error)
- type ResourceRender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Infra ¶
type Infra struct { // Namespace is the Namespace used for managed infra. Namespace string // Client wrap k8s client. Client *InfraClient }
Infra manages the creation and deletion of Kubernetes infrastructure based on Infra IR resources.
func (*Infra) CreateOrUpdateProxyInfra ¶
CreateOrUpdateProxyInfra creates the managed kube infra, if it doesn't exist.
type InfraClient ¶
func New ¶
func New(cli client.Client) *InfraClient
func (*InfraClient) CreateOrUpdate ¶
type ResourceRender ¶
type ResourceRender interface { Name() string ServiceAccount() (*corev1.ServiceAccount, error) Service() (*corev1.Service, error) ConfigMap() (*corev1.ConfigMap, error) Deployment() (*appsv1.Deployment, error) HorizontalPodAutoscaler() (*autoscalingv2.HorizontalPodAutoscaler, error) }
ResourceRender renders Kubernetes infrastructure resources based on Infra IR resources.
Click to show internal directories.
Click to hide internal directories.