Documentation
¶
Index ¶
- Constants
- func AIGatewayAgentReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func AIGatewayAuthStrategyReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func AIGatewayConsumerCredentialReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func AIGatewayConsumerGroupReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func AIGatewayConsumerReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func AIGatewayDataPlaneCertificateReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func AIGatewayMCPServerReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func AIGatewayModelProviderReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func AIGatewayModelReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func AIGatewayPolicyReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func EnsureFinalizerOnKonnectAPIAuthConfiguration(ctx context.Context, cl client.Client, ...) (patched bool, err error)
- func EventGatewayBackendClusterReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func EventGatewayDataPlaneCertificateReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func EventGatewayListenerPolicyReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func EventGatewayListenerReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func EventGatewaySchemaRegistryReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func EventGatewayVirtualClusterConsumePolicyReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func EventGatewayVirtualClusterPolicyReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func EventGatewayVirtualClusterProducePolicyReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func EventGatewayVirtualClusterReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func GetAPIAuthRefNN[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]](ctx context.Context, cl client.Client, ent TEnt) (types.NamespacedName, error)
- func GetTokenFromKonnectAPIAuthConfiguration(ctx context.Context, cl client.Client, ...) (string, error)
- func KongCACertificateReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongCertificateReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongConsumerGroupReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongConsumerReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongDataPlaneClientCertificateReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongKeyReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongKeySetReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongPluginBindingReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongRouteReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongSNIReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongServiceReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongTargetReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongUpstreamReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KongVaultReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KonnectAIGatewayReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KonnectCloudGatewayDataPlaneGroupConfigurationReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KonnectCloudGatewayNetworkReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KonnectCloudGatewayTransitGatewayWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KonnectConfigStoreReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KonnectEventGatewayReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func KonnectGatewayControlPlaneReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func MCPServerReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func PortalCustomDomainReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func PortalCustomizationReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func PortalEmailConfigReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func PortalIPAllowListReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func PortalIdentityProviderRequestReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func PortalPageReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func PortalReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func PortalTeamReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
- func ReconciliationWatchOptionsForEntity[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]](cl client.Client, ent TEnt) []func(*ctrl.Builder) *ctrl.Builder
- type EntityWithControlPlaneRef
- type ForeignRelations
- type ForeignRelationsGroupedByControlPlane
- type KongCredentialSecretReconciler
- type KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) Build() *configurationv1alpha1.KongPluginBinding
- func (b *KongPluginBindingBuilder) WithConsumerGroupTarget(cg string) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithConsumerTarget(consumer string) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithControlPlaneRef(ref commonv1alpha1.ControlPlaneRef) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithControlPlaneRefKonnectNamespaced(name string) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithGenerateName(name string) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithName(name string) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithNamespace(namespace string) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithOwnerReference(owner client.Object, scheme *runtime.Scheme) (*KongPluginBindingBuilder, error)
- func (b *KongPluginBindingBuilder) WithPluginRefName(pluginName string) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithPluginRefNamespace(pluginNamespace string) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithRouteTarget(routeName string) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithScope(scope configurationv1alpha1.KongPluginBindingScope) *KongPluginBindingBuilder
- func (b *KongPluginBindingBuilder) WithServiceTarget(serviceName string) *KongPluginBindingBuilder
- type KongPluginReconciler
- type KonnectAPIAuthConfigurationReconciler
- type KonnectEntityPluginBindingFinalizerReconciler
- type KonnectEntityReconciler
- type KonnectEntityReconcilerOption
- func WithControllerOptions[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]](controllerOptions controller.Options) KonnectEntityReconcilerOption[T, TEnt]
- func WithKonnectEntitySyncPeriod[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]](d time.Duration) KonnectEntityReconcilerOption[T, TEnt]
- func WithMetricRecorder[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]](metricRecorder metrics.Recorder) KonnectEntityReconcilerOption[T, TEnt]
- type KonnectExtensionReconciler
- type KonnectSecretReferenceController
- type ReferencedKongCACertificateBelongsToWrongControlPlaneError
- type ReferencedKongCACertificateDoesNotExistError
- type ReferencedKongCertificateDoesNotExistError
- type ReferencedKongCertificateIsBeingDeletedError
- type ReferencedKongConsumerDoesNotExistError
- type ReferencedKongConsumerIsBeingDeletedError
- type ReferencedKongKeySetDoesNotExistError
- type ReferencedKongKeySetIsBeingDeletedError
- type ReferencedKongServiceIsBeingDeletedError
- type ReferencedKongUpstreamDoesNotExistError
- type ReferencedKongUpstreamIsBeingDeletedError
- type ReferencedObjectDoesNotExistError
- type ReferencedObjectIsBeingDeletedError
- type ReferencedObjectIsInvalidError
- type ReferencedSecretDoesNotExistError
- type Rel
- type SecretInUseEnforceT
- type UnsupportedGeneratedReferenceTypeError
- type WatchableEntityType
Constants ¶
const ( // KongCredentialTypeBasicAuth is the type of basic-auth credential, it's used // as the value for konghq.com/credential label. KongCredentialTypeBasicAuth = "basic-auth" // KongCredentialTypeAPIKey is the type of api-key credential, it's used // as the value for konghq.com/credential label. KongCredentialTypeAPIKey = "key-auth" // KongCredentialTypeJWT is the type of jwt-auth credential. // It's used as the values of konghq.com/credential label. KongCredentialTypeJWT = "jwt" // KongCredentialTypeACL is the type of Access Control Lists(ACLs) managed similar as credentials. // It's used as the value for konghq.com/credential label. KongCredentialTypeACL = "acl" // KongCredentialTypeHMAC is the type of HMAC credential, it's used // as the value for konghq.com/credential label. KongCredentialTypeHMAC = "hmac" )
const ( // CredentialSecretKeyNameAPIKeyKey is the credential secret key name for API key type. CredentialSecretKeyNameAPIKeyKey = "key" // CredentialSecretKeyNameACLGroupKey is the credential secret key name for ACL group type. CredentialSecretKeyNameACLGroupKey = "group" // CredentialSecretKeyNameJwtAlgorithmKey is the credential secret key name for JWT algorithm. CredentialSecretKeyNameJwtAlgorithmKey = "algorithm" // CredentialSecretKeyNameJwtKeyKey is the credential secret key name for JWT key. CredentialSecretKeyNameJwtKeyKey = "key" // CredentialSecretKeyNameJwtRSAPublicKeyKey is the credential secret key name for JWT RSA public key. CredentialSecretKeyNameJwtRSAPublicKeyKey = "rsa_public_key" //nolint:gosec // CredentialSecretKeyNameJwtSecretKey is the credentail secret ley name for JWT secret. CredentialSecretKeyNameJwtSecretKey = "secret" // CredentialSecretKeyNameHMACUsername is the credential secret key name for HMAC username type. CredentialSecretKeyNameHMACUsername = "username" // CredentialSecretKeyNameHMACSecret is the credential secret key name for HMAC secret type. CredentialSecretKeyNameHMACSecret = "secret" )
const ( // SecretTokenKey is the key used to store the token in the Secret. SecretTokenKey = "token" // SecretCredentialLabel is the label used to identify Secrets holding // KonnectAPIAuthConfiguration tokens. SecretCredentialLabel = "konghq.com/credential" //nolint:gosec // SecretCredentialLabelValueKonnect is the value of the label used to // identify Secrets holding KonnectAPIAuthConfiguration tokens. SecretCredentialLabelValueKonnect = "konnect" )
const APIAuthInUseFinalizer = "konnect.konghq.com/konnectapiauth-in-use"
APIAuthInUseFinalizer is a finalizer added to KonnectAPIAuthConfiguration resources that are currently in use by other Konnect resources. This finalizer prevents the deletion of the authentication configuration until all dependent resources have been properly cleaned up or updated to use a different authentication method.
const ( // CredentialTypeLabel is the label key for the credential type. CredentialTypeLabel = "konghq.com/credential" //nolint:gosec )
const ( // KonnectCleanupFinalizer is the finalizer that is added to the Konnect // entities when they are created in Konnect, and which is removed when // the CR and Konnect entity are deleted. KonnectCleanupFinalizer = "gateway.konghq.com/konnect-cleanup" )
const ( // SecretKonnectDataPlaneCertificateLabel is the label to mark that the secret is used as a Konnect DP certificate. // A secret must have the label to be watched by the KonnectExtension reconciler. SecretKonnectDataPlaneCertificateLabel = "konghq.com/konnect-dp-cert" //nolint:gosec )
Variables ¶
This section is empty.
Functions ¶
func AIGatewayAgentReconciliationWatchOptions ¶ added in v2.3.0
func AIGatewayAgentReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
AIGatewayAgentReconciliationWatchOptions returns the watch options for the AIGatewayAgent.
func AIGatewayAuthStrategyReconciliationWatchOptions ¶ added in v2.3.0
func AIGatewayAuthStrategyReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
AIGatewayAuthStrategyReconciliationWatchOptions returns the watch options for the AIGatewayAuthStrategy.
func AIGatewayConsumerCredentialReconciliationWatchOptions ¶ added in v2.3.0
func AIGatewayConsumerCredentialReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
AIGatewayConsumerCredentialReconciliationWatchOptions returns the watch options for the AIGatewayConsumerCredential.
func AIGatewayConsumerGroupReconciliationWatchOptions ¶ added in v2.3.0
func AIGatewayConsumerGroupReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
AIGatewayConsumerGroupReconciliationWatchOptions returns the watch options for the AIGatewayConsumerGroup.
func AIGatewayConsumerReconciliationWatchOptions ¶ added in v2.3.0
func AIGatewayConsumerReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
AIGatewayConsumerReconciliationWatchOptions returns the watch options for the AIGatewayConsumer.
func AIGatewayDataPlaneCertificateReconciliationWatchOptions ¶ added in v2.3.0
func AIGatewayDataPlaneCertificateReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
AIGatewayDataPlaneCertificateReconciliationWatchOptions returns the watch options for the AIGatewayDataPlaneCertificate.
func AIGatewayMCPServerReconciliationWatchOptions ¶ added in v2.3.0
func AIGatewayMCPServerReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
AIGatewayMCPServerReconciliationWatchOptions returns the watch options for the AIGatewayMCPServer.
func AIGatewayModelProviderReconciliationWatchOptions ¶ added in v2.3.0
func AIGatewayModelProviderReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
AIGatewayModelProviderReconciliationWatchOptions returns the watch options for the AIGatewayModelProvider.
func AIGatewayModelReconciliationWatchOptions ¶ added in v2.3.0
func AIGatewayModelReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
AIGatewayModelReconciliationWatchOptions returns the watch options for the AIGatewayModel.
func AIGatewayPolicyReconciliationWatchOptions ¶ added in v2.3.0
func AIGatewayPolicyReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
AIGatewayPolicyReconciliationWatchOptions returns the watch options for the AIGatewayPolicy.
func EnsureFinalizerOnKonnectAPIAuthConfiguration ¶ added in v2.1.1
func EnsureFinalizerOnKonnectAPIAuthConfiguration( ctx context.Context, cl client.Client, apiAuth *konnectv1alpha1.KonnectAPIAuthConfiguration, ) (patched bool, err error)
EnsureFinalizerOnKonnectAPIAuthConfiguration ensures that the KonnectAPIAuthConfiguration has a finalizer if there are any resources referencing it, or removes the finalizer if there are no referencing resources.
It iterates through all types in KonnectAPIAuthReferencingTypeListsWithIndexes and checks if any resources of those types reference the given KonnectAPIAuthConfiguration. If at least one referencing resource is found, it adds the APIAuthInUseFinalizer to the KonnectAPIAuthConfiguration. If no referencing resources are found, it removes the finalizer.
Parameters:
- ctx: The context for the operation
- cl: The Kubernetes client used to list resources and patch the KonnectAPIAuthConfiguration
- apiAuth: The KonnectAPIAuthConfiguration to ensure the finalizer on
Returns:
- patched: true if the KonnectAPIAuthConfiguration was modified (finalizer added or removed), false otherwise
- err: An error if the operation failed, nil otherwise
func EventGatewayBackendClusterReconciliationWatchOptions ¶ added in v2.2.0
func EventGatewayBackendClusterReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
EventGatewayBackendClusterReconciliationWatchOptions returns the watch options for the EventGatewayBackendCluster.
func EventGatewayDataPlaneCertificateReconciliationWatchOptions ¶ added in v2.2.0
func EventGatewayDataPlaneCertificateReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
EventGatewayDataPlaneCertificateReconciliationWatchOptions returns the watch options for the EventGatewayDataPlaneCertificate.
func EventGatewayListenerPolicyReconciliationWatchOptions ¶ added in v2.2.0
func EventGatewayListenerPolicyReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
EventGatewayListenerPolicyReconciliationWatchOptions returns the watch options for the EventGatewayListenerPolicy.
func EventGatewayListenerReconciliationWatchOptions ¶ added in v2.2.0
func EventGatewayListenerReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
EventGatewayListenerReconciliationWatchOptions returns the watch options for the EventGatewayListener.
func EventGatewaySchemaRegistryReconciliationWatchOptions ¶ added in v2.3.0
func EventGatewaySchemaRegistryReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
EventGatewaySchemaRegistryReconciliationWatchOptions returns the watch options for the EventGatewaySchemaRegistry.
func EventGatewayVirtualClusterConsumePolicyReconciliationWatchOptions ¶ added in v2.2.0
func EventGatewayVirtualClusterConsumePolicyReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
EventGatewayVirtualClusterConsumePolicyReconciliationWatchOptions returns the watch options for the EventGatewayVirtualClusterConsumePolicy.
func EventGatewayVirtualClusterPolicyReconciliationWatchOptions ¶ added in v2.2.0
func EventGatewayVirtualClusterPolicyReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
EventGatewayVirtualClusterPolicyReconciliationWatchOptions returns the watch options for the EventGatewayVirtualClusterPolicy.
func EventGatewayVirtualClusterProducePolicyReconciliationWatchOptions ¶ added in v2.2.0
func EventGatewayVirtualClusterProducePolicyReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
EventGatewayVirtualClusterProducePolicyReconciliationWatchOptions returns the watch options for the EventGatewayVirtualClusterProducePolicy.
func EventGatewayVirtualClusterReconciliationWatchOptions ¶ added in v2.2.0
func EventGatewayVirtualClusterReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
EventGatewayVirtualClusterReconciliationWatchOptions returns the watch options for the EventGatewayVirtualCluster.
func GetAPIAuthRefNN ¶ added in v2.1.7
func GetAPIAuthRefNN[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]]( ctx context.Context, cl client.Client, ent TEnt, ) (types.NamespacedName, error)
GetAPIAuthRefNN returns the NamespacedName of the KonnectAPIAuthConfiguration referenced by the entity.
func GetTokenFromKonnectAPIAuthConfiguration ¶ added in v2.2.0
func GetTokenFromKonnectAPIAuthConfiguration( ctx context.Context, cl client.Client, apiAuth *konnectv1alpha1.KonnectAPIAuthConfiguration, ) (string, error)
GetTokenFromKonnectAPIAuthConfiguration returns the token from the secret reference or the token field.
func KongCACertificateReconciliationWatchOptions ¶
func KongCACertificateReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
KongCACertificateReconciliationWatchOptions returns the watch options for the KongCACertificate.
func KongCertificateReconciliationWatchOptions ¶
func KongCertificateReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
KongCertificateReconciliationWatchOptions returns the watch options for the KongCertificate.
func KongConsumerGroupReconciliationWatchOptions ¶
func KongConsumerGroupReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
KongConsumerGroupReconciliationWatchOptions returns the watch options for the KongConsumerGroup.
func KongConsumerReconciliationWatchOptions ¶
func KongConsumerReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
KongConsumerReconciliationWatchOptions returns the watch options for the KongConsumer.
func KongDataPlaneClientCertificateReconciliationWatchOptions ¶
func KongDataPlaneClientCertificateReconciliationWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
KongDataPlaneClientCertificateReconciliationWatchOptions returns the watch options for the KongDataPlaneClientCertificate.
func KongKeyReconciliationWatchOptions ¶
KongKeyReconciliationWatchOptions returns the watch options for the KongKey.
func KongKeySetReconciliationWatchOptions ¶
KongKeySetReconciliationWatchOptions returns the watch options for the KongKeySet.
func KongPluginBindingReconciliationWatchOptions ¶
func KongPluginBindingReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
KongPluginBindingReconciliationWatchOptions returns the watch options for the KongPluginBinding.
func KongRouteReconciliationWatchOptions ¶
KongRouteReconciliationWatchOptions returns the watch options for the KongRoute.
func KongSNIReconciliationWatchOptions ¶
KongSNIReconciliationWatchOptions returns the watch options for the KongSNI.
func KongServiceReconciliationWatchOptions ¶
KongServiceReconciliationWatchOptions returns the watch options for the KongService.
func KongTargetReconciliationWatchOptions ¶
KongTargetReconciliationWatchOptions returns the watch options for the KongTarget.
func KongUpstreamReconciliationWatchOptions ¶
func KongUpstreamReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
KongUpstreamReconciliationWatchOptions returns the watch options for the KongUpstream.
func KongVaultReconciliationWatchOptions ¶
KongVaultReconciliationWatchOptions returns the watch options for KongVault.
func KonnectAIGatewayReconciliationWatchOptions ¶ added in v2.3.0
func KonnectAIGatewayReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
KonnectAIGatewayReconciliationWatchOptions returns the watch options for the KonnectAIGateway.
func KonnectCloudGatewayDataPlaneGroupConfigurationReconciliationWatchOptions ¶
func KonnectCloudGatewayDataPlaneGroupConfigurationReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
KonnectCloudGatewayDataPlaneGroupConfigurationReconciliationWatchOptions returns the watch options for the KonnectCloudGatewayDataPlaneGroupConfiguration.
func KonnectCloudGatewayNetworkReconciliationWatchOptions ¶
func KonnectCloudGatewayNetworkReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
KonnectCloudGatewayNetworkReconciliationWatchOptions returns the watch options for the KonnectCloudGatewayNetwork.
func KonnectCloudGatewayTransitGatewayWatchOptions ¶
func KonnectCloudGatewayTransitGatewayWatchOptions(cl client.Client) []func(*ctrl.Builder) *ctrl.Builder
KonnectCloudGatewayTransitGatewayWatchOptions returns the watch options for KonnectCloudGatewayTransitGateway controller.
func KonnectConfigStoreReconciliationWatchOptions ¶ added in v2.3.0
func KonnectConfigStoreReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
KonnectConfigStoreReconciliationWatchOptions returns the watch options for the KonnectConfigStore.
func KonnectEventGatewayReconciliationWatchOptions ¶ added in v2.2.0
func KonnectEventGatewayReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
KonnectEventGatewayReconciliationWatchOptions returns the watch options for the KonnectEventGateway.
func KonnectGatewayControlPlaneReconciliationWatchOptions ¶
func KonnectGatewayControlPlaneReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
KonnectGatewayControlPlaneReconciliationWatchOptions returns the watch options for the KonnectGatewayControlPlane.
func MCPServerReconciliationWatchOptions ¶ added in v2.2.0
MCPServerReconciliationWatchOptions returns the watch options for MCPServer.
func PortalCustomDomainReconciliationWatchOptions ¶ added in v2.2.0
func PortalCustomDomainReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
PortalCustomDomainReconciliationWatchOptions returns the watch options for the PortalCustomDomain.
func PortalCustomizationReconciliationWatchOptions ¶ added in v2.2.0
func PortalCustomizationReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
PortalCustomizationReconciliationWatchOptions returns the watch options for the PortalCustomization.
func PortalEmailConfigReconciliationWatchOptions ¶ added in v2.2.0
func PortalEmailConfigReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
PortalEmailConfigReconciliationWatchOptions returns the watch options for the PortalEmailConfig.
func PortalIPAllowListReconciliationWatchOptions ¶ added in v2.2.0
func PortalIPAllowListReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
PortalIPAllowListReconciliationWatchOptions returns the watch options for the PortalIPAllowList.
func PortalIdentityProviderRequestReconciliationWatchOptions ¶ added in v2.2.0
func PortalIdentityProviderRequestReconciliationWatchOptions( cl client.Client, ) []func(*ctrl.Builder) *ctrl.Builder
PortalIdentityProviderRequestReconciliationWatchOptions returns the watch options for the PortalIdentityProviderRequest.
func PortalPageReconciliationWatchOptions ¶ added in v2.2.0
PortalPageReconciliationWatchOptions returns the watch options for the PortalPage.
func PortalReconciliationWatchOptions ¶ added in v2.2.0
PortalReconciliationWatchOptions returns the watch options for the Portal.
func PortalTeamReconciliationWatchOptions ¶ added in v2.2.0
PortalTeamReconciliationWatchOptions returns the watch options for the PortalTeam.
func ReconciliationWatchOptionsForEntity ¶
func ReconciliationWatchOptionsForEntity[ T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T], ]( cl client.Client, ent TEnt, ) []func(*ctrl.Builder) *ctrl.Builder
ReconciliationWatchOptionsForEntity returns the watch options for the given Konnect entity type.
Types ¶
type EntityWithControlPlaneRef ¶
EntityWithControlPlaneRef is an interface for entities that have a ControlPlaneRef.
type ForeignRelations ¶
type ForeignRelations struct {
Consumer []configurationv1.KongConsumer
ConsumerGroup []configurationv1beta1.KongConsumerGroup
Route []configurationv1alpha1.KongRoute
Service []configurationv1alpha1.KongService
}
ForeignRelations contains all the relations between Kong entities and KongPlugin.
func (*ForeignRelations) GetCombinations ¶
func (relations *ForeignRelations) GetCombinations() []Rel
GetCombinations returns all possible combinations of relations.
NOTE: This is heavily based on the implementation in the Kong Ingress Controller: https://github.com/Kong/kubernetes-ingress-controller/blob/ee797b4e84bd176526af32ab6db54f16ee9c245b/internal/util/relations_test.go
TODO: https://github.com/kong/kong-operator/pull/659 The combinations created here should be reconsidered. Specifically the Service + Route combination which currently creates 2 separate relations targeting Service and Route independently. This most likely should create 2 relations targeting Service and Service+Route.
func (*ForeignRelations) GroupByControlPlane ¶
func (relations *ForeignRelations) GroupByControlPlane( ctx context.Context, cl client.Client, ) (ForeignRelationsGroupedByControlPlane, error)
GroupByControlPlane groups all the entities by ControlPlane.
type ForeignRelationsGroupedByControlPlane ¶
type ForeignRelationsGroupedByControlPlane map[types.NamespacedName]ForeignRelations
ForeignRelationsGroupedByControlPlane is a map of ForeignRelations grouped by ControlPlane.
func (ForeignRelationsGroupedByControlPlane) GetCombinations ¶
func (f ForeignRelationsGroupedByControlPlane) GetCombinations() map[types.NamespacedName][]Rel
GetCombinations returns all possible combinations of relations grouped by ControlPlane.
type KongCredentialSecretReconciler ¶
type KongCredentialSecretReconciler struct {
// contains filtered or unexported fields
}
KongCredentialSecretReconciler reconciles a KongPlugin object.
func NewKongCredentialSecretReconciler ¶
func NewKongCredentialSecretReconciler( ctrlOptions controller.Options, loggingMode logging.Mode, client client.Client, scheme *runtime.Scheme, ) *KongCredentialSecretReconciler
NewKongCredentialSecretReconciler creates a new KongCredentialSecretReconciler.
func (*KongCredentialSecretReconciler) Reconcile ¶
func (r *KongCredentialSecretReconciler) Reconcile(ctx context.Context, secret *corev1.Secret) (ctrl.Result, error)
Reconcile reconciles a Secrets that are used as Consumers credentials.
func (*KongCredentialSecretReconciler) SetupWithManager ¶
func (r *KongCredentialSecretReconciler) SetupWithManager(_ context.Context, mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KongPluginBindingBuilder ¶
type KongPluginBindingBuilder struct {
// contains filtered or unexported fields
}
KongPluginBindingBuilder helps to build KongPluginBinding objects.
func NewKongPluginBindingBuilder ¶
func NewKongPluginBindingBuilder() *KongPluginBindingBuilder
NewKongPluginBindingBuilder creates a new KongPluginBindingBuilder.
func (*KongPluginBindingBuilder) Build ¶
func (b *KongPluginBindingBuilder) Build() *configurationv1alpha1.KongPluginBinding
Build returns the KongPluginBinding.
func (*KongPluginBindingBuilder) WithConsumerGroupTarget ¶
func (b *KongPluginBindingBuilder) WithConsumerGroupTarget(cg string) *KongPluginBindingBuilder
WithConsumerGroupTarget sets the consumer group target of the KongPluginBinding.
func (*KongPluginBindingBuilder) WithConsumerTarget ¶
func (b *KongPluginBindingBuilder) WithConsumerTarget(consumer string) *KongPluginBindingBuilder
WithConsumerTarget sets the consumer target of the KongPluginBinding.
func (*KongPluginBindingBuilder) WithControlPlaneRef ¶
func (b *KongPluginBindingBuilder) WithControlPlaneRef(ref commonv1alpha1.ControlPlaneRef) *KongPluginBindingBuilder
WithControlPlaneRef sets the control plane reference of the KongPluginBinding. NOTE: Users have to ensure that the ControlPlaneRef that's set here is the same across all the KongPluginBinding targets.
func (*KongPluginBindingBuilder) WithControlPlaneRefKonnectNamespaced ¶
func (b *KongPluginBindingBuilder) WithControlPlaneRefKonnectNamespaced(name string) *KongPluginBindingBuilder
WithControlPlaneRefKonnectNamespaced sets the control plane reference of the KongPluginBinding. NOTE: Users have to ensure that the ControlPlaneRef that's set here is the same across all the KongPluginBinding targets.
func (*KongPluginBindingBuilder) WithGenerateName ¶
func (b *KongPluginBindingBuilder) WithGenerateName(name string) *KongPluginBindingBuilder
WithGenerateName sets the generate name of the KongPluginBinding.
func (*KongPluginBindingBuilder) WithName ¶
func (b *KongPluginBindingBuilder) WithName(name string) *KongPluginBindingBuilder
WithName sets the name of the KongPluginBinding.
func (*KongPluginBindingBuilder) WithNamespace ¶
func (b *KongPluginBindingBuilder) WithNamespace(namespace string) *KongPluginBindingBuilder
WithNamespace sets the namespace of the KongPluginBinding.
func (*KongPluginBindingBuilder) WithOwnerReference ¶
func (b *KongPluginBindingBuilder) WithOwnerReference(owner client.Object, scheme *runtime.Scheme) (*KongPluginBindingBuilder, error)
WithOwnerReference sets the owner reference of the KongPluginBinding.
func (*KongPluginBindingBuilder) WithPluginRefName ¶ added in v2.1.1
func (b *KongPluginBindingBuilder) WithPluginRefName(pluginName string) *KongPluginBindingBuilder
WithPluginRefName sets the plugin reference of the KongPluginBinding.
func (*KongPluginBindingBuilder) WithPluginRefNamespace ¶ added in v2.1.1
func (b *KongPluginBindingBuilder) WithPluginRefNamespace(pluginNamespace string) *KongPluginBindingBuilder
WithPluginRefNamespace sets the plugin reference namespace of the KongPluginBinding.
func (*KongPluginBindingBuilder) WithRouteTarget ¶
func (b *KongPluginBindingBuilder) WithRouteTarget(routeName string) *KongPluginBindingBuilder
WithRouteTarget sets the route target of the KongPluginBinding.
func (*KongPluginBindingBuilder) WithScope ¶
func (b *KongPluginBindingBuilder) WithScope(scope configurationv1alpha1.KongPluginBindingScope) *KongPluginBindingBuilder
WithScope sets the scope of the KongPluginBinding.
func (*KongPluginBindingBuilder) WithServiceTarget ¶
func (b *KongPluginBindingBuilder) WithServiceTarget(serviceName string) *KongPluginBindingBuilder
WithServiceTarget sets the service target of the KongPluginBinding.
type KongPluginReconciler ¶
type KongPluginReconciler struct {
// contains filtered or unexported fields
}
KongPluginReconciler reconciles a KongPlugin object.
func NewKongPluginReconciler ¶
func NewKongPluginReconciler( ctrlOptions controller.Options, loggingMode logging.Mode, client client.Client, ) *KongPluginReconciler
NewKongPluginReconciler creates a new KongPluginReconciler.
func (*KongPluginReconciler) Reconcile ¶
func (r *KongPluginReconciler) Reconcile(ctx context.Context, kongPlugin *configurationv1.KongPlugin) (ctrl.Result, error)
Reconcile reconciles a KongPlugin object. The purpose of this reconciler is to handle annotations on Kong entities objects that reference KongPlugin objects. As a result of such annotations, KongPluginBinding objects are created and managed by the controller.
func (*KongPluginReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type KonnectAPIAuthConfigurationReconciler ¶
type KonnectAPIAuthConfigurationReconciler struct {
// contains filtered or unexported fields
}
KonnectAPIAuthConfigurationReconciler reconciles a KonnectAPIAuthConfiguration object.
func NewKonnectAPIAuthConfigurationReconciler ¶
func NewKonnectAPIAuthConfigurationReconciler( controllerOptions controller.Options, sdkFactory sdkops.SDKFactory, loggingMode logging.Mode, client client.Client, ) *KonnectAPIAuthConfigurationReconciler
NewKonnectAPIAuthConfigurationReconciler creates a new KonnectAPIAuthConfigurationReconciler.
func (*KonnectAPIAuthConfigurationReconciler) Reconcile ¶
func (r *KonnectAPIAuthConfigurationReconciler) Reconcile( ctx context.Context, apiAuth *konnectv1alpha1.KonnectAPIAuthConfiguration, ) (ctrl.Result, error)
Reconcile reconciles a KonnectAPIAuthConfiguration object.
func (*KonnectAPIAuthConfigurationReconciler) SetupWithManager ¶
func (r *KonnectAPIAuthConfigurationReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type KonnectEntityPluginBindingFinalizerReconciler ¶
type KonnectEntityPluginBindingFinalizerReconciler[ T constraints.SupportedKonnectEntityPluginReferenceableType, TEnt constraints.EntityType[T], ] struct { ControllerOptions controller.Options LoggingMode logging.Mode Client client.Client }
KonnectEntityPluginBindingFinalizerReconciler reconciles Konnect entities that may be referenced by KongPluginBinding. It uses the generic type constraints to constrain the supported types.
func NewKonnectEntityPluginReconciler ¶
func NewKonnectEntityPluginReconciler[ T constraints.SupportedKonnectEntityPluginReferenceableType, TEnt constraints.EntityType[T], ]( controllerOptions controller.Options, loggingMode logging.Mode, client client.Client, ) *KonnectEntityPluginBindingFinalizerReconciler[T, TEnt]
NewKonnectEntityPluginReconciler returns a new KonnectEntityPluginReconciler for the given Konnect entity type.
func (*KonnectEntityPluginBindingFinalizerReconciler[T, TEnt]) Reconcile ¶
func (r *KonnectEntityPluginBindingFinalizerReconciler[T, TEnt]) Reconcile( ctx context.Context, ent TEnt, ) (ctrl.Result, error)
Reconcile reconciles the Konnect entity that can be set as KongPluginBinding target. It reconciles only entities that are referenced by managed KongPluginBindings, i.e. those that are created by the controller out of konghq.com/plugins annotations.
Its purpose is to:
- check if the entity is marked for deletion and mark KongPluginBindings that reference it.
- add a finalizer to the entity if there are KongPluginBindings referencing it. This finalizer designates that this entity needs to have its KongPluginBindings removed upon deletion
- remove the finalizer if all KongPluginBindings referencing it are removed.
func (*KonnectEntityPluginBindingFinalizerReconciler[T, TEnt]) SetupWithManager ¶
func (r *KonnectEntityPluginBindingFinalizerReconciler[T, TEnt]) SetupWithManager( ctx context.Context, mgr ctrl.Manager, ) error
SetupWithManager sets up the controller with the given manager.
type KonnectEntityReconciler ¶
type KonnectEntityReconciler[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]] struct { ControllerOptions controller.Options Client client.Client LoggingMode logging.Mode SyncPeriod time.Duration MetricRecorder metrics.Recorder // contains filtered or unexported fields }
KonnectEntityReconciler reconciles a Konnect entities. It uses the generic type constraints to constrain the supported types.
func NewKonnectEntityReconciler ¶
func NewKonnectEntityReconciler[ T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T], ]( sdkFactory sdkops.SDKFactory, loggingMode logging.Mode, client client.Client, opts ...KonnectEntityReconcilerOption[T, TEnt], ) *KonnectEntityReconciler[T, TEnt]
NewKonnectEntityReconciler returns a new KonnectEntityReconciler for the given Konnect entity type.
func (*KonnectEntityReconciler[T, TEnt]) Reconcile ¶
func (r *KonnectEntityReconciler[T, TEnt]) Reconcile(ctx context.Context, ent TEnt) (ctrl.Result, error)
Reconcile reconciles the given Konnect entity.
func (*KonnectEntityReconciler[T, TEnt]) SetupWithManager ¶
func (r *KonnectEntityReconciler[T, TEnt]) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
SetupWithManager sets up the controller with the given manager.
type KonnectEntityReconcilerOption ¶
type KonnectEntityReconcilerOption[ T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T], ] func(*KonnectEntityReconciler[T, TEnt])
KonnectEntityReconcilerOption is a functional option for the KonnectEntityReconciler.
func WithControllerOptions ¶ added in v2.1.1
func WithControllerOptions[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]]( controllerOptions controller.Options, ) KonnectEntityReconcilerOption[T, TEnt]
WithControllerOptions sets the controller options for the reconciler.
func WithKonnectEntitySyncPeriod ¶
func WithKonnectEntitySyncPeriod[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]]( d time.Duration, ) KonnectEntityReconcilerOption[T, TEnt]
WithKonnectEntitySyncPeriod sets the sync period for the reconciler.
func WithMetricRecorder ¶
func WithMetricRecorder[T constraints.SupportedKonnectEntityType, TEnt constraints.EntityType[T]]( metricRecorder metrics.Recorder, ) KonnectEntityReconcilerOption[T, TEnt]
WithMetricRecorder sets the metric recorder to record metrics of Konnect entity operations of the reconciler.
type KonnectExtensionReconciler ¶
type KonnectExtensionReconciler struct {
client.Client
ControllerOptions controller.Options
LoggingMode logging.Mode
SyncPeriod time.Duration
ClusterCASecretName string
ClusterCASecretNamespace string
SecretLabelSelector string
CertTTL time.Duration
}
KonnectExtensionReconciler reconciles a KonnectExtension object.
func (*KonnectExtensionReconciler) Reconcile ¶
func (r *KonnectExtensionReconciler) Reconcile(ctx context.Context, ext *konnectv1alpha2.KonnectExtension) (ctrl.Result, error)
Reconcile reconciles a KonnectExtension object.
func (*KonnectExtensionReconciler) SetupWithManager ¶
SetupWithManager sets up the controller with the Manager.
type KonnectSecretReferenceController ¶ added in v2.1.1
type KonnectSecretReferenceController struct {
// contains filtered or unexported fields
}
KonnectSecretReferenceController reconciles Secret objects that are referenced by Konnect resources. It manages the SecretInUseFinalizer to prevent deletion of secrets while they are still referenced. by Konnect resources.
func NewKonnectSecretReferenceController ¶ added in v2.1.1
func NewKonnectSecretReferenceController( client client.Client, controllerOptions controller.Options, loggingMode logging.Mode, ) *KonnectSecretReferenceController
NewKonnectSecretReferenceController creates a new KonnectSecretReferenceController.
func (*KonnectSecretReferenceController) Reconcile ¶ added in v2.1.1
func (r *KonnectSecretReferenceController) Reconcile(ctx context.Context, secret *corev1.Secret) (ctrl.Result, error)
Reconcile reconciles a Secret object.
func (*KonnectSecretReferenceController) SetupWithManager ¶ added in v2.1.1
func (r *KonnectSecretReferenceController) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type ReferencedKongCACertificateBelongsToWrongControlPlaneError ¶ added in v2.2.0
type ReferencedKongCACertificateBelongsToWrongControlPlaneError struct {
Reference types.NamespacedName
CertCPID string
ServiceCPID string
}
ReferencedKongCACertificateBelongsToWrongControlPlaneError is returned when a referenced KongCACertificate belongs to a different ControlPlane.
func (ReferencedKongCACertificateBelongsToWrongControlPlaneError) Error ¶ added in v2.2.0
func (e ReferencedKongCACertificateBelongsToWrongControlPlaneError) Error() string
Error implements the error interface.
type ReferencedKongCACertificateDoesNotExistError ¶ added in v2.2.0
type ReferencedKongCACertificateDoesNotExistError struct {
Reference types.NamespacedName
Err error
}
ReferencedKongCACertificateDoesNotExistError is an error type that is returned when a Konnect entity references a KongCACertificate which does not exist.
func (ReferencedKongCACertificateDoesNotExistError) Error ¶ added in v2.2.0
func (e ReferencedKongCACertificateDoesNotExistError) Error() string
Error implements the error interface.
type ReferencedKongCertificateDoesNotExistError ¶ added in v2.2.0
type ReferencedKongCertificateDoesNotExistError struct {
Reference types.NamespacedName
Err error
}
ReferencedKongCertificateDoesNotExistError is an error type that is returned when a Konnect entity references a Kong Certificate which does not exist.
func (ReferencedKongCertificateDoesNotExistError) Error ¶ added in v2.2.0
func (e ReferencedKongCertificateDoesNotExistError) Error() string
Error implements the error interface.
type ReferencedKongCertificateIsBeingDeletedError ¶ added in v2.2.0
type ReferencedKongCertificateIsBeingDeletedError struct {
Reference types.NamespacedName
DeletionTimestamp time.Time
}
ReferencedKongCertificateIsBeingDeletedError is an error type that is returned when a Konnect entity references a Kong Certificate which is being deleted.
func (ReferencedKongCertificateIsBeingDeletedError) Error ¶ added in v2.2.0
func (e ReferencedKongCertificateIsBeingDeletedError) Error() string
Error implements the error interface.
type ReferencedKongConsumerDoesNotExistError ¶ added in v2.2.0
type ReferencedKongConsumerDoesNotExistError struct {
Reference types.NamespacedName
Err error
}
ReferencedKongConsumerDoesNotExistError is an error type that is returned when the referenced KongConsumer does not exist.
func (ReferencedKongConsumerDoesNotExistError) Error ¶ added in v2.2.0
func (e ReferencedKongConsumerDoesNotExistError) Error() string
Error implements the error interface.
type ReferencedKongConsumerIsBeingDeletedError ¶ added in v2.2.0
type ReferencedKongConsumerIsBeingDeletedError struct {
Reference types.NamespacedName
DeletionTimestamp time.Time
}
ReferencedKongConsumerIsBeingDeletedError is an error type that is returned when a Konnect entity references a Kong Consumer which is being deleted.
func (ReferencedKongConsumerIsBeingDeletedError) Error ¶ added in v2.2.0
func (e ReferencedKongConsumerIsBeingDeletedError) Error() string
Error implements the error interface.
type ReferencedKongKeySetDoesNotExistError ¶ added in v2.2.0
type ReferencedKongKeySetDoesNotExistError struct {
Reference types.NamespacedName
Err error
}
ReferencedKongKeySetDoesNotExistError is an error type that is returned when a Konnect entity references a KongKeySet which does not exist.
func (ReferencedKongKeySetDoesNotExistError) Error ¶ added in v2.2.0
func (e ReferencedKongKeySetDoesNotExistError) Error() string
Error implements the error interface.
type ReferencedKongKeySetIsBeingDeletedError ¶ added in v2.2.0
type ReferencedKongKeySetIsBeingDeletedError struct {
Reference types.NamespacedName
DeletionTimestamp time.Time
}
ReferencedKongKeySetIsBeingDeletedError is an error type that is returned when a Konnect entity references a KongKeySet which is being deleted.
func (ReferencedKongKeySetIsBeingDeletedError) Error ¶ added in v2.2.0
func (e ReferencedKongKeySetIsBeingDeletedError) Error() string
Error implements the error interface.
type ReferencedKongServiceIsBeingDeletedError ¶ added in v2.2.0
type ReferencedKongServiceIsBeingDeletedError struct {
Reference types.NamespacedName
}
ReferencedKongServiceIsBeingDeletedError is an error type that is returned when a Konnect entity references a Kong Service which is being deleted.
func (ReferencedKongServiceIsBeingDeletedError) Error ¶ added in v2.2.0
func (e ReferencedKongServiceIsBeingDeletedError) Error() string
Error implements the error interface.
type ReferencedKongUpstreamDoesNotExistError ¶ added in v2.2.0
type ReferencedKongUpstreamDoesNotExistError struct {
Reference types.NamespacedName
Err error
}
ReferencedKongUpstreamDoesNotExistError is an error type that is returned when a Konnect entity references a Kong Upstream which does not exist.
func (ReferencedKongUpstreamDoesNotExistError) Error ¶ added in v2.2.0
func (e ReferencedKongUpstreamDoesNotExistError) Error() string
Error implements the error interface.
type ReferencedKongUpstreamIsBeingDeletedError ¶ added in v2.2.0
type ReferencedKongUpstreamIsBeingDeletedError struct {
Reference types.NamespacedName
DeletionTimestamp time.Time
}
ReferencedKongUpstreamIsBeingDeletedError is an error type that is returned when a Konnect entity references a Kong Upstream which is being deleted.
func (ReferencedKongUpstreamIsBeingDeletedError) Error ¶ added in v2.2.0
func (e ReferencedKongUpstreamIsBeingDeletedError) Error() string
Error implements the error interface.
type ReferencedObjectDoesNotExistError ¶ added in v2.2.0
type ReferencedObjectDoesNotExistError struct {
Reference types.NamespacedName
Err error
}
ReferencedObjectDoesNotExistError is an error type that is returned when a Konnect entity references a non existing object.
func (ReferencedObjectDoesNotExistError) Error ¶ added in v2.2.0
func (e ReferencedObjectDoesNotExistError) Error() string
Error implements the error interface.
type ReferencedObjectIsBeingDeletedError ¶ added in v2.2.0
type ReferencedObjectIsBeingDeletedError struct {
Reference types.NamespacedName
DeletionTimestamp time.Time
}
ReferencedObjectIsBeingDeletedError is an error type that is returned when a Konnect entity references an object which is being deleted.
func (ReferencedObjectIsBeingDeletedError) Error ¶ added in v2.2.0
func (e ReferencedObjectIsBeingDeletedError) Error() string
Error implements the error interface.
type ReferencedObjectIsInvalidError ¶ added in v2.2.0
ReferencedObjectIsInvalidError is an error type that is returned when the referenced object is invalid.
func (ReferencedObjectIsInvalidError) Error ¶ added in v2.2.0
func (e ReferencedObjectIsInvalidError) Error() string
Error implements the error interface.
type ReferencedSecretDoesNotExistError ¶ added in v2.2.0
type ReferencedSecretDoesNotExistError struct {
Reference types.NamespacedName
Err error
}
ReferencedSecretDoesNotExistError is an error type that is returned when a Konnect entity references a Secret which does not exist.
func (ReferencedSecretDoesNotExistError) Error ¶ added in v2.2.0
func (e ReferencedSecretDoesNotExistError) Error() string
Error implements the error interface.
type Rel ¶
type Rel struct {
Consumer, ConsumerGroup, Route, Service string
}
Rel represents a relation between Kong entities and KongPlugin.
type SecretInUseEnforceT ¶ added in v2.1.1
type SecretInUseEnforceT string
SecretInUseEnforceT is an enum type for enforcing or removing the secret-in-use finalizer.
const ( // SecretInUseEnforceAdd enforces the secret-in-use finalizer. SecretInUseEnforceAdd SecretInUseEnforceT = "add" // SecretInUseEnforceRemove removes the secret-in-use finalizer. SecretInUseEnforceRemove SecretInUseEnforceT = "remove" )
type UnsupportedGeneratedReferenceTypeError ¶ added in v2.2.0
type UnsupportedGeneratedReferenceTypeError struct {
TypeName string
}
UnsupportedGeneratedReferenceTypeError is returned by generated reference handlers when they encounter a reference type that they do not support.
func (*UnsupportedGeneratedReferenceTypeError) Error ¶ added in v2.2.0
func (e *UnsupportedGeneratedReferenceTypeError) Error() string
Error implements the error interface.
type WatchableEntityType ¶ added in v2.1.1
type WatchableEntityType interface {
konnectv1alpha2.KonnectGatewayControlPlane |
konnectv1alpha1.KonnectCloudGatewayNetwork |
konnectv1alpha1.KonnectCloudGatewayDataPlaneGroupConfiguration |
konnectv1alpha1.KonnectCloudGatewayTransitGateway |
konnectv1alpha1.Portal |
konnectv1alpha1.PortalPage |
konnectv1alpha1.PortalCustomDomain |
konnectv1alpha1.PortalCustomization |
konnectv1alpha1.PortalEmailConfig |
konnectv1alpha1.PortalIPAllowList |
konnectv1alpha1.PortalTeam |
konnectv1alpha1.PortalIdentityProviderRequest |
konnectv1alpha1.KonnectAIGateway |
konnectv1alpha1.KonnectConfigStore |
aiconfigurationv1alpha1.AIGatewayAuthStrategy |
aiconfigurationv1alpha1.AIGatewayModel |
aiconfigurationv1alpha1.AIGatewayModelProvider |
aiconfigurationv1alpha1.AIGatewayPolicy |
aiconfigurationv1alpha1.AIGatewayAgent |
aiconfigurationv1alpha1.AIGatewayConsumer |
aiconfigurationv1alpha1.AIGatewayConsumerCredential |
aiconfigurationv1alpha1.AIGatewayConsumerGroup |
aiconfigurationv1alpha1.AIGatewayMCPServer |
aiconfigurationv1alpha1.AIGatewayDataPlaneCertificate |
konnectv1alpha1.KonnectEventGateway |
configurationv1alpha1.EventGatewayBackendCluster |
configurationv1alpha1.EventGatewayListener |
configurationv1alpha1.EventGatewayListenerPolicy |
configurationv1alpha1.EventGatewayVirtualCluster |
configurationv1alpha1.EventGatewayVirtualClusterPolicy |
configurationv1alpha1.EventGatewayVirtualClusterConsumePolicy |
configurationv1alpha1.EventGatewayVirtualClusterProducePolicy |
configurationv1alpha1.EventGatewayDataPlaneCertificate |
configurationv1alpha1.EventGatewaySchemaRegistry |
configurationv1alpha1.KongService |
configurationv1alpha1.KongRoute |
configurationv1.KongConsumer |
configurationv1beta1.KongConsumerGroup |
configurationv1alpha1.KongPluginBinding |
configurationv1alpha1.KongCredentialBasicAuth |
configurationv1alpha1.KongCredentialAPIKey |
configurationv1alpha1.KongCredentialACL |
configurationv1alpha1.KongCredentialJWT |
configurationv1alpha1.KongCredentialHMAC |
configurationv1alpha1.KongUpstream |
configurationv1alpha1.KongCACertificate |
configurationv1alpha1.KongCertificate |
configurationv1alpha1.KongTarget |
configurationv1alpha1.KongVault |
configurationv1alpha1.KongKey |
configurationv1alpha1.KongKeySet |
configurationv1alpha1.KongSNI |
configurationv1alpha1.KongDataPlaneClientCertificate |
konnectv1alpha1.KonnectAPIAuthConfiguration
GetTypeName() string
}
WatchableEntityType is a constraint that represents all Konnect-related entity types that can be watched.
Source Files
¶
- errors.go
- handle_status_conditions.go
- kongpluginbuilder.go
- konnectextension_controller.go
- konnectextension_controller_controlplane.go
- konnectextension_controller_rbac.go
- konnectextension_controller_secrets.go
- konnectextension_controller_utils.go
- pending_konnect_ids.go
- plugins.go
- reconciler_apiauthref.go
- reconciler_apiauthref_get.go
- reconciler_apiauthref_parent.go
- reconciler_cacertificatesrefs.go
- reconciler_certificateref.go
- reconciler_configstoreref.go
- reconciler_consumerref.go
- reconciler_controlplaneref.go
- reconciler_credential_secrets.go
- reconciler_credential_secrets_rbac.go
- reconciler_generic.go
- reconciler_generic_error_handling.go
- reconciler_generic_handle_generated_refs.go
- reconciler_generic_handle_parentref.go
- reconciler_generic_handle_ref.go
- reconciler_generic_pluginbindingfinalizer.go
- reconciler_generic_pluginbindingfinalizer_rbac.go
- reconciler_generic_rbac.go
- reconciler_generic_type_specific.go
- reconciler_keysetref.go
- reconciler_kongplugin.go
- reconciler_kongplugin_combinations.go
- reconciler_kongplugin_rbac.go
- reconciler_konnectapiauth.go
- reconciler_konnectapiauth_rbac.go
- reconciler_konnectapiauth_watch.go
- reconciler_konnectnetworkref.go
- reconciler_pluginref.go
- reconciler_secretref.go
- reconciler_serviceref.go
- reconciler_upstreamref.go
- secret_reference_controller.go
- sensitive_data_source.go
- watch.go
- watch_credential.go
- watch_credentialacl.go
- watch_credentialapikey.go
- watch_credentialbasicauth.go
- watch_credentialhmac.go
- watch_credentialjwt.go
- watch_kongcacertificate.go
- watch_kongcertificate.go
- watch_kongconsumer.go
- watch_kongconsumergroup.go
- watch_kongdataplanecertificate.go
- watch_kongkey.go
- watch_kongkeyset.go
- watch_kongplugin.go
- watch_kongpluginbinding.go
- watch_kongroute.go
- watch_kongservice.go
- watch_kongsni.go
- watch_kongtarget.go
- watch_kongupstream.go
- watch_kongvault.go
- watch_konnectcloudgatewaydataplanegroupconfiguration.go
- watch_konnectcloudgatewaynetwork.go
- watch_konnectcloudgatewaytransitgateway.go
- watch_konnectcontrolplane.go
- watch_mcpserver.go
- watch_secret_reference.go
- zz_generated_konnectapiauth_watch.go
- zz_generated_reconciler_generic_rbac_aiconfigurationv1alpha1.go
- zz_generated_reconciler_generic_rbac_configurationv1alpha1.go
- zz_generated_reconciler_generic_rbac_konnectv1alpha1.go
- zz_generated_watch.go
- zz_generated_watch_aigatewayagent.go
- zz_generated_watch_aigatewayauthstrategy.go
- zz_generated_watch_aigatewayconsumer.go
- zz_generated_watch_aigatewayconsumercredential.go
- zz_generated_watch_aigatewayconsumergroup.go
- zz_generated_watch_aigatewaydataplanecertificate.go
- zz_generated_watch_aigatewaymcpserver.go
- zz_generated_watch_aigatewaymodel.go
- zz_generated_watch_aigatewaymodelprovider.go
- zz_generated_watch_aigatewaypolicy.go
- zz_generated_watch_eventgatewaybackendcluster.go
- zz_generated_watch_eventgatewaydataplanecertificate.go
- zz_generated_watch_eventgatewaylistener.go
- zz_generated_watch_eventgatewaylistenerpolicy.go
- zz_generated_watch_eventgatewayschemaregistry.go
- zz_generated_watch_eventgatewayvirtualcluster.go
- zz_generated_watch_eventgatewayvirtualclusterconsumepolicy.go
- zz_generated_watch_eventgatewayvirtualclusterpolicy.go
- zz_generated_watch_eventgatewayvirtualclusterproducepolicy.go
- zz_generated_watch_konnect_aigateway.go
- zz_generated_watch_konnect_configstore.go
- zz_generated_watch_konnect_eventgateway.go
- zz_generated_watch_portal.go
- zz_generated_watch_portalcustomdomain.go
- zz_generated_watch_portalcustomization.go
- zz_generated_watch_portalemailconfig.go
- zz_generated_watch_portalidentityproviderrequest.go
- zz_generated_watch_portalipallowlist.go
- zz_generated_watch_portalpage.go
- zz_generated_watch_portalteam.go