index

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 18 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 (
	// 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 (
	// 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"
)
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 (
	// DataPlaneNameIndex is the key to be used to access the .spec.dataplaneName indexed values.
	DataPlaneNameIndex = "dataplane"
)
View Source
const (
	// IndexFieldKongCACertificateOnKonnectGatewayControlPlane is the index field for KongCACertificate -> KonnectGatewayControlPlane.
	IndexFieldKongCACertificateOnKonnectGatewayControlPlane = "kongCACertificateKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKongCertificateOnKonnectGatewayControlPlane is the index field for KongCertificate -> KonnectGatewayControlPlane.
	IndexFieldKongCertificateOnKonnectGatewayControlPlane = "kongCertificateKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKongDataPlaneClientCertificateOnKonnectGatewayControlPlane is the index field for KongDataPlaneCertificate -> KonnectGatewayControlPlane.
	IndexFieldKongDataPlaneClientCertificateOnKonnectGatewayControlPlane = "dataPlaneCertificateKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKongKeySetOnKonnectGatewayControlPlane is the index field for KongKeySet -> KonnectGatewayControlPlane.
	IndexFieldKongKeySetOnKonnectGatewayControlPlane = "kongKeySetKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKongSNIOnCertificateRefNmae is the index field for KongSNI -> Certificate.
	IndexFieldKongSNIOnCertificateRefNmae = "kongSNICertificateRefName"
)
View Source
const (
	// IndexFieldKongTargetOnReferencedUpstream is the index field for KongTarget -> KongUpstream.
	IndexFieldKongTargetOnReferencedUpstream = "kongTargetUpstreamRef"
)
View Source
const (
	// IndexFieldKongUpstreamOnKonnectGatewayControlPlane is the index field for KongUpstream -> KonnectGatewayControlPlane.
	IndexFieldKongUpstreamOnKonnectGatewayControlPlane = "kongUpstreamKonnectGatewayControlPlaneRef"
)
View Source
const (
	// IndexFieldKongVaultOnKonnectGatewayControlPlane is the index field for KongVault -> KonnectGatewayControlPlane.
	IndexFieldKongVaultOnKonnectGatewayControlPlane = "vaultKonnectGatewayControlPlaneRef"
)
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 (
	// 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"
)
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 ListObjectsReferencingKonnectExtension added in v1.5.0

func ListObjectsReferencingKonnectExtension[t ExtendableObjectListT](
	c client.Client,
	objList t,
) handler.TypedMapFunc[*konnectv1alpha1.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).

Types

type DataPlaneFlags added in v1.6.0

type DataPlaneFlags struct {
	KongPluginInstallationControllerEnabled bool
	KonnectControllersEnabled               bool
}

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

type ExtendableObjectListT added in v1.5.0

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

type Option added in v1.6.0

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 added in v1.6.0

func OptionsForControlPlane(konnectControllersEnabled bool) []Option

OptionsForControlPlane returns required Index options for ControlPlane.

func OptionsForCredentialsACL added in v1.6.0

func OptionsForCredentialsACL() []Option

OptionsForCredentialsACL returns required Index options for KongCredentialACL.

func OptionsForCredentialsAPIKey added in v1.6.0

func OptionsForCredentialsAPIKey() []Option

OptionsForCredentialsAPIKey returns required Index options for KongCredentialAPIKey.

func OptionsForCredentialsBasicAuth added in v1.6.0

func OptionsForCredentialsBasicAuth() []Option

OptionsForCredentialsBasicAuth returns required Index options for KongCredentialBasicAuth.

func OptionsForCredentialsHMAC added in v1.6.0

func OptionsForCredentialsHMAC() []Option

OptionsForCredentialsHMAC returns required Index options for KongCredentialHMAC.

func OptionsForCredentialsJWT added in v1.6.0

func OptionsForCredentialsJWT() []Option

OptionsForCredentialsJWT returns required Index options for KongCredentialJWT.

func OptionsForDataPlane added in v1.6.0

func OptionsForDataPlane(flags DataPlaneFlags) []Option

func OptionsForGatewayConfiguration added in v1.6.0

func OptionsForGatewayConfiguration() []Option

OptionsForGatewayConfiguration returns the options for GatewayConfiguration.

func OptionsForKongCACertificate added in v1.6.0

func OptionsForKongCACertificate(cl client.Client) []Option

OptionsForKongCACertificate returns required Index options for KongCACertificate reconclier.

func OptionsForKongCertificate added in v1.6.0

func OptionsForKongCertificate(cl client.Client) []Option

OptionsForKongCertificate returns required Index options for KongCertificate reconclier.

func OptionsForKongConsumer added in v1.6.0

func OptionsForKongConsumer(cl client.Client) []Option

OptionsForKongConsumer returns required Index options for KongConsumer reconciler.

func OptionsForKongConsumerGroup added in v1.6.0

func OptionsForKongConsumerGroup(cl client.Client) []Option

OptionsForKongConsumerGroup returns required Index options for KongConsumerGroup reconciler.

func OptionsForKongDataPlaneCertificate added in v1.6.0

func OptionsForKongDataPlaneCertificate(cl client.Client) []Option

OptionsForKongDataPlaneCertificate returns required Index options for KongConsumer reconciler.

func OptionsForKongKey added in v1.6.0

func OptionsForKongKey(cl client.Client) []Option

OptionsForKongKey returns required Index options for KongKey reconclier.

func OptionsForKongKeySet added in v1.6.0

func OptionsForKongKeySet(cl client.Client) []Option

OptionsForKongKeySet returns required Index options for KongKeySet reconclier.

func OptionsForKongPluginBinding added in v1.6.0

func OptionsForKongPluginBinding() []Option

OptionsForKongPluginBinding returns required Index options for KongPluginBinding reconclier.

func OptionsForKongRoute added in v1.6.0

func OptionsForKongRoute(cl client.Client) []Option

OptionsForKongRoute returns required Index options for KongRoute reconciler.

func OptionsForKongSNI added in v1.6.0

func OptionsForKongSNI() []Option

OptionsForKongSNI returns required Index options for KongSNI reconciler.

func OptionsForKongService added in v1.6.0

func OptionsForKongService(cl client.Client) []Option

OptionsForKongService returns required Index options for KongService reconciler.

func OptionsForKongTarget added in v1.6.0

func OptionsForKongTarget() []Option

OptionsForKongTarget returns required Index options for KongTarget reconciler.

func OptionsForKongUpstream added in v1.6.0

func OptionsForKongUpstream(cl client.Client) []Option

OptionsForKongUpstream returns required Index options for KongUpstream reconciler.

func OptionsForKongVault added in v1.6.0

func OptionsForKongVault(cl client.Client) []Option

OptionsForKongVault returns required Index options for KongVault reconciler.

func OptionsForKonnectCloudGatewayDataPlaneGroupConfiguration added in v1.6.0

func OptionsForKonnectCloudGatewayDataPlaneGroupConfiguration(cl client.Client) []Option

OptionsForKonnectCloudGatewayDataPlaneGroupConfiguration returns required Index options for KonnectCloudGatewayDataPlaneGroupConfiguration reconciler.

func OptionsForKonnectCloudGatewayNetwork added in v1.6.0

func OptionsForKonnectCloudGatewayNetwork() []Option

OptionsForKonnectCloudGatewayNetwork returns required Index options for KonnectCloudGatewayNetwork reconciler.

func OptionsForKonnectCloudGatewayTransitGateway added in v1.6.0

func OptionsForKonnectCloudGatewayTransitGateway() []Option

func OptionsForKonnectExtension added in v1.6.0

func OptionsForKonnectExtension() []Option

OptionsForKonnectExtension returns required Index options for KonnectExtension reconciler.

func OptionsForKonnectGatewayControlPlane added in v1.6.0

func OptionsForKonnectGatewayControlPlane() []Option

OptionsForKonnectGatewayControlPlane returns required Index options for KonnectGatewayControlPlane reconciler.

func (Option) String added in v1.6.0

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