Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the gateway v1alpha1 API group +kubebuilder:object:generate=true +groupName=gateway.platform-mesh.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "gateway.platform-mesh.io", Version: "v1alpha1"} // 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 ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
// SecretRef points to a secret containing auth token
// +optional
SecretRef *SecretRef `json:"secretRef,omitempty"`
// KubeconfigSecretRef points to a secret containing kubeconfig
// +optional
KubeconfigSecretRef *KubeconfigSecretRef `json:"kubeconfigSecretRef,omitempty"`
// ServiceAccount is the name of the service account to use
// +optional
ServiceAccount *ServiceAccountRef `json:"serviceAccount,omitempty"`
// ClientCertificateRef points to secrets containing client certificate and key for mTLS
// +optional
ClientCertificateRef *ClientCertificateRef `json:"clientCertificateRef,omitempty"`
}
AuthConfig defines authentication configuration options
func (*AuthConfig) DeepCopy ¶
func (in *AuthConfig) DeepCopy() *AuthConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthConfig.
func (*AuthConfig) DeepCopyInto ¶
func (in *AuthConfig) DeepCopyInto(out *AuthConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CAConfig ¶
type CAConfig struct {
// SecretRef points to a secret containing CA data
// +optional
SecretRef *SecretRef `json:"secretRef,omitempty"`
// ConfigMapRef points to a config map containing CA data
// +optional
ConfigMapRef *ConfigMapRef `json:"configMapRef,omitempty"`
}
CAConfig defines CA configuration options
func (*CAConfig) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CAConfig.
func (*CAConfig) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClientCertificateRef ¶
type ClientCertificateRef struct {
Name string `json:"name"`
Namespace string `json:"namespace,omitempty"`
}
ClientCertificateRef defines a reference to a client certificate secret
func (*ClientCertificateRef) DeepCopy ¶
func (in *ClientCertificateRef) DeepCopy() *ClientCertificateRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClientCertificateRef.
func (*ClientCertificateRef) DeepCopyInto ¶
func (in *ClientCertificateRef) DeepCopyInto(out *ClientCertificateRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterAccess ¶
type ClusterAccess struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ClusterAccessSpec `json:"spec,omitempty"`
Status ClusterAccessStatus `json:"status,omitempty"`
}
ClusterAccess is the Schema for the clusteraccesses API
func (*ClusterAccess) DeepCopy ¶
func (in *ClusterAccess) DeepCopy() *ClusterAccess
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAccess.
func (*ClusterAccess) DeepCopyInto ¶
func (in *ClusterAccess) DeepCopyInto(out *ClusterAccess)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterAccess) DeepCopyObject ¶
func (in *ClusterAccess) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterAccess) GetConditions ¶
func (ca *ClusterAccess) GetConditions() []metav1.Condition
GetConditions returns the conditions from the ClusterAccess status This method implements the RuntimeObjectConditions interface
func (*ClusterAccess) SetConditions ¶
func (ca *ClusterAccess) SetConditions(conditions []metav1.Condition)
SetConditions sets the conditions in the ClusterAccess status This method implements the RuntimeObjectConditions interface
type ClusterAccessList ¶
type ClusterAccessList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterAccess `json:"items"`
}
ClusterAccessList contains a list of ClusterAccess
func (*ClusterAccessList) DeepCopy ¶
func (in *ClusterAccessList) DeepCopy() *ClusterAccessList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAccessList.
func (*ClusterAccessList) DeepCopyInto ¶
func (in *ClusterAccessList) DeepCopyInto(out *ClusterAccessList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterAccessList) DeepCopyObject ¶
func (in *ClusterAccessList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterAccessSpec ¶
type ClusterAccessSpec struct {
// Path is an optional field. If not set, the name of the resource is used
// +optional
Path string `json:"path,omitempty"`
// Host is the URL for the cluster
Host string `json:"host"`
// CA configuration for the cluster
// +optional
CA *CAConfig `json:"ca,omitempty"`
// Auth configuration for the cluster
// +optional
Auth *AuthConfig `json:"auth,omitempty"`
}
ClusterAccessSpec defines the desired state of ClusterAccess
func (*ClusterAccessSpec) DeepCopy ¶
func (in *ClusterAccessSpec) DeepCopy() *ClusterAccessSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAccessSpec.
func (*ClusterAccessSpec) DeepCopyInto ¶
func (in *ClusterAccessSpec) DeepCopyInto(out *ClusterAccessSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterAccessStatus ¶
type ClusterAccessStatus struct {
// Conditions represent the latest available observations of the cluster access state
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
ClusterAccessStatus defines the observed state of ClusterAccess
func (*ClusterAccessStatus) DeepCopy ¶
func (in *ClusterAccessStatus) DeepCopy() *ClusterAccessStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterAccessStatus.
func (*ClusterAccessStatus) DeepCopyInto ¶
func (in *ClusterAccessStatus) DeepCopyInto(out *ClusterAccessStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConfigMapRef ¶
type ConfigMapRef struct {
Name string `json:"name"`
Namespace string `json:"namespace,omitempty"`
Key string `json:"key"`
}
ConfigMapRef defines a reference to a config map
func (*ConfigMapRef) DeepCopy ¶
func (in *ConfigMapRef) DeepCopy() *ConfigMapRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMapRef.
func (*ConfigMapRef) DeepCopyInto ¶
func (in *ConfigMapRef) DeepCopyInto(out *ConfigMapRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubeconfigSecretRef ¶
type KubeconfigSecretRef struct {
Name string `json:"name"`
Namespace string `json:"namespace,omitempty"`
}
KubeconfigSecretRef defines a reference to a kubeconfig secret
func (*KubeconfigSecretRef) DeepCopy ¶
func (in *KubeconfigSecretRef) DeepCopy() *KubeconfigSecretRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeconfigSecretRef.
func (*KubeconfigSecretRef) DeepCopyInto ¶
func (in *KubeconfigSecretRef) DeepCopyInto(out *KubeconfigSecretRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretRef ¶
type SecretRef struct {
Name string `json:"name"`
Namespace string `json:"namespace,omitempty"`
Key string `json:"key"`
}
SecretRef defines a reference to a secret
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.
type ServiceAccountRef ¶
type ServiceAccountRef struct {
Name string `json:"name,omitempty"`
Namespace string `json:"namespace,omitempty"`
Audience []string `json:"audience,omitempty"`
TokenExpiration *metav1.Duration `json:"token_expiration,omitempty"`
}
func (*ServiceAccountRef) DeepCopy ¶
func (in *ServiceAccountRef) DeepCopy() *ServiceAccountRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceAccountRef.
func (*ServiceAccountRef) DeepCopyInto ¶
func (in *ServiceAccountRef) DeepCopyInto(out *ServiceAccountRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.