Documentation ¶
Index ¶
- func CheckGatewayAndIngressProtocol(tg gemsv1beta1.TenantGateway, ingresses []networkingv1.Ingress) error
- func CreateDefaultTenantGateway(client client.Client, log logr.Logger)
- func GetLabelInjectorMutateHandler(client *client.Client, log *logr.Logger) *webhook.Admission
- func GetMutateHandler(client *client.Client, log *logr.Logger, repo string) *webhook.Admission
- func GetValidateHandler(client *client.Client, log *logr.Logger) *webhook.Admission
- func IsGatewayHTTP2(tg gemsv1beta1.TenantGateway) bool
- func IsIngressGRPC(ingress networkingv1.Ingress) bool
- func RandHost(old string) string
- func ResourceKeys(list corev1.ResourceList) []corev1.ResourceName
- type LabelInjectorMutate
- type ResourceMutate
- func (r *ResourceMutate) Handle(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceMutate) InjectDecoder(d *admission.Decoder) error
- func (r *ResourceMutate) MutateDaemonSet(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceMutate) MutateDeployment(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceMutate) MutateEnvironment(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceMutate) MutateIngress(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceMutate) MutateStatefulSet(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceMutate) MutateTenantGateway(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceMutate) MutateTenantResourceQuota(ctx context.Context, req admission.Request) admission.Response
- type ResourceValidate
- func (r *ResourceValidate) Handle(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceValidate) InjectDecoder(d *admission.Decoder) error
- func (r *ResourceValidate) ValidateEnvironment(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceValidate) ValidateIstioGateway(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceValidate) ValidateNamespace(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceValidate) ValidateTenant(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceValidate) ValidateTenantGateway(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceValidate) ValidateTenantNetworkPolicy(ctx context.Context, req admission.Request) admission.Response
- func (r *ResourceValidate) ValidateTenantResourceQuota(ctx context.Context, req admission.Request) admission.Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckGatewayAndIngressProtocol ¶
func CheckGatewayAndIngressProtocol(tg gemsv1beta1.TenantGateway, ingresses []networkingv1.Ingress) error
func GetMutateHandler ¶
func GetValidateHandler ¶
func IsGatewayHTTP2 ¶
func IsGatewayHTTP2(tg gemsv1beta1.TenantGateway) bool
func IsIngressGRPC ¶
func IsIngressGRPC(ingress networkingv1.Ingress) bool
func ResourceKeys ¶ added in v1.22.0
func ResourceKeys(list corev1.ResourceList) []corev1.ResourceName
Types ¶
type LabelInjectorMutate ¶
type LabelInjectorMutate struct { Client client.Client Log logr.Logger // contains filtered or unexported fields }
func (*LabelInjectorMutate) CommonInjectLabel ¶
func (*LabelInjectorMutate) InjectDecoder ¶
func (r *LabelInjectorMutate) InjectDecoder(d *admission.Decoder) error
type ResourceMutate ¶
type ResourceMutate struct { Client client.Client Log logr.Logger Repo string // contains filtered or unexported fields }
func (*ResourceMutate) InjectDecoder ¶
func (r *ResourceMutate) InjectDecoder(d *admission.Decoder) error
func (*ResourceMutate) MutateDaemonSet ¶
func (*ResourceMutate) MutateDeployment ¶
func (*ResourceMutate) MutateEnvironment ¶
func (*ResourceMutate) MutateIngress ¶
func (*ResourceMutate) MutateStatefulSet ¶
func (*ResourceMutate) MutateTenantGateway ¶
func (*ResourceMutate) MutateTenantResourceQuota ¶
type ResourceValidate ¶
type ResourceValidate struct { Client client.Client Log logr.Logger // contains filtered or unexported fields }
func (*ResourceValidate) InjectDecoder ¶
func (r *ResourceValidate) InjectDecoder(d *admission.Decoder) error
func (*ResourceValidate) ValidateEnvironment ¶
func (*ResourceValidate) ValidateIstioGateway ¶
func (*ResourceValidate) ValidateNamespace ¶
func (*ResourceValidate) ValidateTenant ¶
func (*ResourceValidate) ValidateTenantGateway ¶
func (*ResourceValidate) ValidateTenantNetworkPolicy ¶
func (*ResourceValidate) ValidateTenantResourceQuota ¶
Source Files ¶
- doc.go
- gkv.go
- handler.go
- m_common_add_label.go
- m_daemoset.go
- m_deployment.go
- m_environment.go
- m_ingress.go
- m_statefulsets.go
- m_tenantgateway.go
- m_tenantresourcequota.go
- v_environment.go
- v_istiogateway.go
- v_namespace.go
- v_tenant.go
- v_tenantgateway.go
- v_tenantnetworkpolicy.go
- v_tenantresourcequota.go
- webhook_utils.go
Click to show internal directories.
Click to hide internal directories.