Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the hmc.mirantis.com v1alpha1 API group +kubebuilder:object:generate=true +groupName=hmc.mirantis.com
Index ¶
- Constants
- Variables
- func ExtractCredentialNameFromManagedCluster(rawObj client.Object) []string
- func ExtractProvidersFromClusterTemplate(o client.Object) []string
- func ExtractServiceTemplateNamesFromManagedCluster(rawObj client.Object) []string
- func ExtractServiceTemplateNamesFromMultiClusterService(rawObj client.Object) []string
- func ExtractTemplateNameFromManagedCluster(rawObj client.Object) []string
- func SetupIndexers(ctx context.Context, mgr ctrl.Manager) error
- type AccessManagement
- type AccessManagementList
- type AccessManagementSpec
- type AccessManagementStatus
- type AccessRule
- type AvailableUpgrade
- type Backup
- type BackupList
- type BackupSpec
- type BackupStatus
- type ClusterTemplate
- func (in *ClusterTemplate) DeepCopy() *ClusterTemplate
- func (in *ClusterTemplate) DeepCopyInto(out *ClusterTemplate)
- func (in *ClusterTemplate) DeepCopyObject() runtime.Object
- func (t *ClusterTemplate) FillStatusWithProviders(annotations map[string]string) error
- func (t *ClusterTemplate) GetCommonStatus() *TemplateStatusCommon
- func (t *ClusterTemplate) GetHelmSpec() *HelmSpec
- func (t *ClusterTemplate) GetSpecProviders() Providers
- type ClusterTemplateChain
- func (in *ClusterTemplateChain) DeepCopy() *ClusterTemplateChain
- func (in *ClusterTemplateChain) DeepCopyInto(out *ClusterTemplateChain)
- func (in *ClusterTemplateChain) DeepCopyObject() runtime.Object
- func (t *ClusterTemplateChain) GetSpec() *TemplateChainSpec
- func (*ClusterTemplateChain) Kind() string
- func (*ClusterTemplateChain) TemplateKind() string
- type ClusterTemplateChainList
- type ClusterTemplateList
- type ClusterTemplateSpec
- type ClusterTemplateStatus
- type CompatibilityContracts
- type Component
- type ComponentStatus
- type Core
- type CoreProviderTemplate
- type Credential
- type CredentialList
- type CredentialSpec
- type CredentialStatus
- type HelmSpec
- type ManagedCluster
- func (in *ManagedCluster) DeepCopy() *ManagedCluster
- func (in *ManagedCluster) DeepCopyInto(out *ManagedCluster)
- func (in *ManagedCluster) DeepCopyObject() runtime.Object
- func (in *ManagedCluster) GetConditions() *[]metav1.Condition
- func (in *ManagedCluster) HelmValues() (values map[string]any, err error)
- func (in *ManagedCluster) InitConditions()
- type ManagedClusterList
- type ManagedClusterSpec
- type ManagedClusterStatus
- type Management
- type ManagementBackup
- type ManagementList
- type ManagementSpec
- type ManagementStatus
- type MultiClusterService
- type MultiClusterServiceList
- type MultiClusterServiceSpec
- type MultiClusterServiceStatus
- type NamedProviderTemplate
- type Provider
- type ProviderTemplate
- func (in *ProviderTemplate) DeepCopy() *ProviderTemplate
- func (in *ProviderTemplate) DeepCopyInto(out *ProviderTemplate)
- func (in *ProviderTemplate) DeepCopyObject() runtime.Object
- func (t *ProviderTemplate) FillStatusWithProviders(annotations map[string]string) error
- func (t *ProviderTemplate) GetCommonStatus() *TemplateStatusCommon
- func (t *ProviderTemplate) GetHelmSpec() *HelmSpec
- type ProviderTemplateList
- type ProviderTemplateSpec
- type ProviderTemplateStatus
- type Providers
- type Release
- type ReleaseList
- type ReleaseSpec
- type ReleaseStatus
- type ServiceSpec
- type ServiceStatus
- type ServiceTemplate
- func (in *ServiceTemplate) DeepCopy() *ServiceTemplate
- func (in *ServiceTemplate) DeepCopyInto(out *ServiceTemplate)
- func (in *ServiceTemplate) DeepCopyObject() runtime.Object
- func (t *ServiceTemplate) FillStatusWithProviders(annotations map[string]string) error
- func (t *ServiceTemplate) GetCommonStatus() *TemplateStatusCommon
- func (t *ServiceTemplate) GetHelmSpec() *HelmSpec
- func (t *ServiceTemplate) GetSpecProviders() Providers
- type ServiceTemplateChain
- func (in *ServiceTemplateChain) DeepCopy() *ServiceTemplateChain
- func (in *ServiceTemplateChain) DeepCopyInto(out *ServiceTemplateChain)
- func (in *ServiceTemplateChain) DeepCopyObject() runtime.Object
- func (t *ServiceTemplateChain) GetSpec() *TemplateChainSpec
- func (*ServiceTemplateChain) Kind() string
- func (*ServiceTemplateChain) TemplateKind() string
- type ServiceTemplateChainList
- type ServiceTemplateList
- type ServiceTemplateSpec
- type ServiceTemplateStatus
- type SupportedTemplate
- type TargetNamespaces
- type TemplateChainSpec
- type TemplateStatusCommon
- type TemplateValidationStatus
Constants ¶
const ( AccessManagementKind = "AccessManagement" AccessManagementName = "hmc" )
const ( // Denotes the clustertemplate resource Kind. ClusterTemplateKind = "ClusterTemplate" // ChartAnnotationKubernetesVersion is an annotation containing the Kubernetes exact version in the SemVer format associated with a ClusterTemplate. ChartAnnotationKubernetesVersion = "hmc.mirantis.com/k8s-version" )
const ( // SucceededReason indicates a condition or event observed a success, for example when declared desired state // matches actual state, or a performed action succeeded. SucceededReason string = "Succeeded" // FailedReason indicates a condition or event observed a failure, for example when declared state does not match // actual state, or a performed action failed. FailedReason string = "Failed" // ProgressingReason indicates a condition or event observed progression, for example when the reconciliation of a // resource or an action has started. ProgressingReason string = "Progressing" )
const ( // Provider CAPA ProviderCAPAName = "cluster-api-provider-aws" // Provider Azure ProviderAzureName = "cluster-api-provider-azure" ProviderVSphereName = "cluster-api-provider-vsphere" // Provider K0smotron ProviderK0smotronName = "k0smotron" // Provider Sveltos ProviderSveltosName = "projectsveltos" )
const ( CredentialKind = "Credential" // CredentialReadyCondition indicates if referenced Credential exists and has Ready state CredentialReadyCondition = "CredentialReady" // CredentialPropagatedCondition indicates that CCM credentials were delivered to managed cluster CredentialsPropagatedCondition = "CredentialsApplied" )
const ( BlockingFinalizer = "hmc.mirantis.com/cleanup" ManagedClusterFinalizer = "hmc.mirantis.com/managed-cluster" FluxHelmChartNameKey = "helm.toolkit.fluxcd.io/name" FluxHelmChartNamespaceKey = "helm.toolkit.fluxcd.io/namespace" HMCManagedLabelKey = "hmc.mirantis.com/managed" HMCManagedLabelValue = "true" ClusterNameLabelKey = "cluster.x-k8s.io/cluster-name" )
const ( // ManagedClusterKind is the string representation of a ManagedCluster. ManagedClusterKind = "ManagedCluster" // TemplateReadyCondition indicates the referenced Template exists and valid. TemplateReadyCondition = "TemplateReady" // HelmChartReadyCondition indicates the corresponding HelmChart is valid and ready. HelmChartReadyCondition = "HelmChartReady" // HelmReleaseReadyCondition indicates the corresponding HelmRelease is ready and fully reconciled. HelmReleaseReadyCondition = "HelmReleaseReady" // ReadyCondition indicates the ManagedCluster is ready and fully reconciled. ReadyCondition string = "Ready" )
const ( CoreHMCName = "hmc" CoreCAPIName = "capi" ManagementKind = "Management" ManagementName = "hmc" ManagementFinalizer = "hmc.mirantis.com/management" )
const ( // MultiClusterServiceFinalizer is finalizer applied to MultiClusterService objects. MultiClusterServiceFinalizer = "hmc.mirantis.com/multicluster-service" // MultiClusterServiceKind is the string representation of a MultiClusterServiceKind. MultiClusterServiceKind = "MultiClusterService" // SveltosProfileReadyCondition indicates if the Sveltos Profile is ready. SveltosProfileReadyCondition = "SveltosProfileReady" // SveltosClusterProfileReadyCondition indicates if the Sveltos ClusterProfile is ready. SveltosClusterProfileReadyCondition = "SveltosClusterProfileReady" // SveltosHelmReleaseReadyCondition indicates if the HelmRelease // managed by a Sveltos Profile/ClusterProfile is ready. SveltosHelmReleaseReadyCondition = "SveltosHelmReleaseReady" // FetchServicesStatusSuccessCondition indicates if status // for the deployed services have been fetched successfully. FetchServicesStatusSuccessCondition = "FetchServicesStatusSuccess" )
const ( ReleaseKind = "Release" // TemplatesCreatedCondition indicates that all templates associated with the Release are created. TemplatesCreatedCondition = "TemplatesCreated" // TemplatesValidCondition indicates that all templates associated with the Release are valid. TemplatesValidCondition = "TemplatesValid" )
const ( // Denotes the servicetemplate resource Kind. ServiceTemplateKind = "ServiceTemplate" // ChartAnnotationKubernetesConstraint is an annotation containing the Kubernetes constrained version in the SemVer format associated with a ServiceTemplate. ChartAnnotationKubernetesConstraint = "hmc.mirantis.com/k8s-version-constraint" )
const ( // ChartAnnotationProviderName is the annotation set on components in a Template. // This annotations allows to identify all the components belonging to a provider. ChartAnnotationProviderName = "cluster.x-k8s.io/provider" DefaultRepoName = "hmc-templates" )
const ClusterTemplateChainKind = "ClusterTemplateChain"
const ClusterTemplateProvidersIndexKey = "clusterTemplateProviders"
ClusterTemplateProvidersIndexKey indexer field name to extract provider names from a ClusterTemplate object.
const ManagedClusterCredentialIndexKey = ".spec.credential"
ManagedClusterCredentialIndexKey indexer field name to extract Credential name reference from a ManagedCluster object.
const ManagedClusterServiceTemplatesIndexKey = ".spec.services[].Template"
ManagedClusterServiceTemplatesIndexKey indexer field name to extract service templates names from a ManagedCluster object.
const ManagedClusterTemplateIndexKey = ".spec.template"
ManagedClusterTemplateIndexKey indexer field name to extract ClusterTemplate name reference from a ManagedCluster object.
const MultiClusterServiceTemplatesIndexKey = "serviceTemplates"
MultiClusterServiceTemplatesIndexKey indexer field name to extract service templates names from a MultiClusterService object.
const OwnerRefIndexKey = ".metadata.ownerReferences"
OwnerRefIndexKey indexer field name to extract ownerReference names from objects
const ProviderTemplateKind = "ProviderTemplate"
ProviderTemplateKind denotes the providertemplate resource Kind.
const ReleaseTemplatesIndexKey = "releaseTemplates"
ReleaseTemplatesIndexKey indexer field name to extract component template names from a Release object.
const ReleaseVersionIndexKey = ".spec.version"
ReleaseVersionIndexKey indexer field name to extract release version from a Release object.
const ServiceTemplateChainKind = "ServiceTemplateChain"
const TemplateChainSupportedTemplatesIndexKey = ".spec.supportedTemplates[].Name"
TemplateChainSupportedTemplatesIndexKey indexer field name to extract supported template names from an according TemplateChain object.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "hmc.mirantis.com", 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 )
var DefaultSourceRef = sourcev1.LocalHelmChartSourceReference{ Kind: sourcev1.HelmRepositoryKind, Name: DefaultRepoName, }
Functions ¶
func ExtractCredentialNameFromManagedCluster ¶ added in v0.0.4
ExtractCredentialNameFromManagedCluster returns referenced Credential name declared in a ManagedCluster object.
func ExtractProvidersFromClusterTemplate ¶ added in v0.0.4
ExtractProvidersFromClusterTemplate returns provider names from a ClusterTemplate object.
func ExtractServiceTemplateNamesFromManagedCluster ¶ added in v0.0.4
ExtractServiceTemplateNamesFromManagedCluster returns a list of service templates names declared in a ManagedCluster object.
func ExtractServiceTemplateNamesFromMultiClusterService ¶ added in v0.0.4
ExtractServiceTemplateNamesFromMultiClusterService returns a list of service templates names declared in a MultiClusterService object.
func ExtractTemplateNameFromManagedCluster ¶ added in v0.0.4
ExtractTemplateNameFromManagedCluster returns referenced ClusterTemplate name declared in a ManagedCluster object.
Types ¶
type AccessManagement ¶ added in v0.0.5
type AccessManagement struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec AccessManagementSpec `json:"spec,omitempty"`
Status AccessManagementStatus `json:"status,omitempty"`
}
AccessManagement is the Schema for the AccessManagements API
func (*AccessManagement) DeepCopy ¶ added in v0.0.5
func (in *AccessManagement) DeepCopy() *AccessManagement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessManagement.
func (*AccessManagement) DeepCopyInto ¶ added in v0.0.5
func (in *AccessManagement) DeepCopyInto(out *AccessManagement)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AccessManagement) DeepCopyObject ¶ added in v0.0.5
func (in *AccessManagement) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AccessManagementList ¶ added in v0.0.5
type AccessManagementList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []AccessManagement `json:"items"`
}
AccessManagementList contains a list of AccessManagement
func (*AccessManagementList) DeepCopy ¶ added in v0.0.5
func (in *AccessManagementList) DeepCopy() *AccessManagementList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessManagementList.
func (*AccessManagementList) DeepCopyInto ¶ added in v0.0.5
func (in *AccessManagementList) DeepCopyInto(out *AccessManagementList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AccessManagementList) DeepCopyObject ¶ added in v0.0.5
func (in *AccessManagementList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AccessManagementSpec ¶ added in v0.0.5
type AccessManagementSpec struct {
// AccessRules is the list of access rules. Each AccessRule enforces
// objects distribution to the TargetNamespaces.
AccessRules []AccessRule `json:"accessRules,omitempty"`
}
AccessManagementSpec defines the desired state of AccessManagement
func (*AccessManagementSpec) DeepCopy ¶ added in v0.0.5
func (in *AccessManagementSpec) DeepCopy() *AccessManagementSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessManagementSpec.
func (*AccessManagementSpec) DeepCopyInto ¶ added in v0.0.5
func (in *AccessManagementSpec) DeepCopyInto(out *AccessManagementSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccessManagementStatus ¶ added in v0.0.5
type AccessManagementStatus struct {
// Error is the error message occurred during the reconciliation (if any)
Error string `json:"error,omitempty"`
// Current reflects the applied access rules configuration.
Current []AccessRule `json:"current,omitempty"`
// ObservedGeneration is the last observed generation.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
AccessManagementStatus defines the observed state of AccessManagement
func (*AccessManagementStatus) DeepCopy ¶ added in v0.0.5
func (in *AccessManagementStatus) DeepCopy() *AccessManagementStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessManagementStatus.
func (*AccessManagementStatus) DeepCopyInto ¶ added in v0.0.5
func (in *AccessManagementStatus) DeepCopyInto(out *AccessManagementStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccessRule ¶ added in v0.0.2
type AccessRule struct {
// TargetNamespaces defines the namespaces where selected objects will be distributed.
// Templates and Credentials will be distributed to all namespaces if unset.
TargetNamespaces TargetNamespaces `json:"targetNamespaces,omitempty"`
// ClusterTemplateChains lists the names of ClusterTemplateChains whose ClusterTemplates
// will be distributed to all namespaces specified in TargetNamespaces.
ClusterTemplateChains []string `json:"clusterTemplateChains,omitempty"`
// ServiceTemplateChains lists the names of ServiceTemplateChains whose ServiceTemplates
// will be distributed to all namespaces specified in TargetNamespaces.
ServiceTemplateChains []string `json:"serviceTemplateChains,omitempty"`
// Credentials is the list of Credential names that will be distributed to all the
// namespaces specified in TargetNamespaces.
Credentials []string `json:"credentials,omitempty"`
}
AccessRule is the definition of the AccessManagement access rule. Each AccessRule enforces Templates and Credentials distribution to the TargetNamespaces
func (*AccessRule) DeepCopy ¶ added in v0.0.2
func (in *AccessRule) DeepCopy() *AccessRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessRule.
func (*AccessRule) DeepCopyInto ¶ added in v0.0.2
func (in *AccessRule) DeepCopyInto(out *AccessRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AvailableUpgrade ¶ added in v0.0.2
type AvailableUpgrade struct {
// Name is the name of the Template to which the upgrade is available.
Name string `json:"name"`
}
AvailableUpgrade is the definition of the available upgrade for the Template
func (*AvailableUpgrade) DeepCopy ¶ added in v0.0.2
func (in *AvailableUpgrade) DeepCopy() *AvailableUpgrade
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AvailableUpgrade.
func (*AvailableUpgrade) DeepCopyInto ¶ added in v0.0.2
func (in *AvailableUpgrade) DeepCopyInto(out *AvailableUpgrade)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Backup ¶ added in v0.0.5
type Backup struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec BackupSpec `json:"spec,omitempty"`
Status BackupStatus `json:"status,omitempty"`
}
Backup is the Schema for the backups API
func (*Backup) DeepCopy ¶ added in v0.0.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Backup.
func (*Backup) DeepCopyInto ¶ added in v0.0.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Backup) DeepCopyObject ¶ added in v0.0.5
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupList ¶ added in v0.0.5
type BackupList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Backup `json:"items"`
}
BackupList contains a list of Backup
func (*BackupList) DeepCopy ¶ added in v0.0.5
func (in *BackupList) DeepCopy() *BackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupList.
func (*BackupList) DeepCopyInto ¶ added in v0.0.5
func (in *BackupList) DeepCopyInto(out *BackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BackupList) DeepCopyObject ¶ added in v0.0.5
func (in *BackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BackupSpec ¶ added in v0.0.5
type BackupSpec struct {
// Oneshot indicates whether the Backup should not be scheduled
// and rather created immediately and only once.
Oneshot bool `json:"oneshot,omitempty"`
}
BackupSpec defines the desired state of Backup
func (*BackupSpec) DeepCopy ¶ added in v0.0.5
func (in *BackupSpec) DeepCopy() *BackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupSpec.
func (*BackupSpec) DeepCopyInto ¶ added in v0.0.5
func (in *BackupSpec) DeepCopyInto(out *BackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BackupStatus ¶ added in v0.0.5
type BackupStatus struct {
// Reference to the underlying Velero object being managed.
// Might be either Velero Backup or Schedule.
Reference *corev1.ObjectReference `json:"reference,omitempty"`
// Status of the Velero Schedule for the Management scheduled backups.
// Always absent for the Backups with the .spec.oneshot set to true.
Schedule *velerov1.ScheduleStatus `json:"schedule,omitempty"`
// NextAttempt indicates the time when the next scheduled backup will be performed.
// Always absent for the Backups with the .spec.oneshot set to true.
NextAttempt *metav1.Time `json:"nextAttempt,omitempty"`
// Last Velero Backup that has been created.
LastBackup *velerov1.BackupStatus `json:"lastBackup,omitempty"`
}
BackupStatus defines the observed state of Backup
func (*BackupStatus) DeepCopy ¶ added in v0.0.5
func (in *BackupStatus) DeepCopy() *BackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BackupStatus.
func (*BackupStatus) DeepCopyInto ¶ added in v0.0.5
func (in *BackupStatus) DeepCopyInto(out *BackupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTemplate ¶ added in v0.0.2
type ClusterTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ClusterTemplateSpec `json:"spec,omitempty"`
Status ClusterTemplateStatus `json:"status,omitempty"`
}
ClusterTemplate is the Schema for the clustertemplates API
func (*ClusterTemplate) DeepCopy ¶ added in v0.0.2
func (in *ClusterTemplate) DeepCopy() *ClusterTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplate.
func (*ClusterTemplate) DeepCopyInto ¶ added in v0.0.2
func (in *ClusterTemplate) DeepCopyInto(out *ClusterTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTemplate) DeepCopyObject ¶ added in v0.0.2
func (in *ClusterTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterTemplate) FillStatusWithProviders ¶ added in v0.0.3
func (t *ClusterTemplate) FillStatusWithProviders(annotations map[string]string) error
FillStatusWithProviders sets the status of the template with providers either from the spec or from the given annotations.
func (*ClusterTemplate) GetCommonStatus ¶ added in v0.0.3
func (t *ClusterTemplate) GetCommonStatus() *TemplateStatusCommon
GetCommonStatus returns common status of the Template.
func (*ClusterTemplate) GetHelmSpec ¶ added in v0.0.3
func (t *ClusterTemplate) GetHelmSpec() *HelmSpec
GetHelmSpec returns .spec.helm of the Template.
func (*ClusterTemplate) GetSpecProviders ¶ added in v0.0.3
func (t *ClusterTemplate) GetSpecProviders() Providers
GetSpecProviders returns .spec.providers of the Template.
type ClusterTemplateChain ¶ added in v0.0.2
type ClusterTemplateChain struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TemplateChainSpec `json:"spec,omitempty"`
}
ClusterTemplateChain is the Schema for the clustertemplatechains API
func (*ClusterTemplateChain) DeepCopy ¶ added in v0.0.2
func (in *ClusterTemplateChain) DeepCopy() *ClusterTemplateChain
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateChain.
func (*ClusterTemplateChain) DeepCopyInto ¶ added in v0.0.2
func (in *ClusterTemplateChain) DeepCopyInto(out *ClusterTemplateChain)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTemplateChain) DeepCopyObject ¶ added in v0.0.2
func (in *ClusterTemplateChain) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterTemplateChain) GetSpec ¶ added in v0.0.2
func (t *ClusterTemplateChain) GetSpec() *TemplateChainSpec
func (*ClusterTemplateChain) Kind ¶ added in v0.0.2
func (*ClusterTemplateChain) Kind() string
func (*ClusterTemplateChain) TemplateKind ¶ added in v0.0.2
func (*ClusterTemplateChain) TemplateKind() string
type ClusterTemplateChainList ¶ added in v0.0.2
type ClusterTemplateChainList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterTemplateChain `json:"items"`
}
ClusterTemplateChainList contains a list of ClusterTemplateChain
func (*ClusterTemplateChainList) DeepCopy ¶ added in v0.0.2
func (in *ClusterTemplateChainList) DeepCopy() *ClusterTemplateChainList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateChainList.
func (*ClusterTemplateChainList) DeepCopyInto ¶ added in v0.0.2
func (in *ClusterTemplateChainList) DeepCopyInto(out *ClusterTemplateChainList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTemplateChainList) DeepCopyObject ¶ added in v0.0.2
func (in *ClusterTemplateChainList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterTemplateList ¶ added in v0.0.2
type ClusterTemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterTemplate `json:"items"`
}
ClusterTemplateList contains a list of ClusterTemplate
func (*ClusterTemplateList) DeepCopy ¶ added in v0.0.2
func (in *ClusterTemplateList) DeepCopy() *ClusterTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateList.
func (*ClusterTemplateList) DeepCopyInto ¶ added in v0.0.2
func (in *ClusterTemplateList) DeepCopyInto(out *ClusterTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterTemplateList) DeepCopyObject ¶ added in v0.0.2
func (in *ClusterTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterTemplateSpec ¶ added in v0.0.2
type ClusterTemplateSpec struct {
Helm HelmSpec `json:"helm"`
// Holds key-value pairs with compatibility [contract versions],
// where the key is the name of the provider,
// and the value is the provider contract version
// required to be supported by the provider.
//
// [contract versions]: https://cluster-api.sigs.k8s.io/developer/providers/contracts
ProviderContracts CompatibilityContracts `json:"providerContracts,omitempty"`
// Kubernetes exact version in the SemVer format provided by this ClusterTemplate.
KubernetesVersion string `json:"k8sVersion,omitempty"`
// Providers represent required CAPI providers.
// Should be set if not present in the Helm chart metadata.
Providers Providers `json:"providers,omitempty"`
}
ClusterTemplateSpec defines the desired state of ClusterTemplate
func (*ClusterTemplateSpec) DeepCopy ¶ added in v0.0.2
func (in *ClusterTemplateSpec) DeepCopy() *ClusterTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateSpec.
func (*ClusterTemplateSpec) DeepCopyInto ¶ added in v0.0.2
func (in *ClusterTemplateSpec) DeepCopyInto(out *ClusterTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTemplateStatus ¶ added in v0.0.2
type ClusterTemplateStatus struct {
// Holds key-value pairs with compatibility [contract versions],
// where the key is the name of the provider,
// and the value is the provider contract version
// required to be supported by the provider.
//
// [contract versions]: https://cluster-api.sigs.k8s.io/developer/providers/contracts
ProviderContracts CompatibilityContracts `json:"providerContracts,omitempty"`
// Kubernetes exact version in the SemVer format provided by this ClusterTemplate.
KubernetesVersion string `json:"k8sVersion,omitempty"`
// Providers represent required CAPI providers.
Providers Providers `json:"providers,omitempty"`
TemplateStatusCommon `json:",inline"`
}
ClusterTemplateStatus defines the observed state of ClusterTemplate
func (*ClusterTemplateStatus) DeepCopy ¶ added in v0.0.2
func (in *ClusterTemplateStatus) DeepCopy() *ClusterTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateStatus.
func (*ClusterTemplateStatus) DeepCopyInto ¶ added in v0.0.2
func (in *ClusterTemplateStatus) DeepCopyInto(out *ClusterTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CompatibilityContracts ¶ added in v0.0.4
Holds key-value pairs with compatibility contract versions, where the key is the core CAPI contract version, and the value is an underscore-delimited (_) list of provider contract versions supported by the core CAPI.
func (CompatibilityContracts) DeepCopy ¶ added in v0.0.4
func (in CompatibilityContracts) DeepCopy() CompatibilityContracts
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompatibilityContracts.
func (CompatibilityContracts) DeepCopyInto ¶ added in v0.0.4
func (in CompatibilityContracts) DeepCopyInto(out *CompatibilityContracts)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Component ¶
type Component struct {
// Config allows to provide parameters for management component customization.
// If no Config provided, the field will be populated with the default
// values for the template.
Config *apiextensionsv1.JSON `json:"config,omitempty"`
// Template is the name of the Template associated with this component.
// If not specified, will be taken from the Release object.
Template string `json:"template,omitempty"`
}
Component represents HMC management component
func (*Component) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component.
func (*Component) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ComponentStatus ¶
type ComponentStatus struct {
// Template is the name of the Template associated with this component.
Template string `json:"template,omitempty"`
// Error stores as error message in case of failed installation
Error string `json:"error,omitempty"`
// Success represents if a component installation was successful
Success bool `json:"success,omitempty"`
}
ComponentStatus is the status of Management component installation
func (*ComponentStatus) DeepCopy ¶
func (in *ComponentStatus) DeepCopy() *ComponentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentStatus.
func (*ComponentStatus) DeepCopyInto ¶
func (in *ComponentStatus) DeepCopyInto(out *ComponentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Core ¶
type Core struct {
// HMC represents the core HMC component and references the HMC template.
HMC Component `json:"hmc,omitempty"`
// CAPI represents the core Cluster API component and references the Cluster API template.
CAPI Component `json:"capi,omitempty"`
}
Core represents a structure describing core Management components.
func (*Core) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Core.
func (*Core) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CoreProviderTemplate ¶ added in v0.0.2
type CoreProviderTemplate struct {
// Template references the Template associated with the provider.
Template string `json:"template"`
}
func (*CoreProviderTemplate) DeepCopy ¶ added in v0.0.2
func (in *CoreProviderTemplate) DeepCopy() *CoreProviderTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoreProviderTemplate.
func (*CoreProviderTemplate) DeepCopyInto ¶ added in v0.0.2
func (in *CoreProviderTemplate) DeepCopyInto(out *CoreProviderTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Credential ¶ added in v0.0.2
type Credential struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec CredentialSpec `json:"spec,omitempty"`
Status CredentialStatus `json:"status,omitempty"`
}
Credential is the Schema for the credentials API
func (*Credential) DeepCopy ¶ added in v0.0.2
func (in *Credential) DeepCopy() *Credential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Credential.
func (*Credential) DeepCopyInto ¶ added in v0.0.2
func (in *Credential) DeepCopyInto(out *Credential)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Credential) DeepCopyObject ¶ added in v0.0.2
func (in *Credential) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Credential) GetConditions ¶ added in v0.0.4
func (in *Credential) GetConditions() *[]metav1.Condition
type CredentialList ¶ added in v0.0.2
type CredentialList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Credential `json:"items"`
}
CredentialList contains a list of Credential
func (*CredentialList) DeepCopy ¶ added in v0.0.2
func (in *CredentialList) DeepCopy() *CredentialList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialList.
func (*CredentialList) DeepCopyInto ¶ added in v0.0.2
func (in *CredentialList) DeepCopyInto(out *CredentialList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CredentialList) DeepCopyObject ¶ added in v0.0.2
func (in *CredentialList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CredentialSpec ¶ added in v0.0.2
type CredentialSpec struct {
// Reference to the Credential Identity
IdentityRef *corev1.ObjectReference `json:"identityRef"`
// Description of the Credential object
Description string `json:"description,omitempty"` // WARN: noop
}
CredentialSpec defines the desired state of Credential
func (*CredentialSpec) DeepCopy ¶ added in v0.0.2
func (in *CredentialSpec) DeepCopy() *CredentialSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialSpec.
func (*CredentialSpec) DeepCopyInto ¶ added in v0.0.2
func (in *CredentialSpec) DeepCopyInto(out *CredentialSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CredentialStatus ¶ added in v0.0.2
type CredentialStatus struct {
Ready bool `json:"ready"`
// Conditions contains details for the current state of the Credential.
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
CredentialStatus defines the observed state of Credential
func (*CredentialStatus) DeepCopy ¶ added in v0.0.2
func (in *CredentialStatus) DeepCopy() *CredentialStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialStatus.
func (*CredentialStatus) DeepCopyInto ¶ added in v0.0.2
func (in *CredentialStatus) DeepCopyInto(out *CredentialStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmSpec ¶
type HelmSpec struct {
// ChartSpec defines the desired state of the HelmChart to be created by the controller
ChartSpec *sourcev1.HelmChartSpec `json:"chartSpec,omitempty"`
// ChartRef is a reference to a source controller resource containing the
// Helm chart representing the template.
ChartRef *helmcontrollerv2.CrossNamespaceSourceReference `json:"chartRef,omitempty"`
}
HelmSpec references a Helm chart representing the HMC template
func (*HelmSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmSpec.
func (*HelmSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedCluster ¶ added in v0.0.2
type ManagedCluster struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ManagedClusterSpec `json:"spec,omitempty"`
Status ManagedClusterStatus `json:"status,omitempty"`
}
ManagedCluster is the Schema for the managedclusters API
func (*ManagedCluster) DeepCopy ¶ added in v0.0.2
func (in *ManagedCluster) DeepCopy() *ManagedCluster
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedCluster.
func (*ManagedCluster) DeepCopyInto ¶ added in v0.0.2
func (in *ManagedCluster) DeepCopyInto(out *ManagedCluster)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedCluster) DeepCopyObject ¶ added in v0.0.2
func (in *ManagedCluster) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ManagedCluster) GetConditions ¶ added in v0.0.2
func (in *ManagedCluster) GetConditions() *[]metav1.Condition
func (*ManagedCluster) HelmValues ¶ added in v0.0.2
func (in *ManagedCluster) HelmValues() (values map[string]any, err error)
func (*ManagedCluster) InitConditions ¶ added in v0.0.2
func (in *ManagedCluster) InitConditions()
type ManagedClusterList ¶ added in v0.0.2
type ManagedClusterList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ManagedCluster `json:"items"`
}
ManagedClusterList contains a list of ManagedCluster
func (*ManagedClusterList) DeepCopy ¶ added in v0.0.2
func (in *ManagedClusterList) DeepCopy() *ManagedClusterList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedClusterList.
func (*ManagedClusterList) DeepCopyInto ¶ added in v0.0.2
func (in *ManagedClusterList) DeepCopyInto(out *ManagedClusterList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagedClusterList) DeepCopyObject ¶ added in v0.0.2
func (in *ManagedClusterList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagedClusterSpec ¶ added in v0.0.2
type ManagedClusterSpec struct {
// Config allows to provide parameters for template customization.
// If no Config provided, the field will be populated with the default values for
// the template and DryRun will be enabled.
Config *apiextensionsv1.JSON `json:"config,omitempty"`
// Template is a reference to a Template object located in the same namespace.
Template string `json:"template"`
// Name reference to the related Credentials object.
Credential string `json:"credential,omitempty"`
// Services is a list of services created via ServiceTemplates
// that could be installed on the target cluster.
Services []ServiceSpec `json:"services,omitempty"`
// ServicesPriority sets the priority for the services defined in this spec.
// Higher value means higher priority and lower means lower.
// In case of conflict with another object managing the service,
// the one with higher priority will get to deploy its services.
ServicesPriority int32 `json:"servicesPriority,omitempty"`
// DryRun specifies whether the template should be applied after validation or only validated.
DryRun bool `json:"dryRun,omitempty"`
// StopOnConflict specifies what to do in case of a conflict.
// E.g. If another object is already managing a service.
// By default the remaining services will be deployed even if conflict is detected.
// If set to true, the deployment will stop after encountering the first conflict.
StopOnConflict bool `json:"stopOnConflict,omitempty"`
}
ManagedClusterSpec defines the desired state of ManagedCluster
func (*ManagedClusterSpec) DeepCopy ¶ added in v0.0.2
func (in *ManagedClusterSpec) DeepCopy() *ManagedClusterSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedClusterSpec.
func (*ManagedClusterSpec) DeepCopyInto ¶ added in v0.0.2
func (in *ManagedClusterSpec) DeepCopyInto(out *ManagedClusterSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagedClusterStatus ¶ added in v0.0.2
type ManagedClusterStatus struct {
// Services contains details for the state of services.
Services []ServiceStatus `json:"services,omitempty"`
// Currently compatible exact Kubernetes version of the cluster. Being set only if
// provided by the corresponding ClusterTemplate.
KubernetesVersion string `json:"k8sVersion,omitempty"`
// Conditions contains details for the current state of the ManagedCluster.
Conditions []metav1.Condition `json:"conditions,omitempty"`
// AvailableUpgrades is the list of ClusterTemplate names to which
// this cluster can be upgraded. It can be an empty array, which means no upgrades are
// available.
AvailableUpgrades []string `json:"availableUpgrades,omitempty"`
// ObservedGeneration is the last observed generation.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
ManagedClusterStatus defines the observed state of ManagedCluster
func (*ManagedClusterStatus) DeepCopy ¶ added in v0.0.2
func (in *ManagedClusterStatus) DeepCopy() *ManagedClusterStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagedClusterStatus.
func (*ManagedClusterStatus) DeepCopyInto ¶ added in v0.0.2
func (in *ManagedClusterStatus) DeepCopyInto(out *ManagedClusterStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Management ¶
type Management struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ManagementSpec `json:"spec,omitempty"`
Status ManagementStatus `json:"status,omitempty"`
}
Management is the Schema for the managements API
func (*Management) DeepCopy ¶
func (in *Management) DeepCopy() *Management
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Management.
func (*Management) DeepCopyInto ¶
func (in *Management) DeepCopyInto(out *Management)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Management) DeepCopyObject ¶
func (in *Management) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Management) Templates ¶ added in v0.0.5
func (in *Management) Templates() []string
Templates returns a list of provider templates explicitly defined in the Management object
type ManagementBackup ¶ added in v0.0.5
type ManagementBackup struct {
// Schedule is a Cron expression defining when to run the scheduled Backup.
// Default value is to backup every 6 hours.
Schedule string `json:"schedule,omitempty"`
// Flag to indicate whether the backup feature is enabled.
// If set to true, [Velero] platform will be installed.
// If set to false, creation or modification of Backups/Restores will be blocked.
//
// [Velero]: https://velero.io
Enabled bool `json:"enabled"`
}
ManagementBackup enables a feature to backup HMC objects into a cloud.
func (*ManagementBackup) DeepCopy ¶ added in v0.0.5
func (in *ManagementBackup) DeepCopy() *ManagementBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementBackup.
func (*ManagementBackup) DeepCopyInto ¶ added in v0.0.5
func (in *ManagementBackup) DeepCopyInto(out *ManagementBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagementList ¶
type ManagementList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Management `json:"items"`
}
ManagementList contains a list of Management
func (*ManagementList) DeepCopy ¶
func (in *ManagementList) DeepCopy() *ManagementList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementList.
func (*ManagementList) DeepCopyInto ¶
func (in *ManagementList) DeepCopyInto(out *ManagementList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagementList) DeepCopyObject ¶
func (in *ManagementList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagementSpec ¶
type ManagementSpec struct {
// Release references the Release object.
Release string `json:"release"`
// Core holds the core Management components that are mandatory.
// If not specified, will be populated with the default values.
Core *Core `json:"core,omitempty"`
// Providers is the list of supported CAPI providers.
Providers []Provider `json:"providers,omitempty"`
Backup ManagementBackup `json:"backup,omitempty"`
}
ManagementSpec defines the desired state of Management
func (*ManagementSpec) DeepCopy ¶
func (in *ManagementSpec) DeepCopy() *ManagementSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementSpec.
func (*ManagementSpec) DeepCopyInto ¶
func (in *ManagementSpec) DeepCopyInto(out *ManagementSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagementStatus ¶
type ManagementStatus struct {
// For each CAPI provider name holds its compatibility [contract versions]
// in a key-value pairs, where the key is the core CAPI contract version,
// and the value is an underscore-delimited (_) list of provider contract versions
// supported by the core CAPI.
//
// [contract versions]: https://cluster-api.sigs.k8s.io/developer/providers/contracts
CAPIContracts map[string]CompatibilityContracts `json:"capiContracts,omitempty"`
// Components indicates the status of installed HMC components and CAPI providers.
Components map[string]ComponentStatus `json:"components,omitempty"`
// BackupName is a name of the management cluster scheduled backup.
BackupName string `json:"backupName,omitempty"`
// Release indicates the current Release object.
Release string `json:"release,omitempty"`
// AvailableProviders holds all available CAPI providers.
AvailableProviders Providers `json:"availableProviders,omitempty"`
// ObservedGeneration is the last observed generation.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
ManagementStatus defines the observed state of Management
func (*ManagementStatus) DeepCopy ¶
func (in *ManagementStatus) DeepCopy() *ManagementStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementStatus.
func (*ManagementStatus) DeepCopyInto ¶
func (in *ManagementStatus) DeepCopyInto(out *ManagementStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MultiClusterService ¶ added in v0.0.3
type MultiClusterService struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec MultiClusterServiceSpec `json:"spec,omitempty"`
Status MultiClusterServiceStatus `json:"status,omitempty"`
}
MultiClusterService is the Schema for the multiclusterservices API
func (*MultiClusterService) DeepCopy ¶ added in v0.0.3
func (in *MultiClusterService) DeepCopy() *MultiClusterService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterService.
func (*MultiClusterService) DeepCopyInto ¶ added in v0.0.3
func (in *MultiClusterService) DeepCopyInto(out *MultiClusterService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MultiClusterService) DeepCopyObject ¶ added in v0.0.3
func (in *MultiClusterService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MultiClusterServiceList ¶ added in v0.0.3
type MultiClusterServiceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []MultiClusterService `json:"items"`
}
MultiClusterServiceList contains a list of MultiClusterService
func (*MultiClusterServiceList) DeepCopy ¶ added in v0.0.3
func (in *MultiClusterServiceList) DeepCopy() *MultiClusterServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterServiceList.
func (*MultiClusterServiceList) DeepCopyInto ¶ added in v0.0.3
func (in *MultiClusterServiceList) DeepCopyInto(out *MultiClusterServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MultiClusterServiceList) DeepCopyObject ¶ added in v0.0.3
func (in *MultiClusterServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MultiClusterServiceSpec ¶ added in v0.0.3
type MultiClusterServiceSpec struct {
// ClusterSelector identifies target clusters to manage services on.
ClusterSelector metav1.LabelSelector `json:"clusterSelector,omitempty"`
// Services is a list of services created via ServiceTemplates
// that could be installed on the target cluster.
Services []ServiceSpec `json:"services,omitempty"`
// ServicesPriority sets the priority for the services defined in this spec.
// Higher value means higher priority and lower means lower.
// In case of conflict with another object managing the service,
// the one with higher priority will get to deploy its services.
ServicesPriority int32 `json:"servicesPriority,omitempty"`
// StopOnConflict specifies what to do in case of a conflict.
// E.g. If another object is already managing a service.
// By default the remaining services will be deployed even if conflict is detected.
// If set to true, the deployment will stop after encountering the first conflict.
StopOnConflict bool `json:"stopOnConflict,omitempty"`
}
MultiClusterServiceSpec defines the desired state of MultiClusterService
func (*MultiClusterServiceSpec) DeepCopy ¶ added in v0.0.3
func (in *MultiClusterServiceSpec) DeepCopy() *MultiClusterServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterServiceSpec.
func (*MultiClusterServiceSpec) DeepCopyInto ¶ added in v0.0.3
func (in *MultiClusterServiceSpec) DeepCopyInto(out *MultiClusterServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MultiClusterServiceStatus ¶ added in v0.0.3
type MultiClusterServiceStatus struct {
// Services contains details for the state of services.
Services []ServiceStatus `json:"services,omitempty"`
// Conditions contains details for the current state of the MultiClusterService.
Conditions []metav1.Condition `json:"conditions,omitempty"`
// ObservedGeneration is the last observed generation.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
MultiClusterServiceStatus defines the observed state of MultiClusterService.
func (*MultiClusterServiceStatus) DeepCopy ¶ added in v0.0.3
func (in *MultiClusterServiceStatus) DeepCopy() *MultiClusterServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterServiceStatus.
func (*MultiClusterServiceStatus) DeepCopyInto ¶ added in v0.0.3
func (in *MultiClusterServiceStatus) DeepCopyInto(out *MultiClusterServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamedProviderTemplate ¶ added in v0.0.2
type NamedProviderTemplate struct {
CoreProviderTemplate `json:",inline"`
// Name of the provider.
Name string `json:"name"`
}
func (*NamedProviderTemplate) DeepCopy ¶ added in v0.0.2
func (in *NamedProviderTemplate) DeepCopy() *NamedProviderTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedProviderTemplate.
func (*NamedProviderTemplate) DeepCopyInto ¶ added in v0.0.2
func (in *NamedProviderTemplate) DeepCopyInto(out *NamedProviderTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Provider ¶ added in v0.0.2
type Provider struct {
Component `json:",inline"`
// Name of the provider.
Name string `json:"name"`
}
func GetDefaultProviders ¶ added in v0.0.3
func GetDefaultProviders() []Provider
func (*Provider) DeepCopy ¶ added in v0.0.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Provider.
func (*Provider) DeepCopyInto ¶ added in v0.0.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderTemplate ¶ added in v0.0.2
type ProviderTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProviderTemplateSpec `json:"spec,omitempty"`
Status ProviderTemplateStatus `json:"status,omitempty"`
}
ProviderTemplate is the Schema for the providertemplates API
func (*ProviderTemplate) DeepCopy ¶ added in v0.0.2
func (in *ProviderTemplate) DeepCopy() *ProviderTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderTemplate.
func (*ProviderTemplate) DeepCopyInto ¶ added in v0.0.2
func (in *ProviderTemplate) DeepCopyInto(out *ProviderTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderTemplate) DeepCopyObject ¶ added in v0.0.2
func (in *ProviderTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProviderTemplate) FillStatusWithProviders ¶ added in v0.0.3
func (t *ProviderTemplate) FillStatusWithProviders(annotations map[string]string) error
FillStatusWithProviders sets the status of the template with providers either from the spec or from the given annotations.
func (*ProviderTemplate) GetCommonStatus ¶ added in v0.0.3
func (t *ProviderTemplate) GetCommonStatus() *TemplateStatusCommon
GetCommonStatus returns common status of the Template.
func (*ProviderTemplate) GetHelmSpec ¶ added in v0.0.3
func (t *ProviderTemplate) GetHelmSpec() *HelmSpec
GetHelmSpec returns .spec.helm of the Template.
type ProviderTemplateList ¶ added in v0.0.2
type ProviderTemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ProviderTemplate `json:"items"`
}
ProviderTemplateList contains a list of ProviderTemplate
func (*ProviderTemplateList) DeepCopy ¶ added in v0.0.2
func (in *ProviderTemplateList) DeepCopy() *ProviderTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderTemplateList.
func (*ProviderTemplateList) DeepCopyInto ¶ added in v0.0.2
func (in *ProviderTemplateList) DeepCopyInto(out *ProviderTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderTemplateList) DeepCopyObject ¶ added in v0.0.2
func (in *ProviderTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderTemplateSpec ¶ added in v0.0.2
type ProviderTemplateSpec struct {
Helm HelmSpec `json:"helm,omitempty"`
CAPIContracts CompatibilityContracts `json:"capiContracts,omitempty"`
// Providers represent exposed CAPI providers.
// Should be set if not present in the Helm chart metadata.
Providers Providers `json:"providers,omitempty"`
}
ProviderTemplateSpec defines the desired state of ProviderTemplate
func (*ProviderTemplateSpec) DeepCopy ¶ added in v0.0.2
func (in *ProviderTemplateSpec) DeepCopy() *ProviderTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderTemplateSpec.
func (*ProviderTemplateSpec) DeepCopyInto ¶ added in v0.0.2
func (in *ProviderTemplateSpec) DeepCopyInto(out *ProviderTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderTemplateStatus ¶ added in v0.0.2
type ProviderTemplateStatus struct {
CAPIContracts CompatibilityContracts `json:"capiContracts,omitempty"`
// Providers represent exposed CAPI providers.
Providers Providers `json:"providers,omitempty"`
TemplateStatusCommon `json:",inline"`
}
ProviderTemplateStatus defines the observed state of ProviderTemplate
func (*ProviderTemplateStatus) DeepCopy ¶ added in v0.0.2
func (in *ProviderTemplateStatus) DeepCopy() *ProviderTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderTemplateStatus.
func (*ProviderTemplateStatus) DeepCopyInto ¶ added in v0.0.2
func (in *ProviderTemplateStatus) DeepCopyInto(out *ProviderTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Providers ¶
type Providers []string
Holds different types of CAPI providers.
func (Providers) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Providers.
func (Providers) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Release ¶ added in v0.0.2
type Release struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ReleaseSpec `json:"spec,omitempty"`
Status ReleaseStatus `json:"status,omitempty"`
}
Release is the Schema for the releases API
func (*Release) DeepCopy ¶ added in v0.0.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Release.
func (*Release) DeepCopyInto ¶ added in v0.0.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Release) DeepCopyObject ¶ added in v0.0.2
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Release) ProviderTemplate ¶ added in v0.0.2
type ReleaseList ¶ added in v0.0.2
type ReleaseList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Release `json:"items"`
}
ReleaseList contains a list of Release
func (*ReleaseList) DeepCopy ¶ added in v0.0.2
func (in *ReleaseList) DeepCopy() *ReleaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseList.
func (*ReleaseList) DeepCopyInto ¶ added in v0.0.2
func (in *ReleaseList) DeepCopyInto(out *ReleaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ReleaseList) DeepCopyObject ¶ added in v0.0.2
func (in *ReleaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReleaseSpec ¶ added in v0.0.2
type ReleaseSpec struct {
// Version of the HMC Release in the semver format.
Version string `json:"version"`
// HMC references the HMC template.
HMC CoreProviderTemplate `json:"hmc"`
// CAPI references the Cluster API template.
CAPI CoreProviderTemplate `json:"capi"`
// Providers contains a list of Providers associated with the Release.
Providers []NamedProviderTemplate `json:"providers,omitempty"`
}
ReleaseSpec defines the desired state of Release
func (*ReleaseSpec) DeepCopy ¶ added in v0.0.2
func (in *ReleaseSpec) DeepCopy() *ReleaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseSpec.
func (*ReleaseSpec) DeepCopyInto ¶ added in v0.0.2
func (in *ReleaseSpec) DeepCopyInto(out *ReleaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ReleaseStatus ¶ added in v0.0.2
type ReleaseStatus struct {
// Conditions contains details for the current state of the Release
Conditions []metav1.Condition `json:"conditions,omitempty"`
// ObservedGeneration is the last observed generation.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
// Ready indicates whether HMC is ready to be upgraded to this Release.
Ready bool `json:"ready,omitempty"`
}
ReleaseStatus defines the observed state of Release
func (*ReleaseStatus) DeepCopy ¶ added in v0.0.2
func (in *ReleaseStatus) DeepCopy() *ReleaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseStatus.
func (*ReleaseStatus) DeepCopyInto ¶ added in v0.0.2
func (in *ReleaseStatus) DeepCopyInto(out *ReleaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceSpec ¶ added in v0.0.3
type ServiceSpec struct {
// Values is the helm values to be passed to the chart used by the template.
// The string type is used in order to allow for templating.
Values string `json:"values,omitempty"`
// Template is a reference to a Template object located in the same namespace.
Template string `json:"template"`
// Name is the chart release.
Name string `json:"name"`
// Namespace is the namespace the release will be installed in.
// It will default to Name if not provided.
Namespace string `json:"namespace,omitempty"`
// Disable can be set to disable handling of this service.
Disable bool `json:"disable,omitempty"`
}
ServiceSpec represents a Service to be managed
func (*ServiceSpec) DeepCopy ¶ added in v0.0.3
func (in *ServiceSpec) DeepCopy() *ServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.
func (*ServiceSpec) DeepCopyInto ¶ added in v0.0.3
func (in *ServiceSpec) DeepCopyInto(out *ServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceStatus ¶ added in v0.0.4
type ServiceStatus struct {
// ClusterName is the name of the associated cluster.
ClusterName string `json:"clusterName"`
// ClusterNamespace is the namespace of the associated cluster.
ClusterNamespace string `json:"clusterNamespace,omitempty"`
// Conditions contains details for the current state of managed services.
Conditions []metav1.Condition `json:"conditions,omitempty"`
}
ServiceStatus contains details for the state of services.
func (*ServiceStatus) DeepCopy ¶ added in v0.0.4
func (in *ServiceStatus) DeepCopy() *ServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceStatus.
func (*ServiceStatus) DeepCopyInto ¶ added in v0.0.4
func (in *ServiceStatus) DeepCopyInto(out *ServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceTemplate ¶ added in v0.0.2
type ServiceTemplate struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ServiceTemplateSpec `json:"spec,omitempty"`
Status ServiceTemplateStatus `json:"status,omitempty"`
}
ServiceTemplate is the Schema for the servicetemplates API
func (*ServiceTemplate) DeepCopy ¶ added in v0.0.2
func (in *ServiceTemplate) DeepCopy() *ServiceTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplate.
func (*ServiceTemplate) DeepCopyInto ¶ added in v0.0.2
func (in *ServiceTemplate) DeepCopyInto(out *ServiceTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceTemplate) DeepCopyObject ¶ added in v0.0.2
func (in *ServiceTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceTemplate) FillStatusWithProviders ¶ added in v0.0.3
func (t *ServiceTemplate) FillStatusWithProviders(annotations map[string]string) error
FillStatusWithProviders sets the status of the template with providers either from the spec or from the given annotations.
func (*ServiceTemplate) GetCommonStatus ¶ added in v0.0.3
func (t *ServiceTemplate) GetCommonStatus() *TemplateStatusCommon
GetCommonStatus returns common status of the Template.
func (*ServiceTemplate) GetHelmSpec ¶ added in v0.0.3
func (t *ServiceTemplate) GetHelmSpec() *HelmSpec
GetHelmSpec returns .spec.helm of the Template.
func (*ServiceTemplate) GetSpecProviders ¶ added in v0.0.4
func (t *ServiceTemplate) GetSpecProviders() Providers
GetSpecProviders returns .spec.providers of the Template.
type ServiceTemplateChain ¶ added in v0.0.2
type ServiceTemplateChain struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TemplateChainSpec `json:"spec,omitempty"`
}
ServiceTemplateChain is the Schema for the servicetemplatechains API
func (*ServiceTemplateChain) DeepCopy ¶ added in v0.0.2
func (in *ServiceTemplateChain) DeepCopy() *ServiceTemplateChain
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateChain.
func (*ServiceTemplateChain) DeepCopyInto ¶ added in v0.0.2
func (in *ServiceTemplateChain) DeepCopyInto(out *ServiceTemplateChain)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceTemplateChain) DeepCopyObject ¶ added in v0.0.2
func (in *ServiceTemplateChain) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceTemplateChain) GetSpec ¶ added in v0.0.2
func (t *ServiceTemplateChain) GetSpec() *TemplateChainSpec
func (*ServiceTemplateChain) Kind ¶ added in v0.0.2
func (*ServiceTemplateChain) Kind() string
func (*ServiceTemplateChain) TemplateKind ¶ added in v0.0.2
func (*ServiceTemplateChain) TemplateKind() string
type ServiceTemplateChainList ¶ added in v0.0.2
type ServiceTemplateChainList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ServiceTemplateChain `json:"items"`
}
ServiceTemplateChainList contains a list of ServiceTemplateChain
func (*ServiceTemplateChainList) DeepCopy ¶ added in v0.0.2
func (in *ServiceTemplateChainList) DeepCopy() *ServiceTemplateChainList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateChainList.
func (*ServiceTemplateChainList) DeepCopyInto ¶ added in v0.0.2
func (in *ServiceTemplateChainList) DeepCopyInto(out *ServiceTemplateChainList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceTemplateChainList) DeepCopyObject ¶ added in v0.0.2
func (in *ServiceTemplateChainList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceTemplateList ¶ added in v0.0.2
type ServiceTemplateList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ServiceTemplate `json:"items"`
}
ServiceTemplateList contains a list of ServiceTemplate
func (*ServiceTemplateList) DeepCopy ¶ added in v0.0.2
func (in *ServiceTemplateList) DeepCopy() *ServiceTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateList.
func (*ServiceTemplateList) DeepCopyInto ¶ added in v0.0.2
func (in *ServiceTemplateList) DeepCopyInto(out *ServiceTemplateList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ServiceTemplateList) DeepCopyObject ¶ added in v0.0.2
func (in *ServiceTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceTemplateSpec ¶ added in v0.0.2
type ServiceTemplateSpec struct {
Helm HelmSpec `json:"helm"`
// Constraint describing compatible K8S versions of the cluster set in the SemVer format.
KubernetesConstraint string `json:"k8sConstraint,omitempty"`
// Providers represent requested CAPI providers.
// Should be set if not present in the Helm chart metadata.
Providers Providers `json:"providers,omitempty"`
}
ServiceTemplateSpec defines the desired state of ServiceTemplate
func (*ServiceTemplateSpec) DeepCopy ¶ added in v0.0.2
func (in *ServiceTemplateSpec) DeepCopy() *ServiceTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateSpec.
func (*ServiceTemplateSpec) DeepCopyInto ¶ added in v0.0.2
func (in *ServiceTemplateSpec) DeepCopyInto(out *ServiceTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceTemplateStatus ¶ added in v0.0.2
type ServiceTemplateStatus struct {
// Constraint describing compatible K8S versions of the cluster set in the SemVer format.
KubernetesConstraint string `json:"k8sConstraint,omitempty"`
// Providers represent requested CAPI providers.
Providers Providers `json:"providers,omitempty"`
TemplateStatusCommon `json:",inline"`
}
ServiceTemplateStatus defines the observed state of ServiceTemplate
func (*ServiceTemplateStatus) DeepCopy ¶ added in v0.0.2
func (in *ServiceTemplateStatus) DeepCopy() *ServiceTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateStatus.
func (*ServiceTemplateStatus) DeepCopyInto ¶ added in v0.0.2
func (in *ServiceTemplateStatus) DeepCopyInto(out *ServiceTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SupportedTemplate ¶ added in v0.0.2
type SupportedTemplate struct {
// Name is the name of the Template.
Name string `json:"name"`
// AvailableUpgrades is the list of available upgrades for the specified Template.
AvailableUpgrades []AvailableUpgrade `json:"availableUpgrades,omitempty"`
}
SupportedTemplate is the supported Template definition and all available upgrade sequences for it
func (*SupportedTemplate) DeepCopy ¶ added in v0.0.2
func (in *SupportedTemplate) DeepCopy() *SupportedTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportedTemplate.
func (*SupportedTemplate) DeepCopyInto ¶ added in v0.0.2
func (in *SupportedTemplate) DeepCopyInto(out *SupportedTemplate)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TargetNamespaces ¶ added in v0.0.2
type TargetNamespaces struct {
// StringSelector is a label query to select namespaces.
// Mutually exclusive with Selector and List.
StringSelector string `json:"stringSelector,omitempty"`
// Selector is a structured label query to select namespaces.
// Mutually exclusive with StringSelector and List.
Selector *metav1.LabelSelector `json:"selector,omitempty"`
// List is the list of namespaces to select.
// Mutually exclusive with StringSelector and Selector.
List []string `json:"list,omitempty"`
}
TargetNamespaces defines the list of namespaces or the label selector to select namespaces
func (*TargetNamespaces) DeepCopy ¶ added in v0.0.2
func (in *TargetNamespaces) DeepCopy() *TargetNamespaces
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetNamespaces.
func (*TargetNamespaces) DeepCopyInto ¶ added in v0.0.2
func (in *TargetNamespaces) DeepCopyInto(out *TargetNamespaces)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateChainSpec ¶ added in v0.0.2
type TemplateChainSpec struct {
// SupportedTemplates is the list of supported Templates definitions and all available upgrade sequences for it.
SupportedTemplates []SupportedTemplate `json:"supportedTemplates,omitempty"`
}
TemplateChainSpec defines the observed state of TemplateChain
func (*TemplateChainSpec) DeepCopy ¶ added in v0.0.2
func (in *TemplateChainSpec) DeepCopy() *TemplateChainSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateChainSpec.
func (*TemplateChainSpec) DeepCopyInto ¶ added in v0.0.2
func (in *TemplateChainSpec) DeepCopyInto(out *TemplateChainSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateStatusCommon ¶ added in v0.0.2
type TemplateStatusCommon struct {
// Config demonstrates available parameters for template customization,
// that can be used when creating ManagedCluster objects.
Config *apiextensionsv1.JSON `json:"config,omitempty"`
// ChartRef is a reference to a source controller resource containing the
// Helm chart representing the template.
ChartRef *helmcontrollerv2.CrossNamespaceSourceReference `json:"chartRef,omitempty"`
// Description contains information about the template.
Description string `json:"description,omitempty"`
TemplateValidationStatus `json:",inline"`
// ObservedGeneration is the last observed generation.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
TemplateStatusCommon defines the observed state of Template common for all Template types
func (*TemplateStatusCommon) DeepCopy ¶ added in v0.0.2
func (in *TemplateStatusCommon) DeepCopy() *TemplateStatusCommon
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateStatusCommon.
func (*TemplateStatusCommon) DeepCopyInto ¶ added in v0.0.2
func (in *TemplateStatusCommon) DeepCopyInto(out *TemplateStatusCommon)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateValidationStatus ¶
type TemplateValidationStatus struct {
// ValidationError provides information regarding issues encountered during template validation.
ValidationError string `json:"validationError,omitempty"`
// Valid indicates whether the template passed validation or not.
Valid bool `json:"valid"`
}
func (*TemplateValidationStatus) DeepCopy ¶
func (in *TemplateValidationStatus) DeepCopy() *TemplateValidationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateValidationStatus.
func (*TemplateValidationStatus) DeepCopyInto ¶
func (in *TemplateValidationStatus) DeepCopyInto(out *TemplateValidationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files
¶
- accessmanagement_types.go
- backup_types.go
- clustertemplate_types.go
- clustertemplatechain_types.go
- common.go
- compatibility_contract.go
- credential_types.go
- groupversion_info.go
- indexers.go
- managedcluster_types.go
- management_types.go
- multiclusterservice_types.go
- providertemplate_types.go
- release_types.go
- servicetemplate_types.go
- servicetemplatechain_types.go
- templatechain_common.go
- templates_common.go
- zz_generated.deepcopy.go