index

package
v2.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IndexFieldKongCredentialACLReferencesKongConsumer is the index name for KongCredentialACL -> Consumer.
	IndexFieldKongCredentialACLReferencesKongConsumer = "kongCredentialsACLConsumerRef"
	// IndexFieldKongCredentialACLReferencesKongSecret is the index name for KongCredentialACL -> Secret.
	IndexFieldKongCredentialACLReferencesKongSecret = "kongCredentialsACLSecretRef"
)
View Source
const (
	// IndexFieldKongCredentialAPIKeyReferencesKongConsumer is the index name for KongCredentialAPIKey -> Consumer.
	IndexFieldKongCredentialAPIKeyReferencesKongConsumer = "kongCredentialsAPIKeyConsumerRef"
	// IndexFieldKongCredentialAPIKeyReferencesSecret is the index name for KongCredentialAPIKey -> Secret.
	IndexFieldKongCredentialAPIKeyReferencesSecret = "kongCredentialsAPIKeySecretRef"
)
View Source
const (
	// IndexFieldKongCredentialBasicAuthReferencesKongConsumer is the index name for KongCredentialBasicAuth -> Consumer.
	IndexFieldKongCredentialBasicAuthReferencesKongConsumer = "kongCredentialsBasicAuthConsumerRef"
	// IndexFieldKongCredentialBasicAuthReferencesSecret is the index name for KongCredentialBasicAuth -> Secret.
	IndexFieldKongCredentialBasicAuthReferencesSecret = "kongCredentialsBasicAuthSecretRef"
)
View Source
const (
	// IndexFieldKongCredentialHMACReferencesKongConsumer is the index name for KongCredentialHMAC -> Consumer.
	IndexFieldKongCredentialHMACReferencesKongConsumer = "kongCredentialsHMACConsumerRef"
	// IndexFieldKongCredentialHMACReferencesSecret is the index name for KongCredentialHMAC -> Secret.
	IndexFieldKongCredentialHMACReferencesSecret = "kongCredentialsHMACSecretRef"
)
View Source
const (
	// IndexFieldKongCredentialJWTReferencesKongConsumer is the index name for KongCredentialJWT -> Consumer.
	IndexFieldKongCredentialJWTReferencesKongConsumer = "kongCredentialsJWTConsumerRef"
	// IndexFieldKongCredentialJWTReferencesSecret is the index name for KongCredentialJWT -> Secret.
	IndexFieldKongCredentialJWTReferencesSecret = "kongCredentialsJWTSecretRef"
)
View Source
const (
	// KongPluginInstallationsIndex is the key to be used to access the .spec.pluginsToInstall indexed values,
	// in a form of list of namespace/name strings.
	KongPluginInstallationsIndex = "KongPluginInstallations"
	// DataPlaneOnOwnerGatewayIndex is the key to index the DataPlanes based on the owner Gateways.
	DataPlaneOnOwnerGatewayIndex = "DataPlaneOnOwnerGateway"
)
View Source
const (
	// GatewayClassOnGatewayIndex is the name of the index that maps GatewayClass names to Gateways referencing them.
	GatewayClassOnGatewayIndex = "GatewayClassOnGateway"
	// TLSCertificateSecretsOnGatewayIndex maps Secret "namespace/name" to Gateway objects that
	// reference them in listeners.tls.certificateRefs.
	TLSCertificateSecretsOnGatewayIndex = "TLSCertificateSecretsOnGateway"
)
View Source
const (
	// BackendServicesOnHTTPRouteIndex is the name of the index that maps Services to HTTPRoutes
	// referencing them in their backendRefs.
	BackendServicesOnHTTPRouteIndex = "BackendServicesOnHTTPRoute"

	// GatewayOnHTTPRouteIndex is the name of the index that maps Gateways to HTTPRoutes referencing them in their ParentRefs.
	GatewayOnHTTPRouteIndex = "GatewayOnHTTPRoute"

	// KongPluginsOnHTTPRouteIndex is the name of the index that maps KongPlugins to HTTPRoutes referencing them in their filters.
	KongPluginsOnHTTPRouteIndex = "KongPluginsOnHTTPRoute"
)
View Source
const (
	// IndexFieldKongCACertificateOnKonnectGatewayControlPlane is the index field for KongCACertificate -> KonnectGatewayControlPlane.
	IndexFieldKongCACertificateOnKonnectGatewayControlPlane = "kongCACertificateKonnectGatewayControlPlaneRef"
	// IndexFieldKongCACertificateReferencesSecrets is the index field for KongCACertificate -> Secret.
	IndexFieldKongCACertificateReferencesSecrets = "kongCACertificateSecretRef" // #nosec G101
)
View Source
const (
	// IndexFieldKongCertificateOnKonnectGatewayControlPlane is the index field for KongCertificate -> KonnectGatewayControlPlane.
	IndexFieldKongCertificateOnKonnectGatewayControlPlane = "kongCertificateKonnectGatewayControlPlaneRef"
	// IndexFieldKongCertificateReferencesSecrets is the index field for KongCertificate -> Secret.
	IndexFieldKongCertificateReferencesSecrets = "kongCertificateSecretRef"
)
View Source
const (
	// IndexFieldKongConsumerOnKongConsumerGroup is the index field for KongConsumer -> KongConsumerGroup.
	IndexFieldKongConsumerOnKongConsumerGroup = "consumerGroupRef"
	// IndexFieldKongConsumerOnPlugin is the index field for KongConsumer -> KongPlugin.
	IndexFieldKongConsumerOnPlugin = "consumerPluginRef"
	// IndexFieldKongConsumerOnKonnectGatewayControlPlane is the index field for KongConsumer -> KonnectGatewayControlPlane.
	IndexFieldKongConsumerOnKonnectGatewayControlPlane = "consumerKonnectGatewayControlPlaneRef"
	// IndexFieldKongConsumerReferencesSecrets is the index field for Consumer -> Secret.
	IndexFieldKongConsumerReferencesSecrets = "kongConsumerSecretRef"
)
View Source
const (
	// IndexFieldKongConsumerGroupOnPlugin is the index field for KongConsumerGroup -> KongPlugin.
	IndexFieldKongConsumerGroupOnPlugin = "consumerGroupPluginRef"
	// IndexFieldKongConsumerGroupOnKonnectGatewayControlPlane is the index field for KongConsumerGroup -> KonnectGatewayControlPlane.
	IndexFieldKongConsumerGroupOnKonnectGatewayControlPlane = "consumerGroupKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKongDataPlaneClientCertificateOnKonnectGatewayControlPlane is the index field for KongDataPlaneCertificate -> KonnectGatewayControlPlane.
	IndexFieldKongDataPlaneClientCertificateOnKonnectGatewayControlPlane = "dataPlaneCertificateKonnectGatewayControlPlaneRef"

	// IndexFieldKongDataPlaneClientCertificateOnKonnectExtensionOwner is the index field for KongDataPlaneCertificate -> KonnectExtension via the ownership.
	IndexFieldKongDataPlaneClientCertificateOnKonnectExtensionOwner = "dataPlaneCertificateKonnectExtensionOwner"
)
View Source
const (
	// IndexFieldKongKeyOnKongKeySetReference is the index field for KongKey-> KongKeySet.
	IndexFieldKongKeyOnKongKeySetReference = "kongKeySetRef"

	// IndexFieldKongKeyOnKonnectGatewayControlPlane is the index field for KongKey -> KonnectGatewayControlPlane.
	IndexFieldKongKeyOnKonnectGatewayControlPlane = "kongKeyKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKongPluginBindingKongPluginReference is the index field for KongPluginBinding -> KongPlugin.
	IndexFieldKongPluginBindingKongPluginReference = "kongPluginBindingPluginRef"
	// IndexFieldKongPluginBindingKongServiceReference is the index field for KongPluginBinding -> KongService.
	IndexFieldKongPluginBindingKongServiceReference = "kongPluginBindingServiceRef"
	// IndexFieldKongPluginBindingKongRouteReference is the index field for KongPluginBinding -> KongRoute.
	IndexFieldKongPluginBindingKongRouteReference = "kongPluginBindingRouteRef"
	// IndexFieldKongPluginBindingKongConsumerReference is the index field for KongPluginBinding -> KongConsumer.
	IndexFieldKongPluginBindingKongConsumerReference = "kongPluginBindingConsumerRef"
	// IndexFieldKongPluginBindingKongConsumerGroupReference is the index field for KongPluginBinding -> KongConsumerGroup.
	IndexFieldKongPluginBindingKongConsumerGroupReference = "kongPluginBindingConsumerGroupRef"
	// IndexFieldKongPluginBindingKonnectGatewayControlPlane is the index field for KongPluginBinding -> KonnectGatewayControlPlane.
	IndexFieldKongPluginBindingKonnectGatewayControlPlane = "kongPluginBindingKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKongRouteOnReferencedPluginNames is the index field for KongRoute -> KongPlugin.
	IndexFieldKongRouteOnReferencedPluginNames = "kongRouteKongPluginRef"
	// IndexFieldKongRouteOnReferencedKongService is the index field for KongRoute -> KongService.
	IndexFieldKongRouteOnReferencedKongService = "kongRouteKongServiceRef"
	// IndexFieldKongRouteOnKonnectGatewayControlPlane is the index field for KongRoute -> KonnectGatewayControlPlane.
	IndexFieldKongRouteOnKonnectGatewayControlPlane = "kongRouteKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKongServiceOnReferencedPluginNames is the index field for KongService -> KongPlugin.
	IndexFieldKongServiceOnReferencedPluginNames = "kongServiceKongPluginRef"
	// IndexFieldKongServiceOnKonnectGatewayControlPlane is the index field for KongService -> KonnectGatewayControlPlane.
	IndexFieldKongServiceOnKonnectGatewayControlPlane = "kongServiceKonnectGatewayControlPlaneRef"
	// IndexFieldKongServiceOnReferencedKongCertificate is the index field for KongService -> KongCertificate (clientCertificateRef).
	IndexFieldKongServiceOnReferencedKongCertificate = "kongServiceKongCertificateRef"
	// IndexFieldKongServiceOnReferencedKongCACertificates is the index field for KongService -> KongCACertificate (caCertificateRefs).
	IndexFieldKongServiceOnReferencedKongCACertificates = "kongServiceKongCACertificateRefs"
)
View Source
const (
	// IndexFieldKongUpstreamOnKonnectGatewayControlPlane is the index field for KongUpstream -> KonnectGatewayControlPlane.
	IndexFieldKongUpstreamOnKonnectGatewayControlPlane = "kongUpstreamKonnectGatewayControlPlaneRef"
	// IndexFieldKongUpstreamOnReferencedKongCertificate is the index field for KongUpstream -> KongCertificate (clientCertificateRef).
	IndexFieldKongUpstreamOnReferencedKongCertificate = "kongUpstreamKongCertificateRef"
)
View Source
const (
	// IndexFieldKonnectCloudGatewayDataPlaneGroupConfigurationOnKonnectGatewayControlPlane is the index field for KonnectCloudGatewayDataPlaneGroupConfiguration -> KonnectGatewayControlPlane.
	IndexFieldKonnectCloudGatewayDataPlaneGroupConfigurationOnKonnectGatewayControlPlane = "konnectCloudGatewayDataPlaneGroupConfigurationOnKonnectGatewayControlPlaneRef"
	// IndexFieldKonnectCloudGatewayDataPlaneGroupConfigurationOnKonnectNetworkRef is the index field for KonnectCloudGatewayDataPlaneGroupConfiguration -> KonnectNetwork.
	IndexFieldKonnectCloudGatewayDataPlaneGroupConfigurationOnKonnectNetworkRef = "konnectCloudGatewayDataPlaneGroupConfigurationOnKonnectNetworkRef"
)
View Source
const (
	// IndexFieldKonnectExtensionOnAPIAuthConfiguration is the index field for KonnectExtension -> APIAuthConfiguration.
	IndexFieldKonnectExtensionOnAPIAuthConfiguration = "konnectExtensionAPIAuthConfigurationRef"
	// IndexFieldKonnectExtensionOnSecrets is the index field for KonnectExtension -> Secret.
	IndexFieldKonnectExtensionOnSecrets = "konnectExtensionSecretRef"
	// IndexFieldKonnectExtensionOnKonnectGatewayControlPlane is the index field for KonnectExtension -> KonnectGatewayControlPlane.
	IndexFieldKonnectExtensionOnKonnectGatewayControlPlane = "konnectExtensionKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKonnectGatewayControlPlaneGroupOnMembers is the index field for KonnectGatewayControlPlane -> its members.
	IndexFieldKonnectGatewayControlPlaneGroupOnMembers = "konnectGatewayControlPlaneGroupMembers"

	// IndexFieldKonnectGatewayControlPlaneOnAPIAuthConfiguration is the index field for KonnectGatewayControlPlane -> APIAuthConfiguration.
	IndexFieldKonnectGatewayControlPlaneOnAPIAuthConfiguration = "konnectGatewayControlPlaneAPIAuthConfigurationRef"

	// IndexFieldKonnectGatewayControlPlaneOnKonnectID is the index field for KonnectGatewayControlPlane -> KonnectID.
	IndexFieldKonnectGatewayControlPlaneOnKonnectID = "konnectGatewayControlPlaneKonnectID"
)
View Source
const (
	// BackendServicesOnTLSRouteIndex is the name of the index that maps Services to TLSRoutes
	// referencing them in their backendRefs.
	BackendServicesOnTLSRouteIndex = "BackendServicesOnTLSRoute"

	// GatewayOnTLSRouteIndex is the name of the index that maps Gateways to TLSRoutes referencing them in their ParentRefs.
	GatewayOnTLSRouteIndex = "GatewayOnTLSRoute"
)
View Source
const (
	// DataPlaneNameIndex is the key to be used to access the .spec.dataplaneName indexed values.
	DataPlaneNameIndex = "dataplane"
)
View Source
const (
	// GatewayClassOnGatewayConfigurationIndex is the key to index the GatewayClass
	// based on the referenced GatewayConfiguration.
	GatewayClassOnGatewayConfigurationIndex = "GatewayClassOnGatewayConfiguration"
)
View Source
const (
	// IndexFieldEventGatewayBackendClusterOnKonnectEventGatewayRef is the index field for EventGatewayBackendCluster -> KonnectEventGateway.
	IndexFieldEventGatewayBackendClusterOnKonnectEventGatewayRef = "eventGatewayBackendClusterOnKonnectEventGatewayRef"
)
View Source
const (
	// IndexFieldEventGatewayDataPlaneCertificateOnKonnectEventGatewayRef is the index field for EventGatewayDataPlaneCertificate -> KonnectEventGateway.
	IndexFieldEventGatewayDataPlaneCertificateOnKonnectEventGatewayRef = "eventGatewayDataPlaneCertificateOnKonnectEventGatewayRef"
)
View Source
const (
	// IndexFieldEventGatewayListenerOnKonnectEventGatewayRef is the index field for EventGatewayListener -> KonnectEventGateway.
	IndexFieldEventGatewayListenerOnKonnectEventGatewayRef = "eventGatewayListenerOnKonnectEventGatewayRef"
)
View Source
const (
	// IndexFieldEventGatewayListenerPolicyOnEventGatewayListenerRef is the index field for EventGatewayListenerPolicy -> EventGatewayListener.
	IndexFieldEventGatewayListenerPolicyOnEventGatewayListenerRef = "eventGatewayListenerPolicyOnEventGatewayListenerRef"
)
View Source
const (
	// IndexFieldEventGatewayVirtualClusterConsumePolicyOnEventGatewayVirtualClusterRef is the index field for EventGatewayVirtualClusterConsumePolicy -> EventGatewayVirtualCluster.
	IndexFieldEventGatewayVirtualClusterConsumePolicyOnEventGatewayVirtualClusterRef = "eventGatewayVirtualClusterConsumePolicyOnEventGatewayVirtualClusterRef"
)
View Source
const (
	// IndexFieldEventGatewayVirtualClusterOnEventGatewayBackendClusterRef is the index field for EventGatewayVirtualCluster -> EventGatewayBackendCluster.
	IndexFieldEventGatewayVirtualClusterOnEventGatewayBackendClusterRef = "eventGatewayVirtualClusterOnEventGatewayBackendClusterRef"
)
View Source
const (
	// IndexFieldEventGatewayVirtualClusterPolicyOnEventGatewayVirtualClusterRef is the index field for EventGatewayVirtualClusterPolicy -> EventGatewayVirtualCluster.
	IndexFieldEventGatewayVirtualClusterPolicyOnEventGatewayVirtualClusterRef = "eventGatewayVirtualClusterPolicyOnEventGatewayVirtualClusterRef"
)
View Source
const (
	// IndexFieldEventGatewayVirtualClusterProducePolicyOnEventGatewayVirtualClusterRef is the index field for EventGatewayVirtualClusterProducePolicy -> EventGatewayVirtualCluster.
	IndexFieldEventGatewayVirtualClusterProducePolicyOnEventGatewayVirtualClusterRef = "eventGatewayVirtualClusterProducePolicyOnEventGatewayVirtualClusterRef"
)
View Source
const (
	// IndexFieldKegDataPlaneOnKonnectEventGateway is the index field for
	// KegDataPlane -> KonnectEventGateway (via spec.controlPlaneRef.konnectNamespacedRef.name).
	IndexFieldKegDataPlaneOnKonnectEventGateway = "kegDataPlaneKonnectEventGatewayRef"
)
View Source
const (
	// IndexFieldKongKeySetOnKonnectGatewayControlPlane is the index field for KongKeySet -> KonnectGatewayControlPlane.
	IndexFieldKongKeySetOnKonnectGatewayControlPlane = "kongKeySetKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKongSNIOnCertificateRefName is the index field for KongSNI -> Certificate.
	IndexFieldKongSNIOnCertificateRefName = "kongSNICertificateRefName"
)
View Source
const (
	// IndexFieldKongTargetOnReferencedUpstream is the index field for KongTarget -> KongUpstream.
	IndexFieldKongTargetOnReferencedUpstream = "kongTargetUpstreamRef"
)
View Source
const (
	// IndexFieldKongVaultOnKonnectGatewayControlPlane is the index field for KongVault -> KonnectGatewayControlPlane.
	IndexFieldKongVaultOnKonnectGatewayControlPlane = "vaultKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKonnectAPIAuthConfigurationReferencesSecrets is the index field for KonnectAPIAuthConfiguration -> Secret.
	IndexFieldKonnectAPIAuthConfigurationReferencesSecrets = "konnectAPIAuthConfigurationSecretRef" // #nosec G101
)
View Source
const (
	// IndexFieldKonnectCloudGatewayNetworkOnAPIAuthConfiguration is the index field for KonnectCloudGatewayNetwork -> APIAuthConfiguration.
	IndexFieldKonnectCloudGatewayNetworkOnAPIAuthConfiguration = "konnectCloudGatewayNetworkAPIAuthConfigurationRef"
)
View Source
const (
	// IndexFieldKonnectCloudGatewayTransitGatewayOnKonnectNetworkRef is the index field for KonnectCloudGatewayTransitGateway -> KonnectCloudGatewayNetwork.
	IndexFieldKonnectCloudGatewayTransitGatewayOnKonnectNetworkRef = "KonnectCloudGatewayTransitGatewayOnKonnectNetworkRef"
)
View Source
const (
	// IndexFieldKonnectEventGatewayOnAPIAuthConfiguration is the index field for KonnectEventGateway -> APIAuthConfiguration.
	IndexFieldKonnectEventGatewayOnAPIAuthConfiguration = "konnectEventGatewayAPIAuthConfigurationRef"
)
View Source
const (
	// IndexFieldMCPServerOnKonnectGatewayControlPlane is the index field for MCPServer -> KonnectGatewayControlPlane.
	IndexFieldMCPServerOnKonnectGatewayControlPlane = "mcpServerKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldPortalCustomDomainOnPortalRef is the index field for PortalCustomDomain -> Portal.
	IndexFieldPortalCustomDomainOnPortalRef = "portalCustomDomainOnPortalRef"
)
View Source
const (
	// IndexFieldPortalCustomizationOnPortalRef is the index field for PortalCustomization -> Portal.
	IndexFieldPortalCustomizationOnPortalRef = "portalCustomizationOnPortalRef"
)
View Source
const (
	// IndexFieldPortalEmailConfigOnPortalRef is the index field for PortalEmailConfig -> Portal.
	IndexFieldPortalEmailConfigOnPortalRef = "portalEmailConfigOnPortalRef"
)
View Source
const (
	// IndexFieldPortalIPAllowListOnPortalRef is the index field for PortalIPAllowList -> Portal.
	IndexFieldPortalIPAllowListOnPortalRef = "portalIPAllowListOnPortalRef"
)
View Source
const (
	// IndexFieldPortalIdentityProviderRequestOnPortalRef is the index field for PortalIdentityProviderRequest -> Portal.
	IndexFieldPortalIdentityProviderRequestOnPortalRef = "portalIdentityProviderRequestOnPortalRef"
)
View Source
const (
	// IndexFieldPortalOnAPIAuthConfiguration is the index field for Portal -> APIAuthConfiguration.
	IndexFieldPortalOnAPIAuthConfiguration = "portalAPIAuthConfigurationRef"
)
View Source
const (
	// IndexFieldPortalPageOnPortalRef is the index field for PortalPage -> Portal.
	IndexFieldPortalPageOnPortalRef = "portalPageOnPortalRef"
)
View Source
const (
	// IndexFieldPortalTeamOnPortalRef is the index field for PortalTeam -> Portal.
	IndexFieldPortalTeamOnPortalRef = "portalTeamOnPortalRef"
)
View Source
const (
	// KonnectExtensionIndex is the key to be used to access the .spec.extensions indexed values, in a form of list of
	// namespace/name strings. It can be used with object types that support extensions (e.g. DataPlane, ControlPlane,
	// GatewayConfiguration).
	KonnectExtensionIndex = "KonnectExtension"
)

