Documentation
¶
Index ¶
- Constants
- func ListObjectsReferencingKonnectExtension[t ExtendableObjectListT](c client.Client, objList t) handler.TypedMapFunc[*konnectv1alpha1.KonnectExtension, reconcile.Request]
- type DataPlaneFlags
- type ExtendableObjectListT
- type Option
- func OptionsForControlPlane(konnectControllersEnabled bool) []Option
- func OptionsForCredentialsACL() []Option
- func OptionsForCredentialsAPIKey() []Option
- func OptionsForCredentialsBasicAuth() []Option
- func OptionsForCredentialsHMAC() []Option
- func OptionsForCredentialsJWT() []Option
- func OptionsForDataPlane(flags DataPlaneFlags) []Option
- func OptionsForGatewayConfiguration() []Option
- func OptionsForKongCACertificate(cl client.Client) []Option
- func OptionsForKongCertificate(cl client.Client) []Option
- func OptionsForKongConsumer(cl client.Client) []Option
- func OptionsForKongConsumerGroup(cl client.Client) []Option
- func OptionsForKongDataPlaneCertificate(cl client.Client) []Option
- func OptionsForKongKey(cl client.Client) []Option
- func OptionsForKongKeySet(cl client.Client) []Option
- func OptionsForKongPluginBinding() []Option
- func OptionsForKongRoute(cl client.Client) []Option
- func OptionsForKongSNI() []Option
- func OptionsForKongService(cl client.Client) []Option
- func OptionsForKongTarget() []Option
- func OptionsForKongUpstream(cl client.Client) []Option
- func OptionsForKongVault(cl client.Client) []Option
- func OptionsForKonnectCloudGatewayDataPlaneGroupConfiguration(cl client.Client) []Option
- func OptionsForKonnectCloudGatewayNetwork() []Option
- func OptionsForKonnectCloudGatewayTransitGateway() []Option
- func OptionsForKonnectExtension() []Option
- func OptionsForKonnectGatewayControlPlane() []Option
Constants ¶
const ( // IndexFieldKongCredentialACLReferencesKongConsumer is the index name for KongCredentialACL -> Consumer. IndexFieldKongCredentialACLReferencesKongConsumer = "kongCredentialsACLConsumerRef" // IndexFieldKongCredentialACLReferencesKongSecret is the index name for KongCredentialACL -> Secret. IndexFieldKongCredentialACLReferencesKongSecret = "kongCredentialsACLSecretRef" )
const ( // IndexFieldKongCredentialAPIKeyReferencesKongConsumer is the index name for KongCredentialAPIKey -> Consumer. IndexFieldKongCredentialAPIKeyReferencesKongConsumer = "kongCredentialsAPIKeyConsumerRef" // IndexFieldKongCredentialAPIKeyReferencesSecret is the index name for KongCredentialAPIKey -> Secret. IndexFieldKongCredentialAPIKeyReferencesSecret = "kongCredentialsAPIKeySecretRef" )
const ( // IndexFieldKongCredentialBasicAuthReferencesKongConsumer is the index name for KongCredentialBasicAuth -> Consumer. IndexFieldKongCredentialBasicAuthReferencesKongConsumer = "kongCredentialsBasicAuthConsumerRef" // IndexFieldKongCredentialBasicAuthReferencesSecret is the index name for KongCredentialBasicAuth -> Secret. IndexFieldKongCredentialBasicAuthReferencesSecret = "kongCredentialsBasicAuthSecretRef" )
const ( // IndexFieldKongCredentialHMACReferencesKongConsumer is the index name for KongCredentialHMAC -> Consumer. IndexFieldKongCredentialHMACReferencesKongConsumer = "kongCredentialsHMACConsumerRef" // IndexFieldKongCredentialHMACReferencesSecret is the index name for KongCredentialHMAC -> Secret. IndexFieldKongCredentialHMACReferencesSecret = "kongCredentialsHMACSecretRef" )
const ( // IndexFieldKongCredentialJWTReferencesKongConsumer is the index name for KongCredentialJWT -> Consumer. IndexFieldKongCredentialJWTReferencesKongConsumer = "kongCredentialsJWTConsumerRef" // IndexFieldKongCredentialJWTReferencesSecret is the index name for KongCredentialJWT -> Secret. IndexFieldKongCredentialJWTReferencesSecret = "kongCredentialsJWTSecretRef" )
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" )
const ( // IndexFieldKongConsumerGroupOnPlugin is the index field for KongConsumerGroup -> KongPlugin. IndexFieldKongConsumerGroupOnPlugin = "consumerGroupPluginRef" // IndexFieldKongConsumerGroupOnKonnectGatewayControlPlane is the index field for KongConsumerGroup -> KonnectGatewayControlPlane. IndexFieldKongConsumerGroupOnKonnectGatewayControlPlane = "consumerGroupKonnectGatewayControlPlaneRef" )
const ( // IndexFieldKongKeyOnKongKeySetReference is the index field for KongKey-> KongKeySet. IndexFieldKongKeyOnKongKeySetReference = "kongKeySetRef" // IndexFieldKongKeyOnKonnectGatewayControlPlane is the index field for KongKey -> KonnectGatewayControlPlane. IndexFieldKongKeyOnKonnectGatewayControlPlane = "kongKeyKonnectGatewayControlPlaneRef" )
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" )
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" )
const ( // IndexFieldKongServiceOnReferencedPluginNames is the index field for KongService -> KongPlugin. IndexFieldKongServiceOnReferencedPluginNames = "kongServiceKongPluginRef" // IndexFieldKongServiceOnKonnectGatewayControlPlane is the index field for KongService -> KonnectGatewayControlPlane. IndexFieldKongServiceOnKonnectGatewayControlPlane = "kongServiceKonnectGatewayControlPlaneRef" )
const ( // IndexFieldKonnectCloudGatewayDataPlaneGroupConfigurationOnKonnectGatewayControlPlane is the index field for KonnectCloudGatewayDataPlaneGroupConfiguration -> KonnectGatewayControlPlane. IndexFieldKonnectCloudGatewayDataPlaneGroupConfigurationOnKonnectGatewayControlPlane = "konnectCloudGatewayDataPlaneGroupConfigurationOnKonnectGatewayControlPlaneRef" // IndexFieldKonnectCloudGatewayDataPlaneGroupConfigurationOnKonnectNetworkRef is the index field for KonnectCloudGatewayDataPlaneGroupConfiguration -> KonnectNetwork. IndexFieldKonnectCloudGatewayDataPlaneGroupConfigurationOnKonnectNetworkRef = "konnectCloudGatewayDataPlaneGroupConfigurationOnKonnectNetworkRef" )
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" )
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" )
const (
// DataPlaneNameIndex is the key to be used to access the .spec.dataplaneName indexed values.
DataPlaneNameIndex = "dataplane"
)
const (
// IndexFieldKongCACertificateOnKonnectGatewayControlPlane is the index field for KongCACertificate -> KonnectGatewayControlPlane.
IndexFieldKongCACertificateOnKonnectGatewayControlPlane = "kongCACertificateKonnectGatewayControlPlaneRef"
)
const (
// IndexFieldKongCertificateOnKonnectGatewayControlPlane is the index field for KongCertificate -> KonnectGatewayControlPlane.
IndexFieldKongCertificateOnKonnectGatewayControlPlane = "kongCertificateKonnectGatewayControlPlaneRef"
)
const (
// IndexFieldKongDataPlaneClientCertificateOnKonnectGatewayControlPlane is the index field for KongDataPlaneCertificate -> KonnectGatewayControlPlane.
IndexFieldKongDataPlaneClientCertificateOnKonnectGatewayControlPlane = "dataPlaneCertificateKonnectGatewayControlPlaneRef"
)
const (
// IndexFieldKongKeySetOnKonnectGatewayControlPlane is the index field for KongKeySet -> KonnectGatewayControlPlane.
IndexFieldKongKeySetOnKonnectGatewayControlPlane = "kongKeySetKonnectGatewayControlPlaneRef"
)
const (
// IndexFieldKongSNIOnCertificateRefNmae is the index field for KongSNI -> Certificate.
IndexFieldKongSNIOnCertificateRefNmae = "kongSNICertificateRefName"
)
const (
// IndexFieldKongTargetOnReferencedUpstream is the index field for KongTarget -> KongUpstream.
IndexFieldKongTargetOnReferencedUpstream = "kongTargetUpstreamRef"
)
const (
// IndexFieldKongUpstreamOnKonnectGatewayControlPlane is the index field for KongUpstream -> KonnectGatewayControlPlane.
IndexFieldKongUpstreamOnKonnectGatewayControlPlane = "kongUpstreamKonnectGatewayControlPlaneRef"
)
const (
// IndexFieldKongVaultOnKonnectGatewayControlPlane is the index field for KongVault -> KonnectGatewayControlPlane.
IndexFieldKongVaultOnKonnectGatewayControlPlane = "vaultKonnectGatewayControlPlaneRef"
)
const (
// IndexFieldKonnectCloudGatewayNetworkOnAPIAuthConfiguration is the index field for KonnectCloudGatewayNetwork -> APIAuthConfiguration.
IndexFieldKonnectCloudGatewayNetworkOnAPIAuthConfiguration = "konnectCloudGatewayNetworkAPIAuthConfigurationRef"
)
const (
// IndexFieldKonnectCloudGatewayTransitGatewayOnKonnectNetworkRef is the index field for KonnectCloudGatewayTransitGateway -> KonnectCloudGatewayNetwork.
IndexFieldKonnectCloudGatewayTransitGatewayOnKonnectNetworkRef = "KonnectCloudGatewayTransitGatewayOnKonnectNetworkRef"
)
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" )
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
type ExtendableObjectListT interface {
client.ObjectList
*operatorv1beta1.DataPlaneList |
*operatorv1beta1.ControlPlaneList |
*operatorv1beta1.GatewayConfigurationList
}
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
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
OptionsForKongCACertificate returns required Index options for KongCACertificate reconclier.
func OptionsForKongCertificate ¶ added in v1.6.0
OptionsForKongCertificate returns required Index options for KongCertificate reconclier.
func OptionsForKongConsumer ¶ added in v1.6.0
OptionsForKongConsumer returns required Index options for KongConsumer reconciler.
func OptionsForKongConsumerGroup ¶ added in v1.6.0
OptionsForKongConsumerGroup returns required Index options for KongConsumerGroup reconciler.
func OptionsForKongDataPlaneCertificate ¶ added in v1.6.0
OptionsForKongDataPlaneCertificate returns required Index options for KongConsumer reconciler.
func OptionsForKongKey ¶ added in v1.6.0
OptionsForKongKey returns required Index options for KongKey reconclier.
func OptionsForKongKeySet ¶ added in v1.6.0
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
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
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
OptionsForKongUpstream returns required Index options for KongUpstream reconciler.
func OptionsForKongVault ¶ added in v1.6.0
OptionsForKongVault returns required Index options for KongVault reconciler.
func OptionsForKonnectCloudGatewayDataPlaneGroupConfiguration ¶ added in v1.6.0
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.
Source Files
¶
- controlplane.go
- controlplane_ref.go
- credentials.go
- credentials_acl.go
- credentials_apikey.go
- credentials_basicauth.go
- credentials_hmac.go
- credentials_jwt.go
- dataplane.go
- extendable.go
- gatewayconfiguration.go
- index.go
- kongcacertificate.go
- kongcertificate.go
- kongconsumer.go
- kongconsumergroup.go
- kongdataplanecertificate.go
- kongkey.go
- kongkeyset.go
- kongpluginbinding.go
- kongroute.go
- kongservice.go
- kongtarget.go
- kongupstream.go
- kongvault.go
- konnectcloudgatewaydataplanegroupconfiguration.go
- konnectcloudgatewaynetwork.go
- konnectcloudgatewaytransitgateway.go
- konnectextension.go
- konnectgatewaycontrolplane.go
- sni.go