Documentation
¶
Overview ¶
Package v1alpha2 contains API Schema definitions for the konnect.konghq.com v1alpha2 API group. +kubebuilder:object:generate=true +groupName=konnect.konghq.com
Index ¶
- Constants
- Variables
- func KonnectGatewayControlPlaneGVR() schema.GroupVersionResource
- func Resource(resource string) schema.GroupResource
- type CertificateSecret
- type DataPlaneClientAuthStatus
- type DataPlaneLabelValue
- type KonnectAPIAuthConfigurationRef
- type KonnectConfiguration
- type KonnectEndpoints
- type KonnectEntityStatus
- func (in *KonnectEntityStatus) DeepCopy() *KonnectEntityStatus
- func (in *KonnectEntityStatus) DeepCopyInto(out *KonnectEntityStatus)
- func (in *KonnectEntityStatus) GetKonnectID() string
- func (in *KonnectEntityStatus) GetOrgID() string
- func (in *KonnectEntityStatus) GetServerURL() string
- func (in *KonnectEntityStatus) SetKonnectID(id string)
- func (in *KonnectEntityStatus) SetOrgID(id string)
- func (in *KonnectEntityStatus) SetServerURL(s string)
- type KonnectEntityStatusWithControlPlaneAndCertificateRefs
- type KonnectEntityStatusWithControlPlaneAndConsumerRefs
- func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) DeepCopy() *KonnectEntityStatusWithControlPlaneAndConsumerRefs
- func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) DeepCopyInto(out *KonnectEntityStatusWithControlPlaneAndConsumerRefs)
- func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) GetConsumerID() string
- func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) GetControlPlaneID() string
- func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) SetConsumerID(id string)
- func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) SetControlPlaneID(id string)
- type KonnectEntityStatusWithControlPlaneAndKeySetRef
- func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) DeepCopy() *KonnectEntityStatusWithControlPlaneAndKeySetRef
- func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) DeepCopyInto(out *KonnectEntityStatusWithControlPlaneAndKeySetRef)
- func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) GetControlPlaneID() string
- func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) GetKeySetID() string
- func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) SetControlPlaneID(id string)
- func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) SetKeySetID(id string)
- type KonnectEntityStatusWithControlPlaneAndServiceRefs
- func (in *KonnectEntityStatusWithControlPlaneAndServiceRefs) DeepCopy() *KonnectEntityStatusWithControlPlaneAndServiceRefs
- func (in *KonnectEntityStatusWithControlPlaneAndServiceRefs) DeepCopyInto(out *KonnectEntityStatusWithControlPlaneAndServiceRefs)
- func (in *KonnectEntityStatusWithControlPlaneAndServiceRefs) GetControlPlaneID() string
- func (in *KonnectEntityStatusWithControlPlaneAndServiceRefs) SetControlPlaneID(id string)
- type KonnectEntityStatusWithControlPlaneAndUpstreamRefs
- type KonnectEntityStatusWithControlPlaneRef
- func (in *KonnectEntityStatusWithControlPlaneRef) DeepCopy() *KonnectEntityStatusWithControlPlaneRef
- func (in *KonnectEntityStatusWithControlPlaneRef) DeepCopyInto(out *KonnectEntityStatusWithControlPlaneRef)
- func (in *KonnectEntityStatusWithControlPlaneRef) GetControlPlaneID() string
- func (in *KonnectEntityStatusWithControlPlaneRef) SetControlPlaneID(id string)
- type KonnectEntityStatusWithNetworkRef
- type KonnectExtension
- func (in *KonnectExtension) DeepCopy() *KonnectExtension
- func (in *KonnectExtension) DeepCopyInto(out *KonnectExtension)
- func (in *KonnectExtension) DeepCopyObject() runtime.Object
- func (obj *KonnectExtension) GetConditions() []metav1.Condition
- func (obj *KonnectExtension) GetControlPlaneRef() *commonv1alpha1.KonnectExtensionControlPlaneRef
- func (obj KonnectExtension) GetTypeName() string
- func (obj *KonnectExtension) SetConditions(conditions []metav1.Condition)
- func (obj *KonnectExtension) SetControlPlaneRef(ref *commonv1alpha1.KonnectExtensionControlPlaneRef)
- type KonnectExtensionClientAuth
- type KonnectExtensionClusterType
- type KonnectExtensionControlPlane
- type KonnectExtensionControlPlaneStatus
- type KonnectExtensionDataPlane
- type KonnectExtensionKonnectSpec
- type KonnectExtensionList
- type KonnectExtensionSpec
- type KonnectExtensionStatus
- type KonnectGatewayControlPlane
- func (in *KonnectGatewayControlPlane) DeepCopy() *KonnectGatewayControlPlane
- func (in *KonnectGatewayControlPlane) DeepCopyInto(out *KonnectGatewayControlPlane)
- func (in *KonnectGatewayControlPlane) DeepCopyObject() runtime.Object
- func (obj *KonnectGatewayControlPlane) GetConditions() []metav1.Condition
- func (c *KonnectGatewayControlPlane) GetKonnectAPIAuthConfigurationRef() KonnectAPIAuthConfigurationRef
- func (c *KonnectGatewayControlPlane) GetKonnectAuthType() *sdkkonnectcomp.AuthType
- func (c *KonnectGatewayControlPlane) GetKonnectCloudGateway() *bool
- func (c *KonnectGatewayControlPlane) GetKonnectClusterType() *sdkkonnectcomp.CreateControlPlaneRequestClusterType
- func (c *KonnectGatewayControlPlane) GetKonnectDescription() *string
- func (obj *KonnectGatewayControlPlane) GetKonnectID() string
- func (c *KonnectGatewayControlPlane) GetKonnectLabels() map[string]string
- func (c *KonnectGatewayControlPlane) GetKonnectName() string
- func (c *KonnectGatewayControlPlane) GetKonnectProxyURLs() []sdkkonnectcomp.ProxyURL
- func (obj *KonnectGatewayControlPlane) GetKonnectStatus() *KonnectEntityStatus
- func (obj KonnectGatewayControlPlane) GetTypeName() string
- func (*KonnectGatewayControlPlane) Hub()
- func (obj *KonnectGatewayControlPlane) SetConditions(conditions []metav1.Condition)
- func (c *KonnectGatewayControlPlane) SetKonnectAuthType(authType *sdkkonnectcomp.AuthType)
- func (c *KonnectGatewayControlPlane) SetKonnectCloudGateway(cloudGateway *bool)
- func (c *KonnectGatewayControlPlane) SetKonnectClusterType(clusterType *sdkkonnectcomp.CreateControlPlaneRequestClusterType)
- func (c *KonnectGatewayControlPlane) SetKonnectDescription(description *string)
- func (obj *KonnectGatewayControlPlane) SetKonnectID(id string)
- func (c *KonnectGatewayControlPlane) SetKonnectLabels(labels map[string]string)
- func (c *KonnectGatewayControlPlane) SetKonnectName(name string)
- func (c *KonnectGatewayControlPlane) SetKonnectProxyURLs(proxyURLs []sdkkonnectcomp.ProxyURL)
- type KonnectGatewayControlPlaneList
- func (in *KonnectGatewayControlPlaneList) DeepCopy() *KonnectGatewayControlPlaneList
- func (in *KonnectGatewayControlPlaneList) DeepCopyInto(out *KonnectGatewayControlPlaneList)
- func (in *KonnectGatewayControlPlaneList) DeepCopyObject() runtime.Object
- func (obj KonnectGatewayControlPlaneList) GetItems() []KonnectGatewayControlPlane
- type KonnectGatewayControlPlaneSpec
- type KonnectGatewayControlPlaneStatus
- type MirrorKonnect
- type MirrorSpec
- type ProvisioningMethod
- type SecretRef
Constants ¶
const ( // KonnectExtensionReadyConditionType is the type of the condition that indicates // whether the Konnect extension is ready to be used. KonnectExtensionReadyConditionType = "Ready" // KonnectExtensionReadyReasonReady is the reason used with the // KonnectExtensionReady condition type indicating that the Konnect extension // is Ready. KonnectExtensionReadyReasonReady = "Ready" // KonnectExtensionReadyReasonPending is the reason used with the // KonnectExtensionReady condition type indicating that the Konnect extension // is pending. KonnectExtensionReadyReasonPending = "Pending" // KonnectExtensionReadyReasonProvisioning is the reason used with the // KonnectExtensionReady condition type indicating that the Konnect extension // is provisioning. KonnectExtensionReadyReasonProvisioning = "Provisioning" )
const (
// KonnectExtensionKind holds the kind for the KonnectExtension.
KonnectExtensionKind = "KonnectExtension"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "konnect.konghq.com", Version: "v1alpha2"} // SchemeGroupVersion is a convenience var for generated clientsets. SchemeGroupVersion = GroupVersion // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
func KonnectGatewayControlPlaneGVR ¶
func KonnectGatewayControlPlaneGVR() schema.GroupVersionResource
KonnectGatewayControlPlaneGVR returns the current KonnectGatewayControlPlane GVR.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type CertificateSecret ¶
type CertificateSecret struct { // Provisioning is the method used to provision the certificate. It can be either Manual or Automatic. // In case manual provisioning is used, the certificate must be provided by the user. // In case automatic provisioning is used, the certificate will be automatically generated by the system. // // +optional // +kubebuilder:validation:Enum=Manual;Automatic // +kubebuilder:default=Automatic Provisioning *ProvisioningMethod `json:"provisioning,omitempty"` // CertificateSecretRef is the reference to the Secret containing the client certificate. // // +optional CertificateSecretRef *SecretRef `json:"secretRef,omitempty"` }
CertificateSecret contains the information to access the client certificate.
func (*CertificateSecret) DeepCopy ¶
func (in *CertificateSecret) DeepCopy() *CertificateSecret
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSecret.
func (*CertificateSecret) DeepCopyInto ¶
func (in *CertificateSecret) DeepCopyInto(out *CertificateSecret)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DataPlaneClientAuthStatus ¶
type DataPlaneClientAuthStatus struct { // CertificateSecretRef is the reference to the Secret containing the client certificate. // // +optional CertificateSecretRef *SecretRef `json:"certificateSecretRef,omitempty"` }
DataPlaneClientAuthStatus contains the status information related to the ClientAuth configuration.
func (*DataPlaneClientAuthStatus) DeepCopy ¶
func (in *DataPlaneClientAuthStatus) DeepCopy() *DataPlaneClientAuthStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataPlaneClientAuthStatus.
func (*DataPlaneClientAuthStatus) DeepCopyInto ¶
func (in *DataPlaneClientAuthStatus) DeepCopyInto(out *DataPlaneClientAuthStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DataPlaneLabelValue ¶
type DataPlaneLabelValue string
DataPlaneLabelValue is the type that defines the value of a label that will be applied to the Konnect DataPlane.
+kubebuilder:validation:MinLength=1 +kubebuilder:validation:MaxLength=63 +kubebuilder:validation:Pattern="^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$"
type KonnectAPIAuthConfigurationRef ¶
type KonnectAPIAuthConfigurationRef struct { // Name is the name of the KonnectAPIAuthConfiguration resource. // +required Name string `json:"name"` }
KonnectAPIAuthConfigurationRef is a reference to a KonnectAPIAuthConfiguration resource. +apireference:kgo:include
func (*KonnectAPIAuthConfigurationRef) DeepCopy ¶
func (in *KonnectAPIAuthConfigurationRef) DeepCopy() *KonnectAPIAuthConfigurationRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectAPIAuthConfigurationRef.
func (*KonnectAPIAuthConfigurationRef) DeepCopyInto ¶
func (in *KonnectAPIAuthConfigurationRef) DeepCopyInto(out *KonnectAPIAuthConfigurationRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectConfiguration ¶
type KonnectConfiguration struct { // APIAuthConfigurationRef is the reference to the API Auth Configuration // that should be used for this Konnect Configuration. // // +required APIAuthConfigurationRef KonnectAPIAuthConfigurationRef `json:"authRef"` }
KonnectConfiguration is the Schema for the KonnectConfiguration API. +kubebuilder:object:generate=false +apireference:kgo:include
type KonnectEndpoints ¶
type KonnectEndpoints struct { // TelemetryEndpoint is the endpoint for telemetry. // // +required TelemetryEndpoint string `json:"telemetry"` // ControlPlaneEndpoint is the endpoint for the control plane. // // +required ControlPlaneEndpoint string `json:"controlPlane"` }
KonnectEndpoints defines the Konnect endpoints for the control plane.
func (*KonnectEndpoints) DeepCopy ¶
func (in *KonnectEndpoints) DeepCopy() *KonnectEndpoints
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectEndpoints.
func (*KonnectEndpoints) DeepCopyInto ¶
func (in *KonnectEndpoints) DeepCopyInto(out *KonnectEndpoints)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectEntityStatus ¶
type KonnectEntityStatus struct { // ID is the unique identifier of the Konnect entity as assigned by Konnect API. // If it's unset (empty string), it means the Konnect entity hasn't been created yet. // // +optional ID string `json:"id,omitempty"` // ServerURL is the URL of the Konnect server in which the entity exists. // // +optional ServerURL string `json:"serverURL,omitempty"` // OrgID is ID of Konnect Org that this entity has been created in. // // +optional OrgID string `json:"organizationID,omitempty"` }
KonnectEntityStatus represents the status of a Konnect entity. +apireference:kgo:include
func (*KonnectEntityStatus) DeepCopy ¶
func (in *KonnectEntityStatus) DeepCopy() *KonnectEntityStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectEntityStatus.
func (*KonnectEntityStatus) DeepCopyInto ¶
func (in *KonnectEntityStatus) DeepCopyInto(out *KonnectEntityStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KonnectEntityStatus) GetKonnectID ¶
func (in *KonnectEntityStatus) GetKonnectID() string
GetKonnectID returns the ID field of the KonnectEntityStatus struct.
func (*KonnectEntityStatus) GetOrgID ¶
func (in *KonnectEntityStatus) GetOrgID() string
GetOrgID returns the OrgID field of the KonnectEntityStatus struct.
func (*KonnectEntityStatus) GetServerURL ¶
func (in *KonnectEntityStatus) GetServerURL() string
GetServerURL returns the server URL of the KonnectEntityStatus struct.
func (*KonnectEntityStatus) SetKonnectID ¶
func (in *KonnectEntityStatus) SetKonnectID(id string)
SetKonnectID sets the ID field of the KonnectEntityStatus struct.
func (*KonnectEntityStatus) SetOrgID ¶
func (in *KonnectEntityStatus) SetOrgID(id string)
SetOrgID sets the OrgID field of the KonnectEntityStatus struct.
func (*KonnectEntityStatus) SetServerURL ¶
func (in *KonnectEntityStatus) SetServerURL(s string)
SetServerURL sets the server URL of the KonnectEntityStatus struct.
type KonnectEntityStatusWithControlPlaneAndCertificateRefs ¶
type KonnectEntityStatusWithControlPlaneAndCertificateRefs struct { KonnectEntityStatus `json:",inline"` // ControlPlaneID is the Konnect ID of the ControlPlane this entity is associated with. // // +optional ControlPlaneID string `json:"controlPlaneID,omitempty"` // CertificateID is the Konnect ID of the Certificate this entity is associated with. // // +optional CertificateID string `json:"certificateID,omitempty"` }
KonnectEntityStatusWithControlPlaneAndCertificateRefs represents the status of a Konnect entity with references to a ControlPlane and a Certificate. +apireference:kgo:include
func (*KonnectEntityStatusWithControlPlaneAndCertificateRefs) DeepCopy ¶
func (in *KonnectEntityStatusWithControlPlaneAndCertificateRefs) DeepCopy() *KonnectEntityStatusWithControlPlaneAndCertificateRefs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectEntityStatusWithControlPlaneAndCertificateRefs.
func (*KonnectEntityStatusWithControlPlaneAndCertificateRefs) DeepCopyInto ¶
func (in *KonnectEntityStatusWithControlPlaneAndCertificateRefs) DeepCopyInto(out *KonnectEntityStatusWithControlPlaneAndCertificateRefs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectEntityStatusWithControlPlaneAndConsumerRefs ¶
type KonnectEntityStatusWithControlPlaneAndConsumerRefs struct { KonnectEntityStatus `json:",inline"` // ControlPlaneID is the Konnect ID of the ControlPlane this Route is associated with. // // +optional ControlPlaneID string `json:"controlPlaneID,omitempty"` // ConsumerID is the Konnect ID of the Consumer this entity is associated with. // // +optional ConsumerID string `json:"consumerID,omitempty"` }
KonnectEntityStatusWithControlPlaneAndConsumerRefs represents the status of a Konnect entity with references to a ControlPlane and a Consumer. +apireference:kgo:include
func (*KonnectEntityStatusWithControlPlaneAndConsumerRefs) DeepCopy ¶
func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) DeepCopy() *KonnectEntityStatusWithControlPlaneAndConsumerRefs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectEntityStatusWithControlPlaneAndConsumerRefs.
func (*KonnectEntityStatusWithControlPlaneAndConsumerRefs) DeepCopyInto ¶
func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) DeepCopyInto(out *KonnectEntityStatusWithControlPlaneAndConsumerRefs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KonnectEntityStatusWithControlPlaneAndConsumerRefs) GetConsumerID ¶
func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) GetConsumerID() string
GetConsumerID sets the Consumer ID of the KonnectEntityStatus struct.
func (*KonnectEntityStatusWithControlPlaneAndConsumerRefs) GetControlPlaneID ¶
func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) GetControlPlaneID() string
GetControlPlaneID sets the ControlPlane ID of the KonnectEntityStatus struct.
func (*KonnectEntityStatusWithControlPlaneAndConsumerRefs) SetConsumerID ¶
func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) SetConsumerID(id string)
SetConsumerID sets the Consumer ID of the KonnectEntityStatus struct.
func (*KonnectEntityStatusWithControlPlaneAndConsumerRefs) SetControlPlaneID ¶
func (in *KonnectEntityStatusWithControlPlaneAndConsumerRefs) SetControlPlaneID(id string)
SetControlPlaneID sets the ControlPlane ID of the KonnectEntityStatus struct.
type KonnectEntityStatusWithControlPlaneAndKeySetRef ¶
type KonnectEntityStatusWithControlPlaneAndKeySetRef struct { KonnectEntityStatus `json:",inline"` // ControlPlaneID is the Konnect ID of the ControlPlane this entity is associated with. // // +optional ControlPlaneID string `json:"controlPlaneID,omitempty"` // KeySetID is the Konnect ID of the KeySet this entity is associated with. // // +optional KeySetID string `json:"keySetID,omitempty"` }
KonnectEntityStatusWithControlPlaneAndKeySetRef represents the status of a Konnect entity with references to a ControlPlane and a KeySet. +apireference:kgo:include
func (*KonnectEntityStatusWithControlPlaneAndKeySetRef) DeepCopy ¶
func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) DeepCopy() *KonnectEntityStatusWithControlPlaneAndKeySetRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectEntityStatusWithControlPlaneAndKeySetRef.
func (*KonnectEntityStatusWithControlPlaneAndKeySetRef) DeepCopyInto ¶
func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) DeepCopyInto(out *KonnectEntityStatusWithControlPlaneAndKeySetRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KonnectEntityStatusWithControlPlaneAndKeySetRef) GetControlPlaneID ¶
func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) GetControlPlaneID() string
GetControlPlaneID sets the ControlPlane ID of the KonnectEntityStatus struct.
func (*KonnectEntityStatusWithControlPlaneAndKeySetRef) GetKeySetID ¶
func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) GetKeySetID() string
GetKeySetID sets the KeySet ID of the KonnectEntityStatus struct.
func (*KonnectEntityStatusWithControlPlaneAndKeySetRef) SetControlPlaneID ¶
func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) SetControlPlaneID(id string)
SetControlPlaneID sets the ControlPlane ID of the KonnectEntityStatus struct.
func (*KonnectEntityStatusWithControlPlaneAndKeySetRef) SetKeySetID ¶
func (in *KonnectEntityStatusWithControlPlaneAndKeySetRef) SetKeySetID(id string)
SetKeySetID sets the KeySet ID of the KonnectEntityStatus struct.
type KonnectEntityStatusWithControlPlaneAndServiceRefs ¶
type KonnectEntityStatusWithControlPlaneAndServiceRefs struct { KonnectEntityStatus `json:",inline"` // ControlPlaneID is the Konnect ID of the ControlPlane this entity is associated with. // // +optional ControlPlaneID string `json:"controlPlaneID,omitempty"` // ServiceID is the Konnect ID of the Service this entity is associated with. // // +optional ServiceID string `json:"serviceID,omitempty"` }
KonnectEntityStatusWithControlPlaneAndServiceRefs represents the status of a Konnect entity with references to a ControlPlane and a Service. +apireference:kgo:include
func (*KonnectEntityStatusWithControlPlaneAndServiceRefs) DeepCopy ¶
func (in *KonnectEntityStatusWithControlPlaneAndServiceRefs) DeepCopy() *KonnectEntityStatusWithControlPlaneAndServiceRefs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectEntityStatusWithControlPlaneAndServiceRefs.
func (*KonnectEntityStatusWithControlPlaneAndServiceRefs) DeepCopyInto ¶
func (in *KonnectEntityStatusWithControlPlaneAndServiceRefs) DeepCopyInto(out *KonnectEntityStatusWithControlPlaneAndServiceRefs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KonnectEntityStatusWithControlPlaneAndServiceRefs) GetControlPlaneID ¶
func (in *KonnectEntityStatusWithControlPlaneAndServiceRefs) GetControlPlaneID() string
GetControlPlaneID sets the server URL of the KonnectEntityStatus struct.
func (*KonnectEntityStatusWithControlPlaneAndServiceRefs) SetControlPlaneID ¶
func (in *KonnectEntityStatusWithControlPlaneAndServiceRefs) SetControlPlaneID(id string)
SetControlPlaneID sets the server URL of the KonnectEntityStatus struct.
type KonnectEntityStatusWithControlPlaneAndUpstreamRefs ¶
type KonnectEntityStatusWithControlPlaneAndUpstreamRefs struct { KonnectEntityStatus `json:",inline"` // ControlPlaneID is the Konnect ID of the ControlPlane this entity is associated with. // // +optional ControlPlaneID string `json:"controlPlaneID,omitempty"` // UpstreamID is the Konnect ID of the Upstream this entity is associated with. // // +optional UpstreamID string `json:"upstreamID,omitempty"` }
KonnectEntityStatusWithControlPlaneAndUpstreamRefs represents the status of a Konnect entity with references to a ControlPlane and an Upstream. +apireference:kgo:include
func (*KonnectEntityStatusWithControlPlaneAndUpstreamRefs) DeepCopy ¶
func (in *KonnectEntityStatusWithControlPlaneAndUpstreamRefs) DeepCopy() *KonnectEntityStatusWithControlPlaneAndUpstreamRefs
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectEntityStatusWithControlPlaneAndUpstreamRefs.
func (*KonnectEntityStatusWithControlPlaneAndUpstreamRefs) DeepCopyInto ¶
func (in *KonnectEntityStatusWithControlPlaneAndUpstreamRefs) DeepCopyInto(out *KonnectEntityStatusWithControlPlaneAndUpstreamRefs)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectEntityStatusWithControlPlaneRef ¶
type KonnectEntityStatusWithControlPlaneRef struct { KonnectEntityStatus `json:",inline"` // ControlPlaneID is the Konnect ID of the ControlPlane this Route is associated with. // // +optional ControlPlaneID string `json:"controlPlaneID,omitempty"` }
KonnectEntityStatusWithControlPlaneRef represents the status of a Konnect entity with a reference to a ControlPlane. +apireference:kgo:include
func (*KonnectEntityStatusWithControlPlaneRef) DeepCopy ¶
func (in *KonnectEntityStatusWithControlPlaneRef) DeepCopy() *KonnectEntityStatusWithControlPlaneRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectEntityStatusWithControlPlaneRef.
func (*KonnectEntityStatusWithControlPlaneRef) DeepCopyInto ¶
func (in *KonnectEntityStatusWithControlPlaneRef) DeepCopyInto(out *KonnectEntityStatusWithControlPlaneRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KonnectEntityStatusWithControlPlaneRef) GetControlPlaneID ¶
func (in *KonnectEntityStatusWithControlPlaneRef) GetControlPlaneID() string
GetControlPlaneID sets the ControlPlane ID of the KonnectEntityStatus struct.
func (*KonnectEntityStatusWithControlPlaneRef) SetControlPlaneID ¶
func (in *KonnectEntityStatusWithControlPlaneRef) SetControlPlaneID(id string)
SetControlPlaneID sets the ControlPlane ID of the KonnectEntityStatus struct.
type KonnectEntityStatusWithNetworkRef ¶
type KonnectEntityStatusWithNetworkRef struct { KonnectEntityStatus `json:",inline"` // NetworkID is the Konnect ID of the Konnect cloud gateway network this entity is associated with. // // +optional NetworkID string `json:"networkID,omitempty"` }
KonnectEntityStatusWithNetworkRef represents the status of a Konnect entity with reference to a Konnect cloud gateway network.
func (*KonnectEntityStatusWithNetworkRef) DeepCopy ¶
func (in *KonnectEntityStatusWithNetworkRef) DeepCopy() *KonnectEntityStatusWithNetworkRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectEntityStatusWithNetworkRef.
func (*KonnectEntityStatusWithNetworkRef) DeepCopyInto ¶
func (in *KonnectEntityStatusWithNetworkRef) DeepCopyInto(out *KonnectEntityStatusWithNetworkRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectExtension ¶
type KonnectExtension struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec is the specification of the KonnectExtension resource. Spec KonnectExtensionSpec `json:"spec,omitempty"` // Status is the status of the KonnectExtension resource. // // +optional // +kubebuilder:default={conditions: {{type: "Ready", status: "Unknown", reason:"Pending", message:"Waiting for controller", lastTransitionTime: "1970-01-01T00:00:00Z"}}} Status KonnectExtensionStatus `json:"status,omitempty"` }
KonnectExtension is the Schema for the KonnectExtension API, and is intended to be referenced as extension by the DataPlane, ControlPlane or GatewayConfiguration APIs. If one of the above mentioned resources successfully refers a KonnectExtension, the underlying deployment(s) spec gets customized to include the konnect-related configuration.
+genclient +kubebuilder:storageversion +kubebuilder:resource:scope=Namespaced +kubebuilder:resource:categories=kong;konnect +kubebuilder:object:root=true +kubebuilder:object:generate=true +kubebuilder:subresource:status +kubebuilder:printcolumn:name="Ready",description="The Resource is Ready to be used",type=string,JSONPath=`.status.conditions[?(@.type=='Ready')].status` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`,description="Age" +kubebuilder:validation:XValidation:rule="oldSelf.spec.konnect.controlPlane.ref == self.spec.konnect.controlPlane.ref", message="spec.konnect.controlPlane.ref is immutable." +apireference:kgo:include +kong:channels=gateway-operator
func (*KonnectExtension) DeepCopy ¶
func (in *KonnectExtension) DeepCopy() *KonnectExtension
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectExtension.
func (*KonnectExtension) DeepCopyInto ¶
func (in *KonnectExtension) DeepCopyInto(out *KonnectExtension)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KonnectExtension) DeepCopyObject ¶
func (in *KonnectExtension) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KonnectExtension) GetConditions ¶
func (obj *KonnectExtension) GetConditions() []metav1.Condition
GetConditions returns the Status Conditions
func (*KonnectExtension) GetControlPlaneRef ¶
func (obj *KonnectExtension) GetControlPlaneRef() *commonv1alpha1.KonnectExtensionControlPlaneRef
GetControlPlaneRef returns the ControlPlaneRef.
func (KonnectExtension) GetTypeName ¶
func (obj KonnectExtension) GetTypeName() string
GetTypeName returns the KonnectExtension Kind name
func (*KonnectExtension) SetConditions ¶
func (obj *KonnectExtension) SetConditions(conditions []metav1.Condition)
SetConditions sets the Status Conditions
func (*KonnectExtension) SetControlPlaneRef ¶
func (obj *KonnectExtension) SetControlPlaneRef(ref *commonv1alpha1.KonnectExtensionControlPlaneRef)
SetControlPlaneRef sets the ControlPlaneRef.
type KonnectExtensionClientAuth ¶
type KonnectExtensionClientAuth struct { // CertificateSecret contains the information to access the client certificate. // // +required CertificateSecret CertificateSecret `json:"certificateSecret"` }
KonnectExtensionClientAuth contains the configuration for the client authentication for the DataPlane. At the moment authentication is only supported through client certificate, but it might be extended in the future, with e.g., token-based authentication.
+kubebuilder:validation:XValidation:rule="self.certificateSecret.provisioning == 'Manual' ? has(self.certificateSecret.secretRef) : true",message="secretRef must be set when provisioning is set to Manual." +kubebuilder:validation:XValidation:rule="self.certificateSecret.provisioning == 'Automatic' ? !has(self.certificateSecret.secretRef) : true",message="secretRef must not be set when provisioning is set to Automatic."
func (*KonnectExtensionClientAuth) DeepCopy ¶
func (in *KonnectExtensionClientAuth) DeepCopy() *KonnectExtensionClientAuth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectExtensionClientAuth.
func (*KonnectExtensionClientAuth) DeepCopyInto ¶
func (in *KonnectExtensionClientAuth) DeepCopyInto(out *KonnectExtensionClientAuth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectExtensionClusterType ¶
type KonnectExtensionClusterType string
KonnectExtensionClusterType is the type of the Konnect Control Plane.
const ( // ClusterTypeControlPlane is the type of the Konnect Control Plane. ClusterTypeControlPlane KonnectExtensionClusterType = "ControlPlane" // ClusterTypeK8sIngressController is the type of the Kubernetes Control Plane. ClusterTypeK8sIngressController KonnectExtensionClusterType = "K8SIngressController" )
type KonnectExtensionControlPlane ¶
type KonnectExtensionControlPlane struct { // Ref is a reference to a Konnect ControlPlane this KonnectExtension is associated with. // // +required Ref commonv1alpha1.KonnectExtensionControlPlaneRef `json:"ref"` }
KonnectExtensionControlPlane is the configuration for the Konnect Control Plane.
func (*KonnectExtensionControlPlane) DeepCopy ¶
func (in *KonnectExtensionControlPlane) DeepCopy() *KonnectExtensionControlPlane
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectExtensionControlPlane.
func (*KonnectExtensionControlPlane) DeepCopyInto ¶
func (in *KonnectExtensionControlPlane) DeepCopyInto(out *KonnectExtensionControlPlane)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectExtensionControlPlaneStatus ¶
type KonnectExtensionControlPlaneStatus struct { // ControlPlaneID is the Konnect ID of the ControlPlane this KonnectExtension is associated with. // // +required ControlPlaneID string `json:"controlPlaneID"` // ClusterType is the type of the Konnect Control Plane. // // +required // +kubebuilder:validation:Enum=ControlPlane;K8SIngressController ClusterType KonnectExtensionClusterType `json:"clusterType"` // Endpoints defines the Konnect endpoints for the control plane. // // +required Endpoints KonnectEndpoints `json:"endpoints"` }
KonnectExtensionControlPlaneStatus contains the Konnect Control Plane status information.
func (*KonnectExtensionControlPlaneStatus) DeepCopy ¶
func (in *KonnectExtensionControlPlaneStatus) DeepCopy() *KonnectExtensionControlPlaneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectExtensionControlPlaneStatus.
func (*KonnectExtensionControlPlaneStatus) DeepCopyInto ¶
func (in *KonnectExtensionControlPlaneStatus) DeepCopyInto(out *KonnectExtensionControlPlaneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectExtensionDataPlane ¶
type KonnectExtensionDataPlane struct { // Labels is a set of labels that will be applied to the Konnect DataPlane. // // +optional // +kubebuilder:validation:MaxItems=5 // +kubebuilder:validation:XValidation:rule="self.all(key, key.matches('^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$'))",message="keys must match the pattern '^[a-zA-Z0-9]([a-zA-Z0-9._-]*[a-zA-Z0-9])?$'." // +kubebuilder:validation:XValidation:rule="self.all(key, !(key.startsWith('kong') || key.startsWith('konnect') || key.startsWith('insomnia') || key.startsWith('mesh') || key.startsWith('kic') || key.startsWith('_')))",message="keys must not start with 'kong', 'konnect', 'insomnia', 'mesh', 'kic', or '_'." // +kubebuilder:validation:XValidation:rule="self.all(key, size(key) > 0 && size(key) < 64)",message="Too long: may not be more than 63 bytes" Labels map[string]DataPlaneLabelValue `json:"labels,omitempty"` }
KonnectExtensionDataPlane is the configuration for the Konnect DataPlane.
func (*KonnectExtensionDataPlane) DeepCopy ¶
func (in *KonnectExtensionDataPlane) DeepCopy() *KonnectExtensionDataPlane
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectExtensionDataPlane.
func (*KonnectExtensionDataPlane) DeepCopyInto ¶
func (in *KonnectExtensionDataPlane) DeepCopyInto(out *KonnectExtensionDataPlane)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectExtensionKonnectSpec ¶
type KonnectExtensionKonnectSpec struct { // ControlPlane is the configuration for the Konnect Control Plane. // // +required ControlPlane KonnectExtensionControlPlane `json:"controlPlane"` // DataPlane is the configuration for the Konnect DataPlane. // // +optional DataPlane *KonnectExtensionDataPlane `json:"dataPlane,omitempty"` }
KonnectExtensionKonnectSpec holds the konnect-related configuration.
func (*KonnectExtensionKonnectSpec) DeepCopy ¶
func (in *KonnectExtensionKonnectSpec) DeepCopy() *KonnectExtensionKonnectSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectExtensionKonnectSpec.
func (*KonnectExtensionKonnectSpec) DeepCopyInto ¶
func (in *KonnectExtensionKonnectSpec) DeepCopyInto(out *KonnectExtensionKonnectSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectExtensionList ¶
type KonnectExtensionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KonnectExtension `json:"items"` }
KonnectExtensionList contains a list of KonnectExtension.
+kubebuilder:object:root=true +apireference:kgo:include
func (*KonnectExtensionList) DeepCopy ¶
func (in *KonnectExtensionList) DeepCopy() *KonnectExtensionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectExtensionList.
func (*KonnectExtensionList) DeepCopyInto ¶
func (in *KonnectExtensionList) DeepCopyInto(out *KonnectExtensionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KonnectExtensionList) DeepCopyObject ¶
func (in *KonnectExtensionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (KonnectExtensionList) GetItems ¶
func (obj KonnectExtensionList) GetItems() []KonnectExtension
GetItems returns the list of KonnectExtension items.
type KonnectExtensionSpec ¶
type KonnectExtensionSpec struct { // Konnect holds the konnect-related configuration // // +required Konnect KonnectExtensionKonnectSpec `json:"konnect"` // ClientAuth is the configuration for the client certificate authentication. // // +optional // +kubebuilder:default={certificateSecret:{provisioning: Automatic}} ClientAuth *KonnectExtensionClientAuth `json:"clientAuth,omitempty"` }
KonnectExtensionSpec defines the desired state of KonnectExtension.
func (*KonnectExtensionSpec) DeepCopy ¶
func (in *KonnectExtensionSpec) DeepCopy() *KonnectExtensionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectExtensionSpec.
func (*KonnectExtensionSpec) DeepCopyInto ¶
func (in *KonnectExtensionSpec) DeepCopyInto(out *KonnectExtensionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectExtensionStatus ¶
type KonnectExtensionStatus struct { // Conditions describe the current conditions of the KonnectExtensionStatus. // Known condition types are: // // +listType=map // +listMapKey=type // +patchStrategy=merge // +patchMergeKey=type // +kubebuilder:validation:MaxItems=8 // +optional Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` // DataPlaneRefs is the array of DataPlane references this is associated with. // A new reference is set by the operator when this extension is associated with // a DataPlane through its extensions spec. // // +kubebuilder:validation:MaxItems=16 // +optional DataPlaneRefs []commonv1alpha1.NamespacedRef `json:"dataPlaneRefs,omitempty"` // ControlPlaneRefs is the array of ControlPlane references this is associated with. // A new reference is set by the operator when this extension is associated with // a ControlPlane through its extensions spec. // // +kubebuilder:validation:MaxItems=16 // +optional ControlPlaneRefs []commonv1alpha1.NamespacedRef `json:"controlPlaneRefs,omitempty"` // DataPlaneClientAuth contains the configuration for the client certificate authentication for the DataPlane. // // +optional DataPlaneClientAuth *DataPlaneClientAuthStatus `json:"dataPlaneClientAuth,omitempty"` // Konnect contains the status information related to the Konnect Control Plane. // // +optional Konnect *KonnectExtensionControlPlaneStatus `json:"konnect,omitempty"` }
KonnectExtensionStatus defines the observed state of KonnectExtension.
func (*KonnectExtensionStatus) DeepCopy ¶
func (in *KonnectExtensionStatus) DeepCopy() *KonnectExtensionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectExtensionStatus.
func (*KonnectExtensionStatus) DeepCopyInto ¶
func (in *KonnectExtensionStatus) DeepCopyInto(out *KonnectExtensionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectGatewayControlPlane ¶
type KonnectGatewayControlPlane struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Spec defines the desired state of KonnectGatewayControlPlane. Spec KonnectGatewayControlPlaneSpec `json:"spec,omitempty"` // Status defines the observed state of KonnectGatewayControlPlane. // // +optional Status KonnectGatewayControlPlaneStatus `json:"status,omitempty"` }
KonnectGatewayControlPlane is the Schema for the KonnectGatewayControlplanes API.
+genclient +kubebuilder:resource:scope=Namespaced +kubebuilder:resource:categories=kong;konnect +kubebuilder:object:root=true +kubebuilder:object:generate=true +kubebuilder:subresource:status +kubebuilder:storageversion +kubebuilder:printcolumn:name="Programmed",description="The Resource is Programmed on Konnect",type=string,JSONPath=`.status.conditions[?(@.type=='Programmed')].status` +kubebuilder:printcolumn:name="ID",description="Konnect ID",type=string,JSONPath=`.status.id` +kubebuilder:printcolumn:name="OrgID",description="Konnect Organization ID this resource belongs to.",type=string,JSONPath=`.status.organizationID` +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`,description="Age" +kubebuilder:validation:XValidation:message="spec.konnect.authRef is immutable when an entity is already Programmed", rule="!self.status.conditions.exists(c, c.type == 'Programmed' && c.status == 'True') ? true : self.spec.konnect.authRef == oldSelf.spec.konnect.authRef" +kubebuilder:validation:XValidation:message="spec.konnect.authRef is immutable when an entity refers to a Valid API Auth Configuration", rule="!self.status.conditions.exists(c, c.type == 'APIAuthValid' && c.status == 'True') ? true : self.spec.konnect.authRef == oldSelf.spec.konnect.authRef" +apireference:kgo:include +kong:channels=gateway-operator
func (*KonnectGatewayControlPlane) DeepCopy ¶
func (in *KonnectGatewayControlPlane) DeepCopy() *KonnectGatewayControlPlane
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectGatewayControlPlane.
func (*KonnectGatewayControlPlane) DeepCopyInto ¶
func (in *KonnectGatewayControlPlane) DeepCopyInto(out *KonnectGatewayControlPlane)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KonnectGatewayControlPlane) DeepCopyObject ¶
func (in *KonnectGatewayControlPlane) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*KonnectGatewayControlPlane) GetConditions ¶
func (obj *KonnectGatewayControlPlane) GetConditions() []metav1.Condition
GetConditions returns the Status Conditions
func (*KonnectGatewayControlPlane) GetKonnectAPIAuthConfigurationRef ¶
func (c *KonnectGatewayControlPlane) GetKonnectAPIAuthConfigurationRef() KonnectAPIAuthConfigurationRef
GetKonnectAPIAuthConfigurationRef returns the Konnect API Auth Configuration Ref.
func (*KonnectGatewayControlPlane) GetKonnectAuthType ¶
func (c *KonnectGatewayControlPlane) GetKonnectAuthType() *sdkkonnectcomp.AuthType
GetKonnectAuthType gets the AuthType from CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) GetKonnectCloudGateway ¶
func (c *KonnectGatewayControlPlane) GetKonnectCloudGateway() *bool
GetKonnectCloudGateway gets the CloudGateway from CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) GetKonnectClusterType ¶
func (c *KonnectGatewayControlPlane) GetKonnectClusterType() *sdkkonnectcomp.CreateControlPlaneRequestClusterType
GetKonnectClusterType gets the ClusterType from CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) GetKonnectDescription ¶
func (c *KonnectGatewayControlPlane) GetKonnectDescription() *string
GetKonnectDescription gets the Description from CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) GetKonnectID ¶
func (obj *KonnectGatewayControlPlane) GetKonnectID() string
GetKonnectID returns the Konnect ID in the KonnectGatewayControlPlane status.
func (*KonnectGatewayControlPlane) GetKonnectLabels ¶
func (c *KonnectGatewayControlPlane) GetKonnectLabels() map[string]string
GetKonnectLabels gets the Konnect Labels from object's spec.
func (*KonnectGatewayControlPlane) GetKonnectName ¶
func (c *KonnectGatewayControlPlane) GetKonnectName() string
GetKonnectName gets the Name from CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) GetKonnectProxyURLs ¶
func (c *KonnectGatewayControlPlane) GetKonnectProxyURLs() []sdkkonnectcomp.ProxyURL
GetKonnectProxyURLs gets the ProxyUrls from CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) GetKonnectStatus ¶
func (obj *KonnectGatewayControlPlane) GetKonnectStatus() *KonnectEntityStatus
GetKonnectStatus returns the Konnect status contained in the KonnectGatewayControlPlane status.
func (KonnectGatewayControlPlane) GetTypeName ¶
func (obj KonnectGatewayControlPlane) GetTypeName() string
GetTypeName returns the KonnectGatewayControlPlane Kind name
func (*KonnectGatewayControlPlane) Hub ¶
func (*KonnectGatewayControlPlane) Hub()
Hub marks this types as a conversion hub.
func (*KonnectGatewayControlPlane) SetConditions ¶
func (obj *KonnectGatewayControlPlane) SetConditions(conditions []metav1.Condition)
SetConditions sets the Status Conditions
func (*KonnectGatewayControlPlane) SetKonnectAuthType ¶
func (c *KonnectGatewayControlPlane) SetKonnectAuthType(authType *sdkkonnectcomp.AuthType)
SetKonnectAuthType sets the AuthType in CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) SetKonnectCloudGateway ¶
func (c *KonnectGatewayControlPlane) SetKonnectCloudGateway(cloudGateway *bool)
SetKonnectCloudGateway sets the CloudGateway in CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) SetKonnectClusterType ¶
func (c *KonnectGatewayControlPlane) SetKonnectClusterType(clusterType *sdkkonnectcomp.CreateControlPlaneRequestClusterType)
SetKonnectClusterType sets the ClusterType in CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) SetKonnectDescription ¶
func (c *KonnectGatewayControlPlane) SetKonnectDescription(description *string)
SetKonnectDescription sets the Description in CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) SetKonnectID ¶
func (obj *KonnectGatewayControlPlane) SetKonnectID(id string)
SetKonnectID sets the Konnect ID in the KonnectGatewayControlPlane status.
func (*KonnectGatewayControlPlane) SetKonnectLabels ¶
func (c *KonnectGatewayControlPlane) SetKonnectLabels(labels map[string]string)
SetKonnectLabels sets the Konnect Labels in object's spec.
func (*KonnectGatewayControlPlane) SetKonnectName ¶
func (c *KonnectGatewayControlPlane) SetKonnectName(name string)
SetKonnectName sets the Name in CreateControlPlaneRequest.
func (*KonnectGatewayControlPlane) SetKonnectProxyURLs ¶
func (c *KonnectGatewayControlPlane) SetKonnectProxyURLs(proxyURLs []sdkkonnectcomp.ProxyURL)
SetKonnectProxyURLs sets the ProxyUrls in CreateControlPlaneRequest.
type KonnectGatewayControlPlaneList ¶
type KonnectGatewayControlPlaneList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []KonnectGatewayControlPlane `json:"items"` }
KonnectGatewayControlPlaneList contains a list of KonnectGatewayControlPlane. +kubebuilder:object:root=true +apireference:kgo:include
func (*KonnectGatewayControlPlaneList) DeepCopy ¶
func (in *KonnectGatewayControlPlaneList) DeepCopy() *KonnectGatewayControlPlaneList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectGatewayControlPlaneList.
func (*KonnectGatewayControlPlaneList) DeepCopyInto ¶
func (in *KonnectGatewayControlPlaneList) DeepCopyInto(out *KonnectGatewayControlPlaneList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*KonnectGatewayControlPlaneList) DeepCopyObject ¶
func (in *KonnectGatewayControlPlaneList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (KonnectGatewayControlPlaneList) GetItems ¶
func (obj KonnectGatewayControlPlaneList) GetItems() []KonnectGatewayControlPlane
GetItems returns the list of KonnectGatewayControlPlane items.
type KonnectGatewayControlPlaneSpec ¶
type KonnectGatewayControlPlaneSpec struct { // CreateControlPlaneRequest is the request to create a Konnect Control Plane. // // +optional CreateControlPlaneRequest *sdkkonnectcomp.CreateControlPlaneRequest `json:"createControlPlaneRequest,omitempty"` // Mirror is the Konnect Mirror configuration. // It is only applicable for ControlPlanes that are created as Mirrors. // // +optional Mirror *MirrorSpec `json:"mirror,omitempty"` // Source represents the source type of the Konnect entity. // // +kubebuilder:validation:Enum=Origin;Mirror // +optional // +kubebuilder:default=Origin Source *commonv1alpha1.EntitySource `json:"source,omitempty"` // Members is a list of references to the KonnectGatewayControlPlaneMembers that are part of this control plane group. // Only applicable for ControlPlanes that are created as groups. // // +optional Members []corev1.LocalObjectReference `json:"members,omitempty"` // KonnectConfiguration contains the Konnect configuration for the control plane. // // +optional KonnectConfiguration KonnectConfiguration `json:"konnect,omitempty"` }
KonnectGatewayControlPlaneSpec defines the desired state of KonnectGatewayControlPlane.
+kubebuilder:validation:XValidation:message="spec.createControlPlaneRequest.labels must not have more than 40 entries", rule="has(self.createControlPlaneRequest) && has(self.createControlPlaneRequest.labels) ? size(self.createControlPlaneRequest.labels) <= 40 : true" +kubebuilder:validation:XValidation:message="spec.createControlPlaneRequest.labels keys must be of length 1-63 characters", rule="has(self.createControlPlaneRequest) && has(self.createControlPlaneRequest.labels) ? self.createControlPlaneRequest.labels.all(key, size(key) >= 1 && size(key) <= 63) : true" +kubebuilder:validation:XValidation:message="spec.createControlPlaneRequest.labels values must be of length 1-63 characters", rule="has(self.createControlPlaneRequest) && has(self.createControlPlaneRequest.labels) ? self.createControlPlaneRequest.labels.all(key, size(self.createControlPlaneRequest.labels[key]) >= 1 && size(self.createControlPlaneRequest.labels[key]) <= 63) : true" +kubebuilder:validation:XValidation:message="spec.createControlPlaneRequest.labels keys must not start with 'k8s', 'kong', 'konnect', 'mesh', 'kic', 'insomnia' or '_'", rule="has(self.createControlPlaneRequest) && has(self.createControlPlaneRequest.labels) ? self.createControlPlaneRequest.labels.all(key, !key.startsWith('k8s') && !key.startsWith('kong') && !key.startsWith('konnect') && !key.startsWith('mesh') && !key.startsWith('kic') && !key.startsWith('_') && !key.startsWith('insomnia')) : true" +kubebuilder:validation:XValidation:message="spec.createControlPlaneRequest.labels keys must satisfy the '^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$' pattern", rule="has(self.createControlPlaneRequest) && has(self.createControlPlaneRequest.labels) ? self.createControlPlaneRequest.labels.all(key, key.matches('^(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])?$')) : true" +kubebuilder:validation:XValidation:message="spec.members is only applicable for ControlPlanes that are created as groups", rule="(has(self.createControlPlaneRequest) && has(self.createControlPlaneRequest.cluster_type) && self.createControlPlaneRequest.cluster_type != 'CLUSTER_TYPE_CONTROL_PLANE_GROUP') ? !has(self.members) : true" +kubebuilder:validation:XValidation:message="when specified, spec.createControlPlaneRequest.cluster_type must be one of 'CLUSTER_TYPE_CONTROL_PLANE_GROUP', 'CLUSTER_TYPE_CONTROL_PLANE' or 'CLUSTER_TYPE_K8S_INGRESS_CONTROLLER'", rule="!has(self.createControlPlaneRequest) || !has(self.createControlPlaneRequest.cluster_type) ? true : ['CLUSTER_TYPE_CONTROL_PLANE_GROUP', 'CLUSTER_TYPE_CONTROL_PLANE', 'CLUSTER_TYPE_K8S_INGRESS_CONTROLLER'].exists(ct, ct == self.createControlPlaneRequest.cluster_type)" +kubebuilder:validation:XValidation:message="spec.createControlPlaneRequest.cluster_type is immutable", rule="!has(self.createControlPlaneRequest) && !has(oldSelf.createControlPlaneRequest) ? true : (has(self.createControlPlaneRequest) && has(oldSelf.createControlPlaneRequest) && (!has(self.createControlPlaneRequest.cluster_type) ? !has(oldSelf.createControlPlaneRequest.cluster_type) : self.createControlPlaneRequest.cluster_type == oldSelf.createControlPlaneRequest.cluster_type))" +kubebuilder:validation:XValidation:message="spec.createControlPlaneRequest.cloud_gateway cannot be set for spec.createControlPlaneRequest.cluster_type 'CLUSTER_TYPE_K8S_INGRESS_CONTROLLER'", rule="has(self.createControlPlaneRequest) && has(self.createControlPlaneRequest.cluster_type) && self.createControlPlaneRequest.cluster_type == 'CLUSTER_TYPE_K8S_INGRESS_CONTROLLER' ? !has(self.createControlPlaneRequest.cloud_gateway) : true" +kubebuilder:validation:XValidation:message="createControlPlaneRequest fields cannot be set for type Mirror", rule="has(self.source) && self.source == 'Mirror' ? !has(self.createControlPlaneRequest) : true" +kubebuilder:validation:XValidation:message="spec.source is immutable", rule="!has(self.source) && !has(oldSelf.source) ? true : self.source == oldSelf.source" +kubebuilder:validation:XValidation:message="mirror field must be set for type Mirror", rule="self.source == 'Mirror' ? has(self.mirror) : true" +kubebuilder:validation:XValidation:message="mirror field cannot be set for type Origin", rule="self.source == 'Origin' ? !has(self.mirror) : true" +kubebuilder:validation:XValidation:message="spec.createControlPlaneRequest must be set for type Origin", rule="self.source == 'Origin' ? has(self.createControlPlaneRequest) && has(self.createControlPlaneRequest.name) : true" +apireference:kgo:include
func (*KonnectGatewayControlPlaneSpec) DeepCopy ¶
func (in *KonnectGatewayControlPlaneSpec) DeepCopy() *KonnectGatewayControlPlaneSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectGatewayControlPlaneSpec.
func (*KonnectGatewayControlPlaneSpec) DeepCopyInto ¶
func (in *KonnectGatewayControlPlaneSpec) DeepCopyInto(out *KonnectGatewayControlPlaneSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KonnectGatewayControlPlaneStatus ¶
type KonnectGatewayControlPlaneStatus struct { // Conditions describe the current conditions of the KonnectGatewayControlPlane. // // Known condition types are: // // * "Programmed" // // +listType=map // +listMapKey=type // +patchStrategy=merge // +patchMergeKey=type // +kubebuilder:validation:MaxItems=8 // +kubebuilder:default={{type: "Programmed", status: "Unknown", reason:"Pending", message:"Waiting for controller", lastTransitionTime: "1970-01-01T00:00:00Z"}} // +optional Conditions []metav1.Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"` KonnectEntityStatus `json:",inline"` // Endpoints defines the Konnect endpoints for the control plane. // They are required by the DataPlane to be properly configured in // Konnect and connect to the control plane. // // +optional Endpoints *KonnectEndpoints `json:"konnectEndpoints,omitempty"` }
KonnectGatewayControlPlaneStatus defines the observed state of KonnectGatewayControlPlane. +apireference:kgo:include
func (*KonnectGatewayControlPlaneStatus) DeepCopy ¶
func (in *KonnectGatewayControlPlaneStatus) DeepCopy() *KonnectGatewayControlPlaneStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KonnectGatewayControlPlaneStatus.
func (*KonnectGatewayControlPlaneStatus) DeepCopyInto ¶
func (in *KonnectGatewayControlPlaneStatus) DeepCopyInto(out *KonnectGatewayControlPlaneStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MirrorKonnect ¶
type MirrorKonnect struct { // ID is the ID of the Konnect entity. It can be set only in case // the ControlPlane type is Mirror. // // +required ID commonv1alpha1.KonnectIDType `json:"id"` }
MirrorKonnect contains the Konnect Mirror configuration.
func (*MirrorKonnect) DeepCopy ¶
func (in *MirrorKonnect) DeepCopy() *MirrorKonnect
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MirrorKonnect.
func (*MirrorKonnect) DeepCopyInto ¶
func (in *MirrorKonnect) DeepCopyInto(out *MirrorKonnect)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MirrorSpec ¶
type MirrorSpec struct { // Konnect contains the KonnectID of the KonnectGatewayControlPlane that // is mirrored. // // +required Konnect MirrorKonnect `json:"konnect"` }
MirrorSpec contains the Konnect Mirror configuration.
func (*MirrorSpec) DeepCopy ¶
func (in *MirrorSpec) DeepCopy() *MirrorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MirrorSpec.
func (*MirrorSpec) DeepCopyInto ¶
func (in *MirrorSpec) DeepCopyInto(out *MirrorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProvisioningMethod ¶
type ProvisioningMethod string
ProvisioningMethod is the type of the provisioning methods available to provision the certificate.
const ( // ManualSecretProvisioning is the method used to provision the certificate manually. ManualSecretProvisioning ProvisioningMethod = "Manual" // AutomaticSecretProvisioning is the method used to provision the certificate automatically. AutomaticSecretProvisioning ProvisioningMethod = "Automatic" )
type SecretRef ¶
type SecretRef struct { // Name is the name of the Secret containing the Konnect Control Plane's cluster certificate. // // +required Name string `json:"name"` }
SecretRef contains the reference to the Secret containing the Konnect Control Plane's cluster certificate.
func (*SecretRef) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretRef.
func (*SecretRef) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files
¶
- doc.go
- groupversion_info.go
- gvrs.go
- konnect_apiauthconfiguration_ref.go
- konnect_configuration.go
- konnect_entity_status.go
- konnect_extension_conditions.go
- konnect_extension_types.go
- konnect_gateway_controlplane_conversion.go
- konnect_gateway_controlplane_types.go
- zz_generated.deepcopy.go
- zz_generated_funcs.go
- zz_generated_funcs_standalone.go
- zz_generated_list_funcs.go