Variables

This section is empty.

Functions

func BackendServicesOnHTTPRoute added in v2.2.0

func BackendServicesOnHTTPRoute(o client.Object) []string

BackendServicesOnHTTPRoute extracts and returns a list of unique Service references (in "namespace/name" format) from the BackendRefs of the given HTTPRoute object.

func BackendServicesOnTLSRoute added in v2.2.0

func BackendServicesOnTLSRoute(o client.Object) []string

BackendServicesOnTLSRoute extracts and returns a list of unique Service references (in "namespace/name" format) from the BackendRefs of the given TLSRoute object.

func GatewayClassOnGateway added in v2.1.1

func GatewayClassOnGateway(o client.Object) []string

GatewayClassOnGateway extracts and returns the GatewayClass name referenced by the given Gateway object.

func GatewayConfigurationOnGatewayClass

func GatewayConfigurationOnGatewayClass(o client.Object) []string

GatewayConfigurationOnGatewayClass returns the index key for the provided GatewayClass object. The index key is in the format "namespace/name" of the referenced GatewayConfiguration. If the GatewayClass does not reference a GatewayConfiguration, nil is returned.

func GatewaysOnRoute added in v2.2.0

func GatewaysOnRoute[T gwtypes.SupportedRoute, TPtr gwtypes.SupportedRoutePtr[T]](o client.Object) []string

GatewaysOnRoute extracts and returns a list of unique Gateway references (in "namespace/name" format) from the ParentRefs of the given object.

func KongPluginsOnHTTPRoute added in v2.1.1

func KongPluginsOnHTTPRoute(o client.Object) []string

KongPluginsOnHTTPRoute extracts and returns a list of unique KongPlugin references (in "namespace/name" format) from the Filters of the given HTTPRoute object.

func ListObjectsReferencingKonnectExtension

func ListObjectsReferencingKonnectExtension[t ExtendableObjectListT](
	c client.Client,
	objList t,
) handler.TypedMapFunc[*konnectv1alpha2.KonnectExtension, reconcile.Request]

ListObjectsReferencingKonnectExtension returns a handler.MapFunc that lists objects of the given type that reference the given KonnectExtension. It can be used with object types that support extensions (e.g. DataPlane, ControlPlane, GatewayConfiguration).

func OwnerGatewayOnDataPlane

func OwnerGatewayOnDataPlane(o client.Object) []string

OwnerGatewayOnDataPlane indexes the DataPlane based on its owner Gateway reference. It returns a 1 element slice with "namespace/name" of the owner Gateway, or an empty slice if no such owner reference exists.

func SecretOnKongCACertificate added in v2.1.1

func SecretOnKongCACertificate(object client.Object) []string

SecretOnKongCACertificate indexes KongCACertificate by its referenced Secret.

func SecretOnKongCertificate added in v2.1.1

func SecretOnKongCertificate(object client.Object) []string

SecretOnKongCertificate indexes KongCertificate by its referenced Secret.

func TLSCertificateSecretsOnGateway added in v2.1.1

func TLSCertificateSecretsOnGateway(o client.Object) []string

TLSCertificateSecretsOnGateway extracts Secret references (namespace/name) from a Gateway's listeners.tls.certificateRefs.

Types

type DataPlaneFlags

type DataPlaneFlags struct {
	KongPluginInstallationControllerEnabled bool
	KonnectControllersEnabled               bool
	GatewayAPIGatewayControllerEnabled      bool
}

DataPlaneFlags contains flags that control which indexes are created for the DataPlane object.

type ExtendableObjectListT

ExtendableObjectListT is an interface that defines the list types that can be extended with KonnectExtension objects.

type Option

type Option struct {
	// Object is the object type to index.
	Object client.Object

	// Field is the name of the index to create.
	Field string

	// ExtractValueFn is a function that extracts the value to index on from the object.
	ExtractValueFn client.IndexerFunc
}

Option contains the information needed to set up an index for a field on an object.

func OptionsForControlPlane

func OptionsForControlPlane(konnectControllersEnabled bool) []Option

OptionsForControlPlane returns required Index options for ControlPlane.

func OptionsForCredentialsACL

func OptionsForCredentialsACL() []Option

OptionsForCredentialsACL returns required Index options for KongCredentialACL.

func OptionsForCredentialsAPIKey

func OptionsForCredentialsAPIKey() []Option

OptionsForCredentialsAPIKey returns required Index options for KongCredentialAPIKey.

func OptionsForCredentialsBasicAuth

func OptionsForCredentialsBasicAuth() []Option

OptionsForCredentialsBasicAuth returns required Index options for KongCredentialBasicAuth.

func OptionsForCredentialsHMAC

func OptionsForCredentialsHMAC() []Option

OptionsForCredentialsHMAC returns required Index options for KongCredentialHMAC.

func OptionsForCredentialsJWT

func OptionsForCredentialsJWT() []Option

OptionsForCredentialsJWT returns required Index options for KongCredentialJWT.

func OptionsForDataPlane

func OptionsForDataPlane(flags DataPlaneFlags) []Option

OptionsForDataPlane returns indexing options for the DataPlane object, based on the provided flags.

func OptionsForEventGatewayBackendCluster added in v2.2.0

func OptionsForEventGatewayBackendCluster() []Option

OptionsForEventGatewayBackendCluster returns required Index options for EventGatewayBackendCluster reconciler.

func OptionsForEventGatewayDataPlaneCertificate added in v2.2.0

func OptionsForEventGatewayDataPlaneCertificate() []Option

OptionsForEventGatewayDataPlaneCertificate returns required Index options for EventGatewayDataPlaneCertificate reconciler.

func OptionsForEventGatewayListener added in v2.2.0

func OptionsForEventGatewayListener() []Option

OptionsForEventGatewayListener returns required Index options for EventGatewayListener reconciler.

func OptionsForEventGatewayListenerPolicy added in v2.2.0

func OptionsForEventGatewayListenerPolicy() []Option

OptionsForEventGatewayListenerPolicy returns required Index options for EventGatewayListenerPolicy reconciler.

func OptionsForEventGatewayVirtualCluster added in v2.2.0

func OptionsForEventGatewayVirtualCluster() []Option

OptionsForEventGatewayVirtualCluster returns required Index options for EventGatewayVirtualCluster reconciler.

func OptionsForEventGatewayVirtualClusterConsumePolicy added in v2.2.0

func OptionsForEventGatewayVirtualClusterConsumePolicy() []Option

OptionsForEventGatewayVirtualClusterConsumePolicy returns required Index options for EventGatewayVirtualClusterConsumePolicy reconciler.

func OptionsForEventGatewayVirtualClusterPolicy added in v2.2.0

func OptionsForEventGatewayVirtualClusterPolicy() []Option

OptionsForEventGatewayVirtualClusterPolicy returns required Index options for EventGatewayVirtualClusterPolicy reconciler.

func OptionsForEventGatewayVirtualClusterProducePolicy added in v2.2.0

func OptionsForEventGatewayVirtualClusterProducePolicy() []Option

OptionsForEventGatewayVirtualClusterProducePolicy returns required Index options for EventGatewayVirtualClusterProducePolicy reconciler.

func OptionsForGateway added in v2.1.1

func OptionsForGateway() []Option

OptionsForGateway returns a slice of Option configured for indexing Gateway objects by GatewayClass name.

func OptionsForGatewayClass

func OptionsForGatewayClass() []Option

OptionsForGatewayClass returns the index options for GatewayClass objects.

func OptionsForGatewayConfiguration

func OptionsForGatewayConfiguration() []Option

OptionsForGatewayConfiguration returns the options for GatewayConfiguration.

func OptionsForHTTPRoute

func OptionsForHTTPRoute() []Option

OptionsForHTTPRoute returns a slice of Option configured for indexing HTTPRoute objects. It sets up the index with the appropriate object type, field, and extraction function.

func OptionsForKegDataPlane added in v2.2.0

func OptionsForKegDataPlane() []Option

OptionsForKegDataPlane returns required Index options for the KegDataPlane controller.

func OptionsForKongCACertificate

func OptionsForKongCACertificate(cl client.Client) []Option

OptionsForKongCACertificate returns required Index options for KongCACertificate reconciler.

func OptionsForKongCertificate

func OptionsForKongCertificate(cl client.Client) []Option

OptionsForKongCertificate returns required Index options for KongCertificate reconciler.

func OptionsForKongConsumer

func OptionsForKongConsumer(cl client.Client) []Option

OptionsForKongConsumer returns required Index options for KongConsumer reconciler.

func OptionsForKongConsumerGroup

func OptionsForKongConsumerGroup(cl client.Client) []Option

OptionsForKongConsumerGroup returns required Index options for KongConsumerGroup reconciler.

func OptionsForKongDataPlaneCertificate

func OptionsForKongDataPlaneCertificate(cl client.Client) []Option

OptionsForKongDataPlaneCertificate returns required Index options for KongConsumer reconciler.

func OptionsForKongKey

func OptionsForKongKey(cl client.Client) []Option

OptionsForKongKey returns required Index options for KongKey reconciler.

func OptionsForKongKeySet

func OptionsForKongKeySet(cl client.Client) []Option

OptionsForKongKeySet returns required Index options for KongKeySet reconciler.

func OptionsForKongPluginBinding

func OptionsForKongPluginBinding() []Option

OptionsForKongPluginBinding returns required Index options for KongPluginBinding reconciler.

func OptionsForKongRoute

func OptionsForKongRoute(cl client.Client) []Option

OptionsForKongRoute returns required Index options for KongRoute reconciler.

func OptionsForKongSNI

func OptionsForKongSNI() []Option

OptionsForKongSNI returns required Index options for KongSNI reconciler.

func OptionsForKongService

func OptionsForKongService(cl client.Client) []Option

OptionsForKongService returns required Index options for KongService reconciler.

func OptionsForKongTarget

func OptionsForKongTarget() []Option

OptionsForKongTarget returns required Index options for KongTarget reconciler.

func OptionsForKongUpstream

func OptionsForKongUpstream(cl client.Client) []Option

OptionsForKongUpstream returns required Index options for KongUpstream reconciler.

func OptionsForKongVault

func OptionsForKongVault(cl client.Client) []Option

OptionsForKongVault returns required Index options for KongVault reconciler.

func OptionsForKonnectAPIAuthConfiguration added in v2.1.1

func OptionsForKonnectAPIAuthConfiguration() []Option

OptionsForKonnectAPIAuthConfiguration returns a slice of Option configured for indexing KonnectAPIAuthConfiguration objects. It sets up the index with the appropriate object type, field, and extraction function.

func OptionsForKonnectCloudGatewayDataPlaneGroupConfiguration

func OptionsForKonnectCloudGatewayDataPlaneGroupConfiguration(cl client.Client) []Option

OptionsForKonnectCloudGatewayDataPlaneGroupConfiguration returns required Index options for KonnectCloudGatewayDataPlaneGroupConfiguration reconciler.

func OptionsForKonnectCloudGatewayNetwork

func OptionsForKonnectCloudGatewayNetwork() []Option

OptionsForKonnectCloudGatewayNetwork returns required Index options for KonnectCloudGatewayNetwork reconciler.

func OptionsForKonnectCloudGatewayTransitGateway

func OptionsForKonnectCloudGatewayTransitGateway() []Option

OptionsForKonnectCloudGatewayTransitGateway returns the index options for KonnectCloudGatewayTransitGateway.

func OptionsForKonnectEventGateway added in v2.2.0

func OptionsForKonnectEventGateway() []Option

OptionsForKonnectEventGateway returns required Index options for KonnectEventGateway reconciler.

func OptionsForKonnectExtension

func OptionsForKonnectExtension() []Option

OptionsForKonnectExtension returns required Index options for KonnectExtension reconciler.

func OptionsForKonnectGatewayControlPlane

func OptionsForKonnectGatewayControlPlane() []Option

OptionsForKonnectGatewayControlPlane returns required Index options for KonnectGatewayControlPlane reconciler.

func OptionsForMCPServer added in v2.2.0

func OptionsForMCPServer(cl client.Client) []Option

OptionsForMCPServer returns required Index options for MCPServer reconciler.

func OptionsForPortal added in v2.2.0

func OptionsForPortal() []Option

OptionsForPortal returns required Index options for Portal reconciler.

func OptionsForPortalCustomDomain added in v2.2.0

func OptionsForPortalCustomDomain() []Option

OptionsForPortalCustomDomain returns required Index options for PortalCustomDomain reconciler.

func OptionsForPortalCustomization added in v2.2.0

func OptionsForPortalCustomization() []Option

OptionsForPortalCustomization returns required Index options for PortalCustomization reconciler.

func OptionsForPortalEmailConfig added in v2.2.0

func OptionsForPortalEmailConfig() []Option

OptionsForPortalEmailConfig returns required Index options for PortalEmailConfig reconciler.

func OptionsForPortalIPAllowList added in v2.2.0

func OptionsForPortalIPAllowList() []Option

OptionsForPortalIPAllowList returns required Index options for PortalIPAllowList reconciler.

func OptionsForPortalIdentityProviderRequest added in v2.2.0

func OptionsForPortalIdentityProviderRequest() []Option

OptionsForPortalIdentityProviderRequest returns required Index options for PortalIdentityProviderRequest reconciler.

func OptionsForPortalPage added in v2.2.0

func OptionsForPortalPage() []Option

OptionsForPortalPage returns required Index options for PortalPage reconciler.

func OptionsForPortalTeam added in v2.2.0

func OptionsForPortalTeam() []Option

OptionsForPortalTeam returns required Index options for PortalTeam reconciler.

func OptionsForTLSRoute added in v2.2.0

func OptionsForTLSRoute() []Option

OptionsForTLSRoute returns a slice of Option configured for indexing TLSRoute objects. It sets up the index with the appropriate object type, field, and extraction function.

func (Option) String

func (e Option) String() string

String returns a string representation of the Option.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL