Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the k0rdent.mirantis.com v1alpha1 API group
Example (IsNonMajor) ¶
_, _ = fmt.Printf("isNonMajor(\"1alpha1\", \"alpha\", 1): %v\n", isNonMajor("1alpha1", "alpha", 1))
_, _ = fmt.Printf("isNonMajor(\"1beta1\", \"beta\", 1): %v\n", isNonMajor("1beta1", "beta", 1))
_, _ = fmt.Printf("isNonMajor(\"NONSENSEbeta1\", \"beta\", 8): %v\n", isNonMajor("NONSENSEbeta1", "beta", 8))
_, _ = fmt.Printf("isNonMajor(\"beta1\", \"beta\", 1): %v\n", isNonMajor("beta1", "beta", 1))
Output: isNonMajor("1alpha1", "alpha", 1): true isNonMajor("1beta1", "beta", 1): true isNonMajor("NONSENSEbeta1", "beta", 8): false isNonMajor("beta1", "beta", 1): false
Index ¶
- Constants
- Variables
- func ExtractProviderInterfaceInfrastructure(o client.Object) []string
- func ExtractProvidersFromClusterTemplate(o client.Object) []string
- func ExtractScheduledOrIncompleteBackups(o client.Object) []string
- func ExtractServiceTemplateChainNameFromClusterDeployment(rawObj client.Object) []string
- func ExtractServiceTemplateChainNamesFromMultiClusterService(rawObj client.Object) []string
- func ExtractServiceTemplateNamesFromClusterDeployment(rawObj client.Object) []string
- func ExtractServiceTemplateNamesFromMultiClusterService(rawObj client.Object) []string
- func ExtractTemplateNameFromClusterDeployment(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 ClusterDeployment
- func (in *ClusterDeployment) AddHelmValues(fn func(map[string]any) error) error
- func (in *ClusterDeployment) DeepCopy() *ClusterDeployment
- func (in *ClusterDeployment) DeepCopyInto(out *ClusterDeployment)
- func (in *ClusterDeployment) DeepCopyObject() runtime.Object
- func (in *ClusterDeployment) GetConditions() *[]metav1.Condition
- func (in *ClusterDeployment) HelmValues() (map[string]any, error)
- func (in *ClusterDeployment) SetHelmValues(values map[string]any) error
- type ClusterDeploymentList
- type ClusterDeploymentSpec
- type ClusterDeploymentStatus
- 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 (t *ClusterTemplateChain) GetStatus() *TemplateChainStatus
- 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 EmbeddedBucketSpec
- type EmbeddedGitRepositorySpec
- type EmbeddedOCIRepositorySpec
- type GroupVersionKind
- type HelmSpec
- type LocalSourceRef
- type Management
- type ManagementBackup
- func (in *ManagementBackup) DeepCopy() *ManagementBackup
- func (in *ManagementBackup) DeepCopyInto(out *ManagementBackup)
- func (in *ManagementBackup) DeepCopyObject() runtime.Object
- func (s *ManagementBackup) IsCompleted() bool
- func (s *ManagementBackup) IsSchedule() bool
- func (s *ManagementBackup) TimestampedBackupName(timestamp time.Time) string
- type ManagementBackupList
- type ManagementBackupSpec
- type ManagementBackupStatus
- type ManagementList
- type ManagementSpec
- type ManagementStatus
- type MultiClusterService
- type MultiClusterServiceList
- type MultiClusterServiceSpec
- type MultiClusterServiceStatus
- type NamedProviderTemplate
- type Provider
- type ProviderInterface
- type ProviderInterfaceList
- type ProviderInterfaceSpec
- type ProviderInterfaceStatus
- 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 RemoteSourceSpec
- type Service
- 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) HelmChartRef() *helmcontrollerv2.CrossNamespaceSourceReference
- func (t *ServiceTemplate) HelmChartSpec() *sourcev1.HelmChartSpec
- func (t *ServiceTemplate) LocalSourceObject() (client.Object, string)
- func (t *ServiceTemplate) LocalSourceRef() *LocalSourceRef
- func (t *ServiceTemplate) RemoteSourceObject() (client.Object, string)
- func (t *ServiceTemplate) RemoteSourceSpec() *RemoteSourceSpec
- 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 (t *ServiceTemplateChain) GetStatus() *TemplateChainStatus
- func (*ServiceTemplateChain) Kind() string
- func (*ServiceTemplateChain) TemplateKind() string
- type ServiceTemplateChainList
- type ServiceTemplateList
- type ServiceTemplateSpec
- type ServiceTemplateStatus
- type ServiceUpgradePaths
- type SourceSpec
- type SourceStatus
- type SupportedTemplate
- type TargetNamespaces
- type TemplateChainSpec
- type TemplateChainStatus
- type TemplateStatusCommon
- type TemplateValidationStatus
- type UpgradePath
Examples ¶
Constants ¶
const ( AccessManagementKind = "AccessManagement" AccessManagementName = "kcm" )
const ( BlockingFinalizer = "k0rdent.mirantis.com/cleanup" ClusterDeploymentFinalizer = "k0rdent.mirantis.com/cluster-deployment" FluxHelmChartNameKey = "helm.toolkit.fluxcd.io/name" FluxHelmChartNamespaceKey = "helm.toolkit.fluxcd.io/namespace" KCMManagedLabelKey = "k0rdent.mirantis.com/managed" KCMManagedLabelValue = "true" )
const ( // ClusterDeploymentKind is the string representation of a ClusterDeployment. ClusterDeploymentKind = "ClusterDeployment" // 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" // CAPIClusterSummaryCondition aggregates all the important conditions from the Cluster object. CAPIClusterSummaryCondition = "CAPIClusterSummary" // SveltosClusterReadyCondition indicates the sveltos cluster is valid and ready. SveltosClusterReadyCondition = "SveltosClusterReady" )
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 = "k0rdent.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 ( // ReadyCondition indicates a resource is ready and fully reconciled. ReadyCondition string = "Ready" // DeletingCondition indicates a resource is deleting. DeletingCondition string = "Deleting" )
const ( // Provider K0smotron ProviderK0smotronName = "k0smotron" // Provider Sveltos ProviderSveltosName = "projectsveltos" )
const ( CredentialKind = "Credential" // CredentialReadyCondition indicates if referenced Credential exists and has Ready state CredentialReadyCondition = "CredentialReady" )
const ( // Name to label most of the KCM-related components. // Mostly utilized by the backup feature. GenericComponentNameLabel = "k0rdent.mirantis.com/component" // Component label value for the KCM-related components. GenericComponentLabelValueKCM = "kcm" )
const ( CoreKCMName = "kcm" CoreCAPIName = "capi" ManagementKind = "Management" ManagementName = "kcm" ManagementFinalizer = "k0rdent.mirantis.com/management" K0rdentManagementClusterLabelKey = "k0rdent.mirantis.com/management-cluster" K0rdentManagementClusterLabelValue = "true" )
const ( // AllComponentsHealthyReason surfaces overall readiness of Management's components. AllComponentsHealthyReason = "AllComponentsHealthy" // NotAllComponentsHealthyReason documents a condition not in Status=True because one or more components are failing. NotAllComponentsHealthyReason = "NotAllComponentsHealthy" // ReleaseIsNotFoundReason declares that the referenced in the [Management] [Release] object does not (yet) exist. ReleaseIsNotFoundReason = "ReleaseIsNotFound" // ReleaseIsNotReadyReason declares that the referenced in the [Management] [Release] object is not (yet) ready. ReleaseIsNotReadyReason = "ReleaseIsNotReady" // HasIncompatibleContractsReason declares that the [Management] object has incompatible CAPI contracts in providers. HasIncompatibleContractsReason = "HasIncompatibleContracts" )
const ( // MultiClusterServiceFinalizer is finalizer applied to MultiClusterService objects. MultiClusterServiceFinalizer = "k0rdent.mirantis.com/multicluster-service" // MultiClusterServiceKind is the string representation of a MultiClusterServiceKind. MultiClusterServiceKind = "MultiClusterService" )
const ( // 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" // ServicesInReadyStateCondition shows the number of multiclusterservices or clusterdeployments // services that are ready. A service is marked as ready if all its conditions are ready. // The format is "<ready-num>/<total-num>", e.g. "2/3" where 2 services of total 3 are ready. ServicesInReadyStateCondition = "ServicesInReadyState" // ClusterInReadyStateCondition shows the number of clusters that are ready. // A Cluster is ready if corresponding ClusterDeployment is ready. // The format is "<ready-num>/<total-num>", e.g. "2/3" where 2 clusters of total 3 are ready. ClusterInReadyStateCondition = "ClusterInReadyState" // ServicesReferencesValidationCondition defines the condition of services' references validation. ServicesReferencesValidationCondition = "ServicesReferencesValidation" )
const ( // ServicesReferencesValidationFailedReason signals that the validation for references related to services (KSM) failed. ServicesReferencesValidationFailedReason = "ServicesReferencesValidationFailed" // ServicesReferencesValidationSucceededReason signals that the validation for references related to services (KSM) succeeded. ServicesReferencesValidationSucceededReason = "ServicesReferencesValidationSucceeded" // SveltosProfileNotReadyReason signals that the Sveltos Profile object is not yet ready. SveltosProfileNotReadyReason = "SveltosProfileNotReady" // SveltosClusterProfileNotReadyReason signals that the Sveltos ClusterProfile object is not yet ready. SveltosClusterProfileNotReadyReason = "SveltosClusterProfileNotReady" // FetchServicesStatusFailedReason signals that fetching the status of services from Sveltos objects failed. FetchServicesStatusFailedReason = "FetchServicesStatusFailed" // SveltosHelmReleaseNotReadyReason signals that the helm release managed by Sveltos on target cluster is not yet ready. SveltosHelmReleaseNotReadyReason = "SveltosHelmReleaseNotReady" // SveltosFeatureReadyReason signals that the feature managed by Sveltos on target cluster is ready. SveltosFeatureReadyReason = "SveltosFeatureReady" // SveltosFeatureNotReadyReason signals that the feature managed by Sveltos on target cluster is not yet ready. SveltosFeatureNotReadyReason = "SveltosFeatureNotReady" )
Reasons are provided as utility, and not part of the declarative API.
const ( // ProviderInterfaceKind represents the kind for provider interfaces ProviderInterfaceKind = "ProviderInterface" // InfrastructureProviderPrefix is the prefix used for infrastructure provider names InfrastructureProviderPrefix = "infrastructure-" )
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 ( // ServiceTemplateKind 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 = "k0rdent.mirantis.com/k8s-version-constraint" SecretKind = "Secret" ConfigMapKind = "ConfigMap" )
const ClusterDeploymentCredentialIndexKey = ".spec.credential"
ClusterDeploymentCredentialIndexKey indexer field name to extract Credential name reference from a ClusterDeployment object.
const ClusterDeploymentServiceTemplateChainIndexKey = ".spec.serviceSpec.services[].templateChain"
ClusterDeploymentServiceTemplateChainIndexKey indexer field name to extract service template chain name from a ClusterDeployment object.
const ClusterDeploymentServiceTemplatesIndexKey = ".spec.services[].Template"
ClusterDeploymentServiceTemplatesIndexKey indexer field name to extract service templates names from a ClusterDeployment object.
const ClusterDeploymentTemplateIndexKey = ".spec.template"
ClusterDeploymentTemplateIndexKey indexer field name to extract ClusterTemplate name reference from a ClusterDeployment object.
const ClusterTemplateChainKind = "ClusterTemplateChain"
const ClusterTemplateProvidersIndexKey = "clusterTemplateProviders"
ClusterTemplateProvidersIndexKey indexer field name to extract provider names from a ClusterTemplate object.
const (
DefaultRepoName = "kcm-templates"
)
const ManagementBackupAutoUpgradeIndexKey = "k0rdent.management-backup-upgrades"
ManagementBackupAutoUpgradeIndexKey indexer field name to extract only ManagementBackup objects with schedule and auto-upgrade set.
const ManagementBackupIndexKey = "k0rdent.management-backup"
ManagementBackupIndexKey indexer field name to extract only ManagementBackup objects that either has schedule or has NOT been completed yet.
const MultiClusterServiceTemplateChainIndexKey = ".spec.serviceSpec.services[].templateChain"
MultiClusterServiceTemplateChainIndexKey indexer field name to extract template chain names from a MultiClusterService 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 ProviderInterfaceInfrastructureIndexKey = "k0rdent.provider.interface.infrastructure"
ProviderInterfaceInfrastructureIndexKey indexer field name to extract exposed infrastructure providers with the `infrastructure-` prefix from ProviderInterface object.
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: "k0rdent.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 ExtractProviderInterfaceInfrastructure ¶ added in v0.3.0
ExtractProviderInterfaceInfrastructure returns the list of exposed infrastructure providers from ProviderInterface object.
func ExtractProvidersFromClusterTemplate ¶
ExtractProvidersFromClusterTemplate returns provider names from a ClusterTemplate object.
func ExtractScheduledOrIncompleteBackups ¶ added in v0.2.0
ExtractScheduledOrIncompleteBackups returns either scheduled or incomplete backups.
func ExtractServiceTemplateChainNameFromClusterDeployment ¶ added in v1.0.0
ExtractServiceTemplateChainNameFromClusterDeployment returns a list of service template chain names declared in a ClusterDeployment object.
func ExtractServiceTemplateChainNamesFromMultiClusterService ¶ added in v1.0.0
ExtractServiceTemplateChainNamesFromMultiClusterService returns a list of template chain names declared in a MultiClusterService object.
func ExtractServiceTemplateNamesFromClusterDeployment ¶
ExtractServiceTemplateNamesFromClusterDeployment returns a list of service templates names declared in a ClusterDeployment object.
func ExtractServiceTemplateNamesFromMultiClusterService ¶
ExtractServiceTemplateNamesFromMultiClusterService returns a list of service templates names declared in a MultiClusterService object.
func ExtractTemplateNameFromClusterDeployment ¶
ExtractTemplateNameFromClusterDeployment returns referenced ClusterTemplate name declared in a ClusterDeployment object.
Types ¶
type AccessManagement ¶
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 ¶
func (in *AccessManagement) DeepCopy() *AccessManagement
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessManagement.
func (*AccessManagement) DeepCopyInto ¶
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 ¶
func (in *AccessManagement) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AccessManagementList ¶
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 ¶
func (in *AccessManagementList) DeepCopy() *AccessManagementList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessManagementList.
func (*AccessManagementList) DeepCopyInto ¶
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 ¶
func (in *AccessManagementList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AccessManagementSpec ¶
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 ¶
func (in *AccessManagementSpec) DeepCopy() *AccessManagementSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessManagementSpec.
func (*AccessManagementSpec) DeepCopyInto ¶
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 ¶
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 ¶
func (in *AccessManagementStatus) DeepCopy() *AccessManagementStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessManagementStatus.
func (*AccessManagementStatus) DeepCopyInto ¶
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 ¶
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 ¶
func (in *AccessRule) DeepCopy() *AccessRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessRule.
func (*AccessRule) DeepCopyInto ¶
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 ¶
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 ¶
func (in *AvailableUpgrade) DeepCopy() *AvailableUpgrade
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AvailableUpgrade.
func (*AvailableUpgrade) DeepCopyInto ¶
func (in *AvailableUpgrade) DeepCopyInto(out *AvailableUpgrade)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterDeployment ¶
type ClusterDeployment struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ClusterDeploymentSpec `json:"spec,omitempty"`
Status ClusterDeploymentStatus `json:"status,omitempty"`
}
ClusterDeployment is the Schema for the ClusterDeployments API
func (*ClusterDeployment) AddHelmValues ¶ added in v0.0.7
func (in *ClusterDeployment) AddHelmValues(fn func(map[string]any) error) error
func (*ClusterDeployment) DeepCopy ¶
func (in *ClusterDeployment) DeepCopy() *ClusterDeployment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDeployment.
func (*ClusterDeployment) DeepCopyInto ¶
func (in *ClusterDeployment) DeepCopyInto(out *ClusterDeployment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDeployment) DeepCopyObject ¶
func (in *ClusterDeployment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterDeployment) GetConditions ¶
func (in *ClusterDeployment) GetConditions() *[]metav1.Condition
func (*ClusterDeployment) HelmValues ¶
func (in *ClusterDeployment) HelmValues() (map[string]any, error)
func (*ClusterDeployment) SetHelmValues ¶ added in v0.0.7
func (in *ClusterDeployment) SetHelmValues(values map[string]any) error
type ClusterDeploymentList ¶
type ClusterDeploymentList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ClusterDeployment `json:"items"`
}
ClusterDeploymentList contains a list of ClusterDeployment
func (*ClusterDeploymentList) DeepCopy ¶
func (in *ClusterDeploymentList) DeepCopy() *ClusterDeploymentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDeploymentList.
func (*ClusterDeploymentList) DeepCopyInto ¶
func (in *ClusterDeploymentList) DeepCopyInto(out *ClusterDeploymentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterDeploymentList) DeepCopyObject ¶
func (in *ClusterDeploymentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterDeploymentSpec ¶
type ClusterDeploymentSpec 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"`
// ServiceSpec is spec related to deployment of services.
ServiceSpec ServiceSpec `json:"serviceSpec,omitempty"`
// DryRun specifies whether the template should be applied after validation or only validated.
DryRun bool `json:"dryRun,omitempty"`
// PropagateCredentials indicates whether credentials should be propagated
// for use by CCM (Cloud Controller Manager).
PropagateCredentials bool `json:"propagateCredentials,omitempty"`
}
ClusterDeploymentSpec defines the desired state of ClusterDeployment
func (*ClusterDeploymentSpec) DeepCopy ¶
func (in *ClusterDeploymentSpec) DeepCopy() *ClusterDeploymentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDeploymentSpec.
func (*ClusterDeploymentSpec) DeepCopyInto ¶
func (in *ClusterDeploymentSpec) DeepCopyInto(out *ClusterDeploymentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterDeploymentStatus ¶
type ClusterDeploymentStatus struct {
// Services contains details for the state of services.
Services []ServiceStatus `json:"services,omitempty"`
// ServicesUpgradePaths contains details for the state of services upgrade paths.
ServicesUpgradePaths []ServiceUpgradePaths `json:"servicesUpgradePaths,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 ClusterDeployment.
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"`
}
ClusterDeploymentStatus defines the observed state of ClusterDeployment
func (*ClusterDeploymentStatus) DeepCopy ¶
func (in *ClusterDeploymentStatus) DeepCopy() *ClusterDeploymentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterDeploymentStatus.
func (*ClusterDeploymentStatus) DeepCopyInto ¶
func (in *ClusterDeploymentStatus) DeepCopyInto(out *ClusterDeploymentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterTemplate ¶
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 ¶
func (in *ClusterTemplate) DeepCopy() *ClusterTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplate.
func (*ClusterTemplate) DeepCopyInto ¶
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 ¶
func (in *ClusterTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterTemplate) FillStatusWithProviders ¶
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 ¶
func (t *ClusterTemplate) GetCommonStatus() *TemplateStatusCommon
GetCommonStatus returns common status of the Template.
func (*ClusterTemplate) GetHelmSpec ¶
func (t *ClusterTemplate) GetHelmSpec() *HelmSpec
GetHelmSpec returns .spec.helm of the Template.
func (*ClusterTemplate) GetSpecProviders ¶
func (t *ClusterTemplate) GetSpecProviders() Providers
GetSpecProviders returns .spec.providers of the Template.
type ClusterTemplateChain ¶
type ClusterTemplateChain struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TemplateChainSpec `json:"spec,omitempty"`
Status TemplateChainStatus `json:"status,omitempty"`
}
ClusterTemplateChain is the Schema for the clustertemplatechains API
func (*ClusterTemplateChain) DeepCopy ¶
func (in *ClusterTemplateChain) DeepCopy() *ClusterTemplateChain
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateChain.
func (*ClusterTemplateChain) DeepCopyInto ¶
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 ¶
func (in *ClusterTemplateChain) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ClusterTemplateChain) GetSpec ¶
func (t *ClusterTemplateChain) GetSpec() *TemplateChainSpec
func (*ClusterTemplateChain) GetStatus ¶ added in v0.3.0
func (t *ClusterTemplateChain) GetStatus() *TemplateChainStatus
func (*ClusterTemplateChain) Kind ¶
func (*ClusterTemplateChain) Kind() string
func (*ClusterTemplateChain) TemplateKind ¶
func (*ClusterTemplateChain) TemplateKind() string
type ClusterTemplateChainList ¶
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 ¶
func (in *ClusterTemplateChainList) DeepCopy() *ClusterTemplateChainList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateChainList.
func (*ClusterTemplateChainList) DeepCopyInto ¶
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 ¶
func (in *ClusterTemplateChainList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterTemplateList ¶
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 ¶
func (in *ClusterTemplateList) DeepCopy() *ClusterTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateList.
func (*ClusterTemplateList) DeepCopyInto ¶
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 ¶
func (in *ClusterTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterTemplateSpec ¶
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 ¶
func (in *ClusterTemplateSpec) DeepCopy() *ClusterTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateSpec.
func (*ClusterTemplateSpec) DeepCopyInto ¶
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 ¶
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 ¶
func (in *ClusterTemplateStatus) DeepCopy() *ClusterTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterTemplateStatus.
func (*ClusterTemplateStatus) DeepCopyInto ¶
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 ¶
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 ¶
func (in CompatibilityContracts) DeepCopy() CompatibilityContracts
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CompatibilityContracts.
func (CompatibilityContracts) DeepCopyInto ¶
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 KCM 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"`
// ExposedProviders is a list of CAPI providers this component exposes
ExposedProviders Providers `json:"exposedProviders,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 {
// KCM represents the core KCM component and references the KCM template.
KCM Component `json:"kcm,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 ¶
type CoreProviderTemplate struct {
// Template references the Template associated with the provider.
Template string `json:"template"`
}
func (*CoreProviderTemplate) DeepCopy ¶
func (in *CoreProviderTemplate) DeepCopy() *CoreProviderTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CoreProviderTemplate.
func (*CoreProviderTemplate) DeepCopyInto ¶
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 ¶
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 ¶
func (in *Credential) DeepCopy() *Credential
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Credential.
func (*Credential) DeepCopyInto ¶
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 ¶
func (in *Credential) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Credential) GetConditions ¶
func (in *Credential) GetConditions() *[]metav1.Condition
type CredentialList ¶
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 ¶
func (in *CredentialList) DeepCopy() *CredentialList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialList.
func (*CredentialList) DeepCopyInto ¶
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 ¶
func (in *CredentialList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CredentialSpec ¶
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 ¶
func (in *CredentialSpec) DeepCopy() *CredentialSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialSpec.
func (*CredentialSpec) DeepCopyInto ¶
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 ¶
type CredentialStatus struct {
// Conditions contains details for the current state of the Credential.
Conditions []metav1.Condition `json:"conditions,omitempty"`
// Ready holds the readiness of Credentials.
Ready bool `json:"ready"`
}
CredentialStatus defines the observed state of Credential
func (*CredentialStatus) DeepCopy ¶
func (in *CredentialStatus) DeepCopy() *CredentialStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CredentialStatus.
func (*CredentialStatus) DeepCopyInto ¶
func (in *CredentialStatus) DeepCopyInto(out *CredentialStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EmbeddedBucketSpec ¶ added in v0.2.0
type EmbeddedBucketSpec struct {
sourcev1.BucketSpec `json:",inline"`
}
EmbeddedBucketSpec is the embedded github.com/fluxcd/source-controller/api/v1.BucketSpec.
func (*EmbeddedBucketSpec) DeepCopy ¶ added in v0.2.0
func (in *EmbeddedBucketSpec) DeepCopy() *EmbeddedBucketSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedBucketSpec.
func (*EmbeddedBucketSpec) DeepCopyInto ¶ added in v0.2.0
func (in *EmbeddedBucketSpec) DeepCopyInto(out *EmbeddedBucketSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EmbeddedGitRepositorySpec ¶ added in v0.2.0
type EmbeddedGitRepositorySpec struct {
sourcev1.GitRepositorySpec `json:",inline"`
}
EmbeddedGitRepositorySpec is the embedded github.com/fluxcd/source-controller/api/v1.GitRepositorySpec.
func (*EmbeddedGitRepositorySpec) DeepCopy ¶ added in v0.2.0
func (in *EmbeddedGitRepositorySpec) DeepCopy() *EmbeddedGitRepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedGitRepositorySpec.
func (*EmbeddedGitRepositorySpec) DeepCopyInto ¶ added in v0.2.0
func (in *EmbeddedGitRepositorySpec) DeepCopyInto(out *EmbeddedGitRepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EmbeddedOCIRepositorySpec ¶ added in v0.2.0
type EmbeddedOCIRepositorySpec struct {
sourcev1beta2.OCIRepositorySpec `json:",inline"`
}
EmbeddedOCIRepositorySpec is the embedded github.com/fluxcd/source-controller/api/v1beta2.OCIRepositorySpec.
func (*EmbeddedOCIRepositorySpec) DeepCopy ¶ added in v0.2.0
func (in *EmbeddedOCIRepositorySpec) DeepCopy() *EmbeddedOCIRepositorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EmbeddedOCIRepositorySpec.
func (*EmbeddedOCIRepositorySpec) DeepCopyInto ¶ added in v0.2.0
func (in *EmbeddedOCIRepositorySpec) DeepCopyInto(out *EmbeddedOCIRepositorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GroupVersionKind ¶ added in v0.3.0
type GroupVersionKind struct {
Group string `json:"group"`
Version string `json:"version"`
Kind string `json:"kind"`
}
GroupVersionKind unambiguously identifies a kind. It doesn't anonymously include GroupVersion to avoid automatic coercion. It doesn't use a GroupVersion to avoid custom marshalling Note: mirror of https://github.com/kubernetes/apimachinery/blob/v0.32.3/pkg/runtime/schema/group_version.go#L140-L146
func (*GroupVersionKind) DeepCopy ¶ added in v0.3.0
func (in *GroupVersionKind) DeepCopy() *GroupVersionKind
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionKind.
func (*GroupVersionKind) DeepCopyInto ¶ added in v0.3.0
func (in *GroupVersionKind) DeepCopyInto(out *GroupVersionKind)
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"`
// ChartSource is a source of a Helm chart representing the template.
ChartSource *SourceSpec `json:"chartSource,omitempty"`
}
HelmSpec references a Helm chart representing the KCM 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 LocalSourceRef ¶ added in v0.2.0
type LocalSourceRef struct {
// Kind is the kind of the local source.
Kind string `json:"kind"`
// Name is the name of the local source.
Name string `json:"name"`
// Namespace is the namespace of the local source. Cross-namespace references
// are only allowed when the Kind is one of [github.com/fluxcd/source-controller/api/v1.GitRepository],
// [github.com/fluxcd/source-controller/api/v1.Bucket] or [github.com/fluxcd/source-controller/api/v1beta2.OCIRepository].
// If the Kind is ConfigMap or Secret, the namespace will be ignored.
Namespace string `json:"namespace,omitempty"`
}
LocalSourceRef defines the reference to the local resource to be used as the source.
func (*LocalSourceRef) DeepCopy ¶ added in v0.2.0
func (in *LocalSourceRef) DeepCopy() *LocalSourceRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalSourceRef.
func (*LocalSourceRef) DeepCopyInto ¶ added in v0.2.0
func (in *LocalSourceRef) DeepCopyInto(out *LocalSourceRef)
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 ¶
func (in *Management) Templates() []string
Templates returns a list of provider templates explicitly defined in the Management object
type ManagementBackup ¶
type ManagementBackup struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ManagementBackupSpec `json:"spec,omitempty"`
Status ManagementBackupStatus `json:"status,omitempty"`
}
ManagementBackup is the Schema for the managementbackups API
func (*ManagementBackup) DeepCopy ¶
func (in *ManagementBackup) DeepCopy() *ManagementBackup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementBackup.
func (*ManagementBackup) DeepCopyInto ¶
func (in *ManagementBackup) DeepCopyInto(out *ManagementBackup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagementBackup) DeepCopyObject ¶ added in v0.1.0
func (in *ManagementBackup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ManagementBackup) IsCompleted ¶ added in v0.1.0
func (s *ManagementBackup) IsCompleted() bool
IsCompleted checks if the latest underlaying backup has been completed.
func (*ManagementBackup) IsSchedule ¶ added in v0.1.0
func (s *ManagementBackup) IsSchedule() bool
IsSchedule checks if an instance of ManagementBackup is schedulable.
func (*ManagementBackup) TimestampedBackupName ¶ added in v0.1.0
func (s *ManagementBackup) TimestampedBackupName(timestamp time.Time) string
TimestampedBackupName returns the backup name related to scheduled ManagementBackup based on the given timestamp.
type ManagementBackupList ¶ added in v0.1.0
type ManagementBackupList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ManagementBackup `json:"items"`
}
ManagementBackupList contains a list of ManagementBackup
func (*ManagementBackupList) DeepCopy ¶ added in v0.1.0
func (in *ManagementBackupList) DeepCopy() *ManagementBackupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementBackupList.
func (*ManagementBackupList) DeepCopyInto ¶ added in v0.1.0
func (in *ManagementBackupList) DeepCopyInto(out *ManagementBackupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManagementBackupList) DeepCopyObject ¶ added in v0.1.0
func (in *ManagementBackupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManagementBackupSpec ¶ added in v0.1.0
type ManagementBackupSpec struct {
// StorageLocation is the name of a [github.com/vmware-tanzu/velero/pkg/apis/velero/v1.StorageLocation]
// where the backup should be stored.
StorageLocation string `json:"storageLocation,omitempty"`
// Schedule is a Cron expression defining when to run the scheduled [ManagementBackup].
// If not set, the object is considered to be run only once.
Schedule string `json:"schedule,omitempty"`
// PerformOnManagementUpgrade indicates that a single [ManagementBackup]
// should be created and stored in the [ManagementBackup] storage location if not default
// before the [Management] release upgrade.
PerformOnManagementUpgrade bool `json:"performOnManagementUpgrade,omitempty"`
}
ManagementBackupSpec defines the desired state of ManagementBackup
func (*ManagementBackupSpec) DeepCopy ¶ added in v0.1.0
func (in *ManagementBackupSpec) DeepCopy() *ManagementBackupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementBackupSpec.
func (*ManagementBackupSpec) DeepCopyInto ¶ added in v0.1.0
func (in *ManagementBackupSpec) DeepCopyInto(out *ManagementBackupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManagementBackupStatus ¶ added in v0.1.0
type ManagementBackupStatus struct {
// NextAttempt indicates the time when the next backup will be created.
// Always absent for a single [ManagementBackup].
NextAttempt *metav1.Time `json:"nextAttempt,omitempty"`
// Time of the most recently created [github.com/vmware-tanzu/velero/pkg/apis/velero/v1.Backup].
LastBackupTime *metav1.Time `json:"lastBackupTime,omitempty"`
// Most recently [github.com/vmware-tanzu/velero/pkg/apis/velero/v1.Backup] that has been created.
LastBackup *velerov1.BackupStatus `json:"lastBackup,omitempty"`
// Name of most recently created [github.com/vmware-tanzu/velero/pkg/apis/velero/v1.Backup].
LastBackupName string `json:"lastBackupName,omitempty"`
// Error stores messages in case of failed backup creation.
Error string `json:"error,omitempty"`
}
ManagementBackupStatus defines the observed state of ManagementBackup
func (*ManagementBackupStatus) DeepCopy ¶ added in v0.1.0
func (in *ManagementBackupStatus) DeepCopy() *ManagementBackupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManagementBackupStatus.
func (*ManagementBackupStatus) DeepCopyInto ¶ added in v0.1.0
func (in *ManagementBackupStatus) DeepCopyInto(out *ManagementBackupStatus)
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"`
}
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 KCM components and CAPI providers.
Components map[string]ComponentStatus `json:"components,omitempty"`
// Conditions represents the observations of a Management's current state.
Conditions []metav1.Condition `json:"conditions,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 ¶
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 ¶
func (in *MultiClusterService) DeepCopy() *MultiClusterService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterService.
func (*MultiClusterService) DeepCopyInto ¶
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 ¶
func (in *MultiClusterService) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MultiClusterServiceList ¶
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 ¶
func (in *MultiClusterServiceList) DeepCopy() *MultiClusterServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterServiceList.
func (*MultiClusterServiceList) DeepCopyInto ¶
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 ¶
func (in *MultiClusterServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MultiClusterServiceSpec ¶
type MultiClusterServiceSpec struct {
// ClusterSelector identifies target clusters to manage services on.
ClusterSelector metav1.LabelSelector `json:"clusterSelector,omitempty"`
// ServiceSpec is spec related to deployment of services.
ServiceSpec ServiceSpec `json:"serviceSpec,omitempty"`
}
MultiClusterServiceSpec defines the desired state of MultiClusterService
func (*MultiClusterServiceSpec) DeepCopy ¶
func (in *MultiClusterServiceSpec) DeepCopy() *MultiClusterServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterServiceSpec.
func (*MultiClusterServiceSpec) DeepCopyInto ¶
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 ¶
type MultiClusterServiceStatus struct {
// Services contains details for the state of services.
Services []ServiceStatus `json:"services,omitempty"`
// ServicesUpgradePaths contains details for the state of services upgrade paths.
ServicesUpgradePaths []ServiceUpgradePaths `json:"servicesUpgradePaths,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 ¶
func (in *MultiClusterServiceStatus) DeepCopy() *MultiClusterServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MultiClusterServiceStatus.
func (*MultiClusterServiceStatus) DeepCopyInto ¶
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 ¶
type NamedProviderTemplate struct {
CoreProviderTemplate `json:",inline"`
// Name of the provider.
Name string `json:"name"`
}
func (*NamedProviderTemplate) DeepCopy ¶
func (in *NamedProviderTemplate) DeepCopy() *NamedProviderTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedProviderTemplate.
func (*NamedProviderTemplate) DeepCopyInto ¶
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 ¶
type Provider struct {
Component `json:",inline"`
// Name of the provider.
Name string `json:"name"`
}
func (*Provider) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Provider.
func (*Provider) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderInterface ¶ added in v0.3.0
type ProviderInterface struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec ProviderInterfaceSpec `json:"spec,omitempty"`
Status ProviderInterfaceStatus `json:"status,omitempty"`
}
ProviderInterface is the Schema for the ProviderInterface API
func (*ProviderInterface) DeepCopy ¶ added in v0.3.0
func (in *ProviderInterface) DeepCopy() *ProviderInterface
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderInterface.
func (*ProviderInterface) DeepCopyInto ¶ added in v0.3.0
func (in *ProviderInterface) DeepCopyInto(out *ProviderInterface)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderInterface) DeepCopyObject ¶ added in v0.3.0
func (in *ProviderInterface) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderInterfaceList ¶ added in v0.3.0
type ProviderInterfaceList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []ProviderInterface `json:"items"`
}
ProviderInterfaceList contains a list of ProviderInterfaces
func (*ProviderInterfaceList) DeepCopy ¶ added in v0.3.0
func (in *ProviderInterfaceList) DeepCopy() *ProviderInterfaceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderInterfaceList.
func (*ProviderInterfaceList) DeepCopyInto ¶ added in v0.3.0
func (in *ProviderInterfaceList) DeepCopyInto(out *ProviderInterfaceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderInterfaceList) DeepCopyObject ¶ added in v0.3.0
func (in *ProviderInterfaceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderInterfaceSpec ¶ added in v0.3.0
type ProviderInterfaceSpec struct {
// Description provides a human-readable explanation of what this provider does
Description string `json:"description,omitempty"`
// ClusterGVKs defines the Group-Version-Kind resources this provider can manage
ClusterGVKs []GroupVersionKind `json:"clusterGVKs,omitempty"`
// ClusterIdentityKinds defines the Kind of identity objects supported by this provider
ClusterIdentityKinds []string `json:"clusterIdentityKinds,omitempty"`
}
ProviderInterfaceSpec defines the desired state of ProviderInterface
func (*ProviderInterfaceSpec) DeepCopy ¶ added in v0.3.0
func (in *ProviderInterfaceSpec) DeepCopy() *ProviderInterfaceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderInterfaceSpec.
func (*ProviderInterfaceSpec) DeepCopyInto ¶ added in v0.3.0
func (in *ProviderInterfaceSpec) DeepCopyInto(out *ProviderInterfaceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderInterfaceStatus ¶ added in v0.3.0
type ProviderInterfaceStatus struct {
// ExposedProviders contains the list of exposed provider
ExposedProviders string `json:"exposedProviders,omitempty"`
}
ProviderInterfaceStatus defines the observed state of ProviderInterface
func (*ProviderInterfaceStatus) DeepCopy ¶ added in v0.3.0
func (in *ProviderInterfaceStatus) DeepCopy() *ProviderInterfaceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderInterfaceStatus.
func (*ProviderInterfaceStatus) DeepCopyInto ¶ added in v0.3.0
func (in *ProviderInterfaceStatus) DeepCopyInto(out *ProviderInterfaceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderTemplate ¶
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 ¶
func (in *ProviderTemplate) DeepCopy() *ProviderTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderTemplate.
func (*ProviderTemplate) DeepCopyInto ¶
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 ¶
func (in *ProviderTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ProviderTemplate) FillStatusWithProviders ¶
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 ¶
func (t *ProviderTemplate) GetCommonStatus() *TemplateStatusCommon
GetCommonStatus returns common status of the Template.
func (*ProviderTemplate) GetHelmSpec ¶
func (t *ProviderTemplate) GetHelmSpec() *HelmSpec
GetHelmSpec returns .spec.helm of the Template.
type ProviderTemplateList ¶
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 ¶
func (in *ProviderTemplateList) DeepCopy() *ProviderTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderTemplateList.
func (*ProviderTemplateList) DeepCopyInto ¶
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 ¶
func (in *ProviderTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderTemplateSpec ¶
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 ¶
func (in *ProviderTemplateSpec) DeepCopy() *ProviderTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderTemplateSpec.
func (*ProviderTemplateSpec) DeepCopyInto ¶
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 ¶
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 ¶
func (in *ProviderTemplateStatus) DeepCopy() *ProviderTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderTemplateStatus.
func (*ProviderTemplateStatus) DeepCopyInto ¶
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 ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Release.
func (*Release) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Release) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Release) ProviderTemplate ¶
type ReleaseList ¶
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 ¶
func (in *ReleaseList) DeepCopy() *ReleaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseList.
func (*ReleaseList) DeepCopyInto ¶
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 ¶
func (in *ReleaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ReleaseSpec ¶
type ReleaseSpec struct {
// Version of the KCM Release in the semver format.
Version string `json:"version"`
// KCM references the KCM template.
KCM CoreProviderTemplate `json:"kcm"`
// 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 ¶
func (in *ReleaseSpec) DeepCopy() *ReleaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseSpec.
func (*ReleaseSpec) DeepCopyInto ¶
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 ¶
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 KCM is ready to be upgraded to this Release.
Ready bool `json:"ready,omitempty"`
}
ReleaseStatus defines the observed state of Release
func (*ReleaseStatus) DeepCopy ¶
func (in *ReleaseStatus) DeepCopy() *ReleaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseStatus.
func (*ReleaseStatus) DeepCopyInto ¶
func (in *ReleaseStatus) DeepCopyInto(out *ReleaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RemoteSourceSpec ¶ added in v0.2.0
type RemoteSourceSpec struct {
// Git is the definition of git repository source.
Git *EmbeddedGitRepositorySpec `json:"git,omitempty"`
// Bucket is the definition of bucket source.
Bucket *EmbeddedBucketSpec `json:"bucket,omitempty"`
// OCI is the definition of OCI repository source.
OCI *EmbeddedOCIRepositorySpec `json:"oci,omitempty"`
}
RemoteSourceSpec defines the desired state of the remote source (Git, Bucket, OCI).
func (*RemoteSourceSpec) DeepCopy ¶ added in v0.2.0
func (in *RemoteSourceSpec) DeepCopy() *RemoteSourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteSourceSpec.
func (*RemoteSourceSpec) DeepCopyInto ¶ added in v0.2.0
func (in *RemoteSourceSpec) DeepCopyInto(out *RemoteSourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Service ¶ added in v0.0.7
type Service 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"`
// TemplateChain defines the ServiceTemplateChain object that will be used to deploy the service
// along with desired ServiceTemplate version.
TemplateChain string `json:"templateChain,omitempty"`
// 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"`
// ValuesFrom can reference a ConfigMap or Secret containing helm values.
ValuesFrom []sveltosv1beta1.ValueFrom `json:"valuesFrom,omitempty"`
// Disable can be set to disable handling of this service.
Disable bool `json:"disable,omitempty"`
}
Service represents a Service to be deployed.
func (*Service) DeepCopy ¶ added in v0.0.7
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Service.
func (*Service) DeepCopyInto ¶ added in v0.0.7
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceSpec ¶
type ServiceSpec struct {
// SyncMode specifies how services are synced in the target cluster.
SyncMode string `json:"syncMode,omitempty"`
// Services is a list of services created via ServiceTemplates
// that could be installed on the target cluster.
Services []Service `json:"services,omitempty"`
// TemplateResourceRefs is a list of resources to collect from the management cluster,
// the values from which can be used in templates.
TemplateResourceRefs []sveltosv1beta1.TemplateResourceRef `json:"templateResourceRefs,omitempty"`
// DriftIgnore specifies resources to ignore for drift detection.
DriftIgnore []libsveltosv1beta1.PatchSelector `json:"driftIgnore,omitempty"`
// DriftExclusions specifies specific configurations of resources to ignore for drift detection.
DriftExclusions []sveltosv1beta1.DriftExclusion `json:"driftExclusions,omitempty"`
// Priority 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.
Priority int32 `json:"priority,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"`
// Reload instances via rolling upgrade when a ConfigMap/Secret mounted as volume is modified.
Reload bool `json:"reload,omitempty"`
// ContinueOnError specifies if the services deployment should continue if an error occurs.
ContinueOnError bool `json:"continueOnError,omitempty"`
}
ServiceSpec contains all the spec related to deployment of services.
func (*ServiceSpec) DeepCopy ¶
func (in *ServiceSpec) DeepCopy() *ServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceSpec.
func (*ServiceSpec) DeepCopyInto ¶
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 ¶
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 ¶
func (in *ServiceStatus) DeepCopy() *ServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceStatus.
func (*ServiceStatus) DeepCopyInto ¶
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 ¶
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 ¶
func (in *ServiceTemplate) DeepCopy() *ServiceTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplate.
func (*ServiceTemplate) DeepCopyInto ¶
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 ¶
func (in *ServiceTemplate) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceTemplate) FillStatusWithProviders ¶
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 ¶
func (t *ServiceTemplate) GetCommonStatus() *TemplateStatusCommon
GetCommonStatus returns common status of the Template.
func (*ServiceTemplate) GetHelmSpec ¶
func (t *ServiceTemplate) GetHelmSpec() *HelmSpec
GetHelmSpec returns .spec.helm of the Template.
func (*ServiceTemplate) HelmChartRef ¶ added in v0.3.0
func (t *ServiceTemplate) HelmChartRef() *helmcontrollerv2.CrossNamespaceSourceReference
HelmChartRef returns the ChartRef of the ServiceTemplate if defined, otherwise returns nil.
func (*ServiceTemplate) HelmChartSpec ¶ added in v0.3.0
func (t *ServiceTemplate) HelmChartSpec() *sourcev1.HelmChartSpec
HelmChartSpec returns the ChartSpec of the ServiceTemplate if defined, otherwise returns nil.
func (*ServiceTemplate) LocalSourceObject ¶ added in v0.3.0
func (t *ServiceTemplate) LocalSourceObject() (client.Object, string)
LocalSourceObject returns the client.Object and kind of the defined local source. If the ServiceTemplate does not reference a local source, it returns nil.
func (*ServiceTemplate) LocalSourceRef ¶ added in v0.2.0
func (t *ServiceTemplate) LocalSourceRef() *LocalSourceRef
LocalSourceRef returns the LocalSourceRef of the ServiceTemplate if defined, otherwise returns nil.
func (*ServiceTemplate) RemoteSourceObject ¶ added in v0.3.0
func (t *ServiceTemplate) RemoteSourceObject() (client.Object, string)
RemoteSourceObject returns the client.Object and kind of the defined remote source. If the ServiceTemplate does not define a remote source, returns nil and empty string.
func (*ServiceTemplate) RemoteSourceSpec ¶ added in v0.2.0
func (t *ServiceTemplate) RemoteSourceSpec() *RemoteSourceSpec
RemoteSourceSpec returns the RemoteSourceSpec of the ServiceTemplate if defined, otherwise returns nil.
type ServiceTemplateChain ¶
type ServiceTemplateChain struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Spec TemplateChainSpec `json:"spec,omitempty"`
Status TemplateChainStatus `json:"status,omitempty"`
}
ServiceTemplateChain is the Schema for the servicetemplatechains API
func (*ServiceTemplateChain) DeepCopy ¶
func (in *ServiceTemplateChain) DeepCopy() *ServiceTemplateChain
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateChain.
func (*ServiceTemplateChain) DeepCopyInto ¶
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 ¶
func (in *ServiceTemplateChain) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ServiceTemplateChain) GetSpec ¶
func (t *ServiceTemplateChain) GetSpec() *TemplateChainSpec
func (*ServiceTemplateChain) GetStatus ¶ added in v0.3.0
func (t *ServiceTemplateChain) GetStatus() *TemplateChainStatus
func (*ServiceTemplateChain) Kind ¶
func (*ServiceTemplateChain) Kind() string
func (*ServiceTemplateChain) TemplateKind ¶
func (*ServiceTemplateChain) TemplateKind() string
type ServiceTemplateChainList ¶
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 ¶
func (in *ServiceTemplateChainList) DeepCopy() *ServiceTemplateChainList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateChainList.
func (*ServiceTemplateChainList) DeepCopyInto ¶
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 ¶
func (in *ServiceTemplateChainList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceTemplateList ¶
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 ¶
func (in *ServiceTemplateList) DeepCopy() *ServiceTemplateList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateList.
func (*ServiceTemplateList) DeepCopyInto ¶
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 ¶
func (in *ServiceTemplateList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ServiceTemplateSpec ¶
type ServiceTemplateSpec struct {
// Helm contains the Helm chart information for the template.
Helm *HelmSpec `json:"helm,omitempty"`
// Kustomize contains the Kustomize configuration for the template.
Kustomize *SourceSpec `json:"kustomize,omitempty"`
// Resources contains the resource configuration for the template.
Resources *SourceSpec `json:"resources,omitempty"`
// Version is the semantic version of the application backed by template.
Version string `json:"version,omitempty"`
// Constraint describing compatible K8S versions of the cluster set in the SemVer format.
KubernetesConstraint string `json:"k8sConstraint,omitempty"`
}
ServiceTemplateSpec defines the desired state of ServiceTemplate
func (*ServiceTemplateSpec) DeepCopy ¶
func (in *ServiceTemplateSpec) DeepCopy() *ServiceTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateSpec.
func (*ServiceTemplateSpec) DeepCopyInto ¶
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 ¶
type ServiceTemplateStatus struct {
// Constraint describing compatible K8S versions of the cluster set in the SemVer format.
KubernetesConstraint string `json:"k8sConstraint,omitempty"`
// SourceStatus reflects the status of the source.
SourceStatus *SourceStatus `json:"sourceStatus,omitempty"`
TemplateStatusCommon `json:",inline"`
}
ServiceTemplateStatus defines the observed state of ServiceTemplate
func (*ServiceTemplateStatus) DeepCopy ¶
func (in *ServiceTemplateStatus) DeepCopy() *ServiceTemplateStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceTemplateStatus.
func (*ServiceTemplateStatus) DeepCopyInto ¶
func (in *ServiceTemplateStatus) DeepCopyInto(out *ServiceTemplateStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ServiceUpgradePaths ¶ added in v1.0.0
type ServiceUpgradePaths struct {
// Name is the name of the service.
Name string `json:"name"`
// Namespace is the namespace of the service.
Namespace string `json:"namespace"`
// Template is the name of the current service template.
Template string `json:"template"`
// AvailableUpgrades contains details for the state of available upgrades.
AvailableUpgrades []UpgradePath `json:"availableUpgrades,omitempty"`
}
ServiceUpgradePaths contains details for the state of service upgrade paths.
func (*ServiceUpgradePaths) DeepCopy ¶ added in v1.0.0
func (in *ServiceUpgradePaths) DeepCopy() *ServiceUpgradePaths
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ServiceUpgradePaths.
func (*ServiceUpgradePaths) DeepCopyInto ¶ added in v1.0.0
func (in *ServiceUpgradePaths) DeepCopyInto(out *ServiceUpgradePaths)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SourceSpec ¶ added in v0.2.0
type SourceSpec struct {
// LocalSourceRef is the local source of the kustomize manifest.
LocalSourceRef *LocalSourceRef `json:"localSourceRef,omitempty"`
// RemoteSourceSpec is the remote source of the kustomize manifest.
RemoteSourceSpec *RemoteSourceSpec `json:"remoteSourceSpec,omitempty"`
// DeploymentType is the type of the deployment. This field is ignored,
// when ResourceSpec is used as part of Helm chart configuration.
DeploymentType string `json:"deploymentType"`
// Path to the directory containing the resource manifest.
Path string `json:"path"`
}
SourceSpec defines the desired state of the source.
func (*SourceSpec) DeepCopy ¶ added in v0.2.0
func (in *SourceSpec) DeepCopy() *SourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceSpec.
func (*SourceSpec) DeepCopyInto ¶ added in v0.2.0
func (in *SourceSpec) DeepCopyInto(out *SourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SourceStatus ¶ added in v0.2.0
type SourceStatus struct {
// Kind is the kind of the remote source.
Kind string `json:"kind"`
// Name is the name of the remote source.
Name string `json:"name"`
// Namespace is the namespace of the remote source.
Namespace string `json:"namespace"`
// Artifact is the artifact that was generated from the template source.
Artifact *sourcev1.Artifact `json:"artifact,omitempty"`
// Conditions reflects the conditions of the remote source object.
Conditions []metav1.Condition `json:"conditions,omitempty"`
// ObservedGeneration is the latest source generation observed by the controller.
ObservedGeneration int64 `json:"observedGeneration,omitempty"`
}
SourceStatus reflects the status of the source.
func (*SourceStatus) DeepCopy ¶ added in v0.2.0
func (in *SourceStatus) DeepCopy() *SourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SourceStatus.
func (*SourceStatus) DeepCopyInto ¶ added in v0.2.0
func (in *SourceStatus) DeepCopyInto(out *SourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SupportedTemplate ¶
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 ¶
func (in *SupportedTemplate) DeepCopy() *SupportedTemplate
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportedTemplate.
func (*SupportedTemplate) DeepCopyInto ¶
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 ¶
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 ¶
func (in *TargetNamespaces) DeepCopy() *TargetNamespaces
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TargetNamespaces.
func (*TargetNamespaces) DeepCopyInto ¶
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 ¶
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 desired state of *TemplateChain
func (*TemplateChainSpec) DeepCopy ¶
func (in *TemplateChainSpec) DeepCopy() *TemplateChainSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateChainSpec.
func (*TemplateChainSpec) DeepCopyInto ¶
func (in *TemplateChainSpec) DeepCopyInto(out *TemplateChainSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TemplateChainSpec) IsValid ¶ added in v0.3.0
func (s *TemplateChainSpec) IsValid() (warnings []string, ok bool)
IsValid checks if the TemplateChainSpec is valid, otherwise provides warning messages.
func (*TemplateChainSpec) UpgradePaths ¶ added in v1.0.0
func (s *TemplateChainSpec) UpgradePaths(templateName string) ([]UpgradePath, error)
UpgradePaths returns shortest upgrade paths for the given template.
type TemplateChainStatus ¶ added in v0.3.0
type TemplateChainStatus struct {
// ValidationError provides information regarding issues encountered during templatechain validation.
ValidationError string `json:"validationError,omitempty"`
// Valid indicates whether the chain is valid and can be considered when calculating available
// upgrade paths.
Valid bool `json:"valid,omitempty"`
}
TemplateChainStatus defines the observed state of *TemplateChain
func (*TemplateChainStatus) DeepCopy ¶ added in v0.3.0
func (in *TemplateChainStatus) DeepCopy() *TemplateChainStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateChainStatus.
func (*TemplateChainStatus) DeepCopyInto ¶ added in v0.3.0
func (in *TemplateChainStatus) DeepCopyInto(out *TemplateChainStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TemplateStatusCommon ¶
type TemplateStatusCommon struct {
// Config demonstrates available parameters for template customization,
// that can be used when creating ClusterDeployment 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"`
// ChartVersion represents the version of the Helm Chart associated with this template.
ChartVersion string `json:"chartVersion,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 ¶
func (in *TemplateStatusCommon) DeepCopy() *TemplateStatusCommon
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TemplateStatusCommon.
func (*TemplateStatusCommon) DeepCopyInto ¶
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.
type UpgradePath ¶ added in v1.0.0
type UpgradePath struct {
// Versions contains the list of versions that service can be upgraded to.
Versions []string `json:"upgradePaths,omitempty"`
}
UpgradePath contains details for the state of service upgrade paths.
func (*UpgradePath) DeepCopy ¶ added in v1.0.0
func (in *UpgradePath) DeepCopy() *UpgradePath
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UpgradePath.
func (*UpgradePath) DeepCopyInto ¶ added in v1.0.0
func (in *UpgradePath) DeepCopyInto(out *UpgradePath)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files
¶
- accessmanagement_types.go
- clusterdeployment_types.go
- clustertemplate_types.go
- clustertemplatechain_types.go
- common.go
- compatibility_contract.go
- credential_types.go
- groupversion_info.go
- indexers.go
- management_backup_types.go
- management_types.go
- multiclusterservice_types.go
- providerinterface_types.go
- providertemplate_types.go
- release_types.go
- servicetemplate_types.go
- servicetemplatechain_types.go
- templatechain_common.go
- templates_common.go
- zz_generated.deepcopy.go