Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the v1alpha1 API group. +kubebuilder:object:generate=true +groupName=openmcp.cloud
Index ¶
- Variables
- func ClusterProviderGKV() schema.GroupVersionKind
- func PlatformServiceGKV() schema.GroupVersionKind
- func ServiceProviderGKV() schema.GroupVersionKind
- type ClusterProvider
- type ClusterProviderList
- type ClusterProviderSpec
- type ClusterProviderStatus
- type DeploymentSpec
- type DeploymentStatus
- type EnvVar
- type PlatformService
- type PlatformServiceList
- type PlatformServiceSpec
- type PlatformServiceStatus
- type ServiceProvider
- type ServiceProviderList
- type ServiceProviderSpec
- type ServiceProviderStatus
- type WebhookConfiguration
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects. GroupVersion = schema.GroupVersion{Group: "openmcp.cloud", 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 ¶
func ClusterProviderGKV ¶
func ClusterProviderGKV() schema.GroupVersionKind
func PlatformServiceGKV ¶
func PlatformServiceGKV() schema.GroupVersionKind
func ServiceProviderGKV ¶
func ServiceProviderGKV() schema.GroupVersionKind
Types ¶
type ClusterProvider ¶
type ClusterProvider struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ClusterProviderSpec `json:"spec,omitempty"`
Status ClusterProviderStatus `json:"status,omitempty"`
}
ClusterProvider is the Schema for the clusterproviders API.
func (*ClusterProvider) DeepCopy ¶
func (in *ClusterProvider) DeepCopy() *ClusterProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterProvider.
func (*ClusterProvider) DeepCopyInto ¶
func (in *ClusterProvider) DeepCopyInto(out *ClusterProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterProvider) DeepCopyObject ¶
func (in *ClusterProvider) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterProviderList ¶
type ClusterProviderList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterProvider `json:"items"`
}
ClusterProviderList contains a list of ClusterProvider.
func (*ClusterProviderList) DeepCopy ¶
func (in *ClusterProviderList) DeepCopy() *ClusterProviderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterProviderList.
func (*ClusterProviderList) DeepCopyInto ¶
func (in *ClusterProviderList) DeepCopyInto(out *ClusterProviderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterProviderList) DeepCopyObject ¶
func (in *ClusterProviderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterProviderSpec ¶
type ClusterProviderSpec struct {
DeploymentSpec `json:",inline"`
}
ClusterProviderSpec defines the desired state of ClusterProvider.
func (*ClusterProviderSpec) DeepCopy ¶
func (in *ClusterProviderSpec) DeepCopy() *ClusterProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterProviderSpec.
func (*ClusterProviderSpec) DeepCopyInto ¶
func (in *ClusterProviderSpec) DeepCopyInto(out *ClusterProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterProviderStatus ¶
type ClusterProviderStatus struct {
DeploymentStatus `json:",inline"`
}
ClusterProviderStatus defines the observed state of ClusterProvider.
func (*ClusterProviderStatus) DeepCopy ¶
func (in *ClusterProviderStatus) DeepCopy() *ClusterProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterProviderStatus.
func (*ClusterProviderStatus) DeepCopyInto ¶
func (in *ClusterProviderStatus) DeepCopyInto(out *ClusterProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentSpec ¶
type DeploymentSpec struct {
// Image is the name of the image of a provider.
// +kubebuilder:validation:MinLength=1
Image string `json:"image"`
// ImagePullSecrets are secrets in the same namespace.
// They can be used to fetch provider images from private registries.
ImagePullSecrets []common.LocalObjectReference `json:"imagePullSecrets,omitempty"`
// InitCommand is the command that is executed to run the init job of the provider.
// Defaults to ["init"], if not specified.
// The '--environment', '--verbosity', and '--provider-name' flags will be appended to the command automatically.
// +optional
InitCommand []string `json:"initCommand,omitempty"`
// RunCommand is the command that is executed to run the provider controllers.
// Defaults to ["run"], if not specified.
// The '--environment', '--verbosity', and '--provider-name' flags will be appended to the command automatically.
// +optional
RunCommand []string `json:"runCommand,omitempty"`
// Env is a list of environment variables to set in the containers of the init job and deployment of the provider.
// +optional
// +patchMergeKey=name
// +patchStrategy=merge
// +listType=map
// +listMapKey=name
Env []EnvVar `json:"env,omitempty" patchStrategy:"merge" patchMergeKey:"name"`
// Verbosity is the verbosity level of the provider.
// +kubebuilder:validation:Enum=DEBUG;INFO;ERROR;debug;info;error
// +kubebuilder:default=INFO
Verbosity string `json:"verbosity,omitempty"`
// List of additional volumes that are mounted in the main container.
// More info: https://kubernetes.io/docs/concepts/storage/volumes
// +optional
// +patchMergeKey=name
// +patchStrategy=merge,retainKeys
// +listType=map
// +listMapKey=name
ExtraVolumes []corev1.Volume `json:"extraVolumes,omitempty" patchStrategy:"merge,retainKeys" patchMergeKey:"name"`
// List of additional volume mounts that are mounted in the main container.
// Cannot be updated.
// +optional
// +patchMergeKey=mountPath
// +patchStrategy=merge
// +listType=map
// +listMapKey=mountPath
ExtraVolumeMounts []corev1.VolumeMount `json:"extraVolumeMounts,omitempty" patchStrategy:"merge" patchMergeKey:"mountPath"`
// RunReplicas is the number of replicas for the provider controller.
// Defaults to 1.
// If greater thant 1, automatically sets the `--leader-elect=true` flag in the RunCommand.
// +kubebuilder:validation:Minimum=1
// +kubebuilder:default=1
// +optional
RunReplicas int32 `json:"runReplicas,omitempty"`
// TopologySpreadConstraints describes how to spread the provider pods
// across your cluster among failure-domains such as zones, nodes, regions, etc.
// More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/
// The label selector for the topology spread constraints is automatically set to match the provider deployment pods.
// +optional
// +patchMergeKey=topologyKey
// +patchStrategy=merge
// +listType=map
// +listMapKey=topologyKey
TopologySpreadConstraints []corev1.TopologySpreadConstraint `json:"topologySpreadConstraints,omitempty" patchStrategy:"merge" patchMergeKey:"topologyKey"`
}
DeploymentSpec defines the desired state of a provider.
func (*DeploymentSpec) DeepCopy ¶
func (in *DeploymentSpec) DeepCopy() *DeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentSpec.
func (*DeploymentSpec) DeepCopyInto ¶
func (in *DeploymentSpec) DeepCopyInto(out *DeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DeploymentStatus ¶
type DeploymentStatus struct {
// +optional
Conditions []metav1.Condition `json:"conditions,omitempty"`
// ObservedGeneration is the last observed generation.
ObservedGeneration int64 `json:"observedGeneration"`
Phase string `json:"phase,omitempty"`
}
DeploymentStatus defines the observed state of a provider.
func (*DeploymentStatus) DeepCopy ¶
func (in *DeploymentStatus) DeepCopy() *DeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DeploymentStatus.
func (*DeploymentStatus) DeepCopyInto ¶
func (in *DeploymentStatus) DeepCopyInto(out *DeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EnvVar ¶ added in v0.7.0
type EnvVar struct {
// Name is the name of the environment variable.
// +kubebuilder:validation:MinLength=1
Name string `json:"name"`
// Value is the value of the environment variable.
// +optional
Value string `json:"value,omitempty"`
}
EnvVar represents an environment variable present in a Container.
func (*EnvVar) DeepCopy ¶ added in v0.7.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EnvVar.
func (*EnvVar) DeepCopyInto ¶ added in v0.7.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlatformService ¶
type PlatformService struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec PlatformServiceSpec `json:"spec,omitempty"`
Status PlatformServiceStatus `json:"status,omitempty"`
}
PlatformService is the Schema for the platformservices API.
func (*PlatformService) DeepCopy ¶
func (in *PlatformService) DeepCopy() *PlatformService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformService.
func (*PlatformService) DeepCopyInto ¶
func (in *PlatformService) DeepCopyInto(out *PlatformService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PlatformService) DeepCopyObject ¶
func (in *PlatformService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PlatformServiceList ¶
type PlatformServiceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []PlatformService `json:"items"`
}
PlatformServiceList contains a list of PlatformService.
func (*PlatformServiceList) DeepCopy ¶
func (in *PlatformServiceList) DeepCopy() *PlatformServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformServiceList.
func (*PlatformServiceList) DeepCopyInto ¶
func (in *PlatformServiceList) DeepCopyInto(out *PlatformServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PlatformServiceList) DeepCopyObject ¶
func (in *PlatformServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PlatformServiceSpec ¶
type PlatformServiceSpec struct {
DeploymentSpec `json:",inline"`
}
PlatformServiceSpec defines the desired state of PlatformService.
func (*PlatformServiceSpec) DeepCopy ¶
func (in *PlatformServiceSpec) DeepCopy() *PlatformServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformServiceSpec.
func (*PlatformServiceSpec) DeepCopyInto ¶
func (in *PlatformServiceSpec) DeepCopyInto(out *PlatformServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PlatformServiceStatus ¶
type PlatformServiceStatus struct {
DeploymentStatus `json:",inline"`
}
PlatformServiceStatus defines the observed state of PlatformService.
func (*PlatformServiceStatus) DeepCopy ¶
func (in *PlatformServiceStatus) DeepCopy() *PlatformServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PlatformServiceStatus.
func (*PlatformServiceStatus) DeepCopyInto ¶
func (in *PlatformServiceStatus) DeepCopyInto(out *PlatformServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceProvider ¶
type ServiceProvider struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ServiceProviderSpec `json:"spec,omitempty"`
Status ServiceProviderStatus `json:"status,omitempty"`
}
ServiceProvider is the Schema for the serviceproviders API.
func (*ServiceProvider) DeepCopy ¶
func (in *ServiceProvider) DeepCopy() *ServiceProvider
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProvider.
func (*ServiceProvider) DeepCopyInto ¶
func (in *ServiceProvider) DeepCopyInto(out *ServiceProvider)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceProvider) DeepCopyObject ¶
func (in *ServiceProvider) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceProviderList ¶
type ServiceProviderList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ServiceProvider `json:"items"`
}
ServiceProviderList contains a list of ServiceProvider.
func (*ServiceProviderList) DeepCopy ¶
func (in *ServiceProviderList) DeepCopy() *ServiceProviderList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProviderList.
func (*ServiceProviderList) DeepCopyInto ¶
func (in *ServiceProviderList) DeepCopyInto(out *ServiceProviderList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceProviderList) DeepCopyObject ¶
func (in *ServiceProviderList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceProviderSpec ¶
type ServiceProviderSpec struct {
DeploymentSpec `json:",inline"`
}
ServiceProviderSpec defines the desired state of ServiceProvider.
func (*ServiceProviderSpec) DeepCopy ¶
func (in *ServiceProviderSpec) DeepCopy() *ServiceProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProviderSpec.
func (*ServiceProviderSpec) DeepCopyInto ¶
func (in *ServiceProviderSpec) DeepCopyInto(out *ServiceProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceProviderStatus ¶
type ServiceProviderStatus struct {
DeploymentStatus `json:",inline"`
// Resources is a list of Group/Version/Kind that specifies which service resources this provider exposes.
Resources []metav1.GroupVersionKind `json:"resources,omitempty"`
}
ServiceProviderStatus defines the observed state of ServiceProvider.
func (*ServiceProviderStatus) DeepCopy ¶
func (in *ServiceProviderStatus) DeepCopy() *ServiceProviderStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceProviderStatus.
func (*ServiceProviderStatus) DeepCopyInto ¶
func (in *ServiceProviderStatus) DeepCopyInto(out *ServiceProviderStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type WebhookConfiguration ¶ added in v0.17.0
type WebhookConfiguration struct {
// Enabled indicates whether the webhook is enabled.
// +kubebuilder:default=false
Enabled bool `json:"enabled"`
}
func (*WebhookConfiguration) DeepCopy ¶ added in v0.17.0
func (in *WebhookConfiguration) DeepCopy() *WebhookConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WebhookConfiguration.
func (*WebhookConfiguration) DeepCopyInto ¶ added in v0.17.0
func (in *WebhookConfiguration) DeepCopyInto(out *WebhookConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.