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
// EnvoyGateway is the configuration used to startup Envoy Gateway.
EnvoyGateway *v1alpha1.EnvoyGateway
// Client wrap k8s client.
Client *InfraClient
}
Infra manages the creation and deletion of Kubernetes infrastructure based on Infra IR resources.
func (*Infra) CreateOrUpdateProxyInfra ¶ added in v0.3.0
CreateOrUpdateProxyInfra creates the managed kube infra, if it doesn't exist.
func (*Infra) CreateOrUpdateRateLimitInfra ¶ added in v0.3.0
CreateOrUpdateRateLimitInfra creates the managed kube rate limit infra, if it doesn't exist.
func (*Infra) DeleteProxyInfra ¶ added in v0.3.0
DeleteProxyInfra removes the managed kube infra, if it doesn't exist.
type InfraClient ¶ added in v0.5.0
func New ¶ added in v0.5.0
func New(cli client.Client) *InfraClient
func (*InfraClient) CreateOrUpdate ¶ added in v0.5.0
type ResourceRender ¶ added in v0.5.0
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.