Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Base
- type BaseList
- type BaseSpec
- type ChartReference
- type Description
- type DescriptionDeployer
- type DescriptionList
- type DescriptionPhase
- type DescriptionSpec
- type DescriptionStatus
- type Feed
- type Globalization
- type GlobalizationList
- type GlobalizationSpec
- type HelmChart
- type HelmChartList
- type HelmChartPhase
- type HelmChartSpec
- type HelmChartStatus
- type HelmOptions
- type HelmRelease
- type HelmReleaseList
- type HelmReleaseSpec
- type HelmReleaseStatus
- type Localization
- type LocalizationList
- type LocalizationSpec
- type Manifest
- type ManifestList
- type OverrideConfig
- type OverridePolicy
- type OverrideType
- type Subscriber
- type Subscription
- type SubscriptionList
- type SubscriptionSpec
- type SubscriptionStatus
Constants ¶
const (
// objects will be store into Manifest with ReservedNamespace
ReservedNamespace = "clusternet-reserved"
)
const (
VERSION = "v1alpha1"
)
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: apps.GroupName, Version: VERSION}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Base ¶
type Base struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec BaseSpec `json:"spec"` }
Base represents the referenced resources/templates before rendering.
func (*Base) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Base.
func (*Base) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Base) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BaseList ¶
type BaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Base `json:"items"` }
BaseList contains a list of Base
func (*BaseList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaseList.
func (*BaseList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BaseList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type BaseSpec ¶
type BaseSpec struct { // Feeds // // +required // +kubebuilder:validation:Required Feeds []Feed `json:"feeds"` }
BaseSpec defines the desired state of Base
func (*BaseSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BaseSpec.
func (*BaseSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ChartReference ¶
type ChartReference struct { // Namespace of the HelmChart. // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string Namespace string `json:"namespace"` // Name of the HelmChart. // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string Name string `json:"name"` }
func (*ChartReference) DeepCopy ¶
func (in *ChartReference) DeepCopy() *ChartReference
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartReference.
func (*ChartReference) DeepCopyInto ¶
func (in *ChartReference) DeepCopyInto(out *ChartReference)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Description ¶
type Description struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec DescriptionSpec `json:"spec"` Status DescriptionStatus `json:"status,omitempty"` }
Description is the Schema for the resources to be installed
func (*Description) DeepCopy ¶
func (in *Description) DeepCopy() *Description
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Description.
func (*Description) DeepCopyInto ¶
func (in *Description) DeepCopyInto(out *Description)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Description) DeepCopyObject ¶
func (in *Description) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DescriptionDeployer ¶
type DescriptionDeployer string
const ( DescriptionHelmDeployer DescriptionDeployer = "Helm" DescriptionGenericDeployer DescriptionDeployer = "Generic" )
type DescriptionList ¶
type DescriptionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Description `json:"items"` }
DescriptionList contains a list of Description
func (*DescriptionList) DeepCopy ¶
func (in *DescriptionList) DeepCopy() *DescriptionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DescriptionList.
func (*DescriptionList) DeepCopyInto ¶
func (in *DescriptionList) DeepCopyInto(out *DescriptionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DescriptionList) DeepCopyObject ¶
func (in *DescriptionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type DescriptionPhase ¶
type DescriptionPhase string
const ( DescriptionPhaseSuccess DescriptionPhase = "Success" DescriptionPhaseFailure DescriptionPhase = "Failure" )
type DescriptionSpec ¶
type DescriptionSpec struct { // Deployer indicates the deployer for this Description // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string // +kubebuilder:validation:Enum=Helm;Generic Deployer DescriptionDeployer `json:"deployer"` // Charts describe all the helm charts to be installed // // +optional Charts []ChartReference `json:"charts,omitempty"` // Raw is the underlying serialization of all objects. // // +optional Raw [][]byte `json:"raw,omitempty"` }
DescriptionSpec defines the spec of Description
func (*DescriptionSpec) DeepCopy ¶
func (in *DescriptionSpec) DeepCopy() *DescriptionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DescriptionSpec.
func (*DescriptionSpec) DeepCopyInto ¶
func (in *DescriptionSpec) DeepCopyInto(out *DescriptionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DescriptionStatus ¶
type DescriptionStatus struct { // Phase denotes the phase of Description // +optional // +kubebuilder:validation:Enum=Pending;Success;Failure Phase DescriptionPhase `json:"phase,omitempty"` // Reason indicates the reason of DescriptionPhase // +optional Reason string `json:"reason,omitempty"` }
DescriptionStatus defines the observed state of Description
func (*DescriptionStatus) DeepCopy ¶
func (in *DescriptionStatus) DeepCopy() *DescriptionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DescriptionStatus.
func (*DescriptionStatus) DeepCopyInto ¶
func (in *DescriptionStatus) DeepCopyInto(out *DescriptionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Feed ¶
type Feed struct { // Kind is a string value representing the REST resource this object represents. // In CamelCase. // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string Kind string `json:"kind"` // APIVersion defines the versioned schema of this representation of an object. // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string APIVersion string `json:"apiVersion"` // Namespace of the target resource. // // +optional Namespace string `json:"namespace,omitempty"` // Name of the target resource. // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string Name string `json:"name"` }
Feed defines the resource to be selected.
func (*Feed) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Feed.
func (*Feed) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Globalization ¶
type Globalization struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec GlobalizationSpec `json:"spec"` }
Globalization represents the cluster-scoped override config for a group of resources.
func (*Globalization) DeepCopy ¶
func (in *Globalization) DeepCopy() *Globalization
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Globalization.
func (*Globalization) DeepCopyInto ¶
func (in *Globalization) DeepCopyInto(out *Globalization)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Globalization) DeepCopyObject ¶
func (in *Globalization) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GlobalizationList ¶
type GlobalizationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Globalization `json:"items"` }
GlobalizationList contains a list of Globalization
func (*GlobalizationList) DeepCopy ¶
func (in *GlobalizationList) DeepCopy() *GlobalizationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalizationList.
func (*GlobalizationList) DeepCopyInto ¶
func (in *GlobalizationList) DeepCopyInto(out *GlobalizationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*GlobalizationList) DeepCopyObject ¶
func (in *GlobalizationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type GlobalizationSpec ¶
type GlobalizationSpec struct { // OverridePolicy specifies the override policy for this Globalization. // // +optional // +kubebuilder:validation:Type=string // +kubebuilder:default=ApplyLater OverridePolicy OverridePolicy `json:"overridePolicy,omitempty"` // ClusterAffinity is a label query over managed clusters by labels. // If no labels are specified, all clusters will be selected. // // +optional ClusterAffinity *metav1.LabelSelector `json:"clusterAffinity,omitempty"` // Overrides holds all the OverrideConfig. // // +optional Overrides []OverrideConfig `json:"overrides,omitempty"` // Priority is an integer defining the relative importance of this Globalization compared to others. // Lower numbers are considered lower priority. // And these Globalization(s) will be applied by order from lower priority to higher. // That means override values in lower Globalization will be overridden by those in higher Globalization. // // +optional // +kubebuilder:validation:Maximum=1000 // +kubebuilder:validation:Minimum=0 // +kubebuilder:default=500 Priority int32 `json:"priority,omitempty"` // Feed holds references to the objects the Globalization applies to. // // +optional Feed `json:"feed,omitempty"` }
GlobalizationSpec defines the desired state of Globalization
func (*GlobalizationSpec) DeepCopy ¶
func (in *GlobalizationSpec) DeepCopy() *GlobalizationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GlobalizationSpec.
func (*GlobalizationSpec) DeepCopyInto ¶
func (in *GlobalizationSpec) DeepCopyInto(out *GlobalizationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmChart ¶
type HelmChart struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HelmChartSpec `json:"spec"` Status HelmChartStatus `json:"status,omitempty"` }
HelmChart is the Schema for the helm chart
func (*HelmChart) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChart.
func (*HelmChart) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HelmChart) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HelmChartList ¶
type HelmChartList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []HelmChart `json:"items"` }
HelmChartList contains a list of HelmChart
func (*HelmChartList) DeepCopy ¶
func (in *HelmChartList) DeepCopy() *HelmChartList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChartList.
func (*HelmChartList) DeepCopyInto ¶
func (in *HelmChartList) DeepCopyInto(out *HelmChartList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HelmChartList) DeepCopyObject ¶
func (in *HelmChartList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HelmChartPhase ¶
type HelmChartPhase string
const ( HelmChartFound HelmChartPhase = "Found" HelmChartNotFound HelmChartPhase = "NotFound" )
type HelmChartSpec ¶
type HelmChartSpec struct { HelmOptions `json:",inline"` // TargetNamespace specifies the namespace to install this HelmChart // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string TargetNamespace string `json:"targetNamespace"` }
HelmChartSpec defines the spec of HelmChart
func (*HelmChartSpec) DeepCopy ¶
func (in *HelmChartSpec) DeepCopy() *HelmChartSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChartSpec.
func (*HelmChartSpec) DeepCopyInto ¶
func (in *HelmChartSpec) DeepCopyInto(out *HelmChartSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmChartStatus ¶
type HelmChartStatus struct { // Phase denotes the phase of HelmChart // // +optional // +kubebuilder:validation:Enum=Found;NotFound Phase HelmChartPhase `json:"phase,omitempty"` // Reason indicates the reason of HelmChartPhase // // +optional Reason string `json:"reason,omitempty"` }
HelmChartStatus defines the observed state of HelmChart
func (*HelmChartStatus) DeepCopy ¶
func (in *HelmChartStatus) DeepCopy() *HelmChartStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmChartStatus.
func (*HelmChartStatus) DeepCopyInto ¶
func (in *HelmChartStatus) DeepCopyInto(out *HelmChartStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmOptions ¶
type HelmOptions struct { // a Helm Repository to be used. // such as, https://charts.bitnami.com/bitnami // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string // +kubebuilder:validation:Pattern=`^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#[\]@!\$&\(\)\*\+,;=.]+$` Repository string `json:"repo"` // Chart is the name of a Helm Chart in the Repository. // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string Chart string `json:"chart"` // ChartVersion is the version of the chart to be deployed. // It will be defaulted with current latest version if empty. // // +optional ChartVersion string `json:"version,omitempty"` }
func (*HelmOptions) DeepCopy ¶
func (in *HelmOptions) DeepCopy() *HelmOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmOptions.
func (*HelmOptions) DeepCopyInto ¶
func (in *HelmOptions) DeepCopyInto(out *HelmOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmRelease ¶
type HelmRelease struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec HelmReleaseSpec `json:"spec"` Status HelmReleaseStatus `json:"status,omitempty"` }
HelmRelease is the Schema for the helm release
func (*HelmRelease) DeepCopy ¶
func (in *HelmRelease) DeepCopy() *HelmRelease
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmRelease.
func (*HelmRelease) DeepCopyInto ¶
func (in *HelmRelease) DeepCopyInto(out *HelmRelease)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HelmRelease) DeepCopyObject ¶
func (in *HelmRelease) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HelmReleaseList ¶
type HelmReleaseList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []HelmRelease `json:"items"` }
HelmReleaseList contains a list of HelmRelease
func (*HelmReleaseList) DeepCopy ¶
func (in *HelmReleaseList) DeepCopy() *HelmReleaseList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmReleaseList.
func (*HelmReleaseList) DeepCopyInto ¶
func (in *HelmReleaseList) DeepCopyInto(out *HelmReleaseList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HelmReleaseList) DeepCopyObject ¶
func (in *HelmReleaseList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HelmReleaseSpec ¶
type HelmReleaseSpec struct { HelmOptions `json:",inline"` // TargetNamespace specifies the namespace to install the chart // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string TargetNamespace string `json:"targetNamespace"` }
HelmReleaseSpec defines the spec of HelmRelease
func (*HelmReleaseSpec) DeepCopy ¶
func (in *HelmReleaseSpec) DeepCopy() *HelmReleaseSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmReleaseSpec.
func (*HelmReleaseSpec) DeepCopyInto ¶
func (in *HelmReleaseSpec) DeepCopyInto(out *HelmReleaseSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmReleaseStatus ¶
type HelmReleaseStatus struct { // FirstDeployed is when the release was first deployed. // // +optional FirstDeployed string `json:"firstDeployed,omitempty"` // LastDeployed is when the release was last deployed. // // +optional LastDeployed string `json:"lastDeployed,omitempty"` // Description is human-friendly "log entry" about this release. // // +optional Description string `json:"description,omitempty"` // Phase is the current state of the release Phase release.Status `json:"phase,omitempty"` // Contains the rendered templates/NOTES.txt if available // // +optional Notes string `json:"notes,omitempty"` // Version is an int which represents the revision of the release. // // +optional Version int `json:"version,omitempty"` }
HelmReleaseStatus defines the observed state of HelmRelease
func (*HelmReleaseStatus) DeepCopy ¶
func (in *HelmReleaseStatus) DeepCopy() *HelmReleaseStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmReleaseStatus.
func (*HelmReleaseStatus) DeepCopyInto ¶
func (in *HelmReleaseStatus) DeepCopyInto(out *HelmReleaseStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Localization ¶
type Localization struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec LocalizationSpec `json:"spec"` }
Localization represents the override config for a group of resources.
func (*Localization) DeepCopy ¶
func (in *Localization) DeepCopy() *Localization
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Localization.
func (*Localization) DeepCopyInto ¶
func (in *Localization) DeepCopyInto(out *Localization)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Localization) DeepCopyObject ¶
func (in *Localization) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalizationList ¶
type LocalizationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Localization `json:"items"` }
LocalizationList contains a list of Localization
func (*LocalizationList) DeepCopy ¶
func (in *LocalizationList) DeepCopy() *LocalizationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalizationList.
func (*LocalizationList) DeepCopyInto ¶
func (in *LocalizationList) DeepCopyInto(out *LocalizationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalizationList) DeepCopyObject ¶
func (in *LocalizationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type LocalizationSpec ¶
type LocalizationSpec struct { // OverridePolicy specifies the override policy for this Localization. // // +optional // +kubebuilder:validation:Type=string // +kubebuilder:default=ApplyLater OverridePolicy OverridePolicy `json:"overridePolicy,omitempty"` // Overrides holds all the OverrideConfig. // // +optional Overrides []OverrideConfig `json:"overrides,omitempty"` // Priority is an integer defining the relative importance of this Localization compared to others. // Lower numbers are considered lower priority. // And these Localization(s) will be applied by order from lower priority to higher. // That means override values in lower Localization will be overridden by those in higher Localization. // // +optional // +kubebuilder:validation:Maximum=1000 // +kubebuilder:validation:Minimum=0 // +kubebuilder:default=500 Priority int32 `json:"priority,omitempty"` // Feed holds references to the objects the Localization applies to. // // +optional Feed `json:"feed,omitempty"` }
LocalizationSpec defines the desired state of Localization
func (*LocalizationSpec) DeepCopy ¶
func (in *LocalizationSpec) DeepCopy() *LocalizationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalizationSpec.
func (*LocalizationSpec) DeepCopyInto ¶
func (in *LocalizationSpec) DeepCopyInto(out *LocalizationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Manifest ¶
type Manifest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // Template defines the raw Kubernetes resource // // +kubebuilder:pruning:PreserveUnknownFields Template runtime.RawExtension `json:"template"` }
Manifest stores the raw object
func (*Manifest) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manifest.
func (*Manifest) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Manifest) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManifestList ¶
type ManifestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Manifest `json:"items"` }
ManifestList contains a list of Manifest
func (*ManifestList) DeepCopy ¶
func (in *ManifestList) DeepCopy() *ManifestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestList.
func (*ManifestList) DeepCopyInto ¶
func (in *ManifestList) DeepCopyInto(out *ManifestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManifestList) DeepCopyObject ¶
func (in *ManifestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type OverrideConfig ¶
type OverrideConfig struct { // Name indicate the OverrideConfig name. // // +optional Name string `json:"name,omitempty"` // Value represents override value. // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string Value string `json:"value"` // Type specifies the override type for override value. // // +required // +kubebuilder:validation:Required // +kubebuilder:validation:Type=string // +kubebuilder:validation:Enum=Helm;JSONPatch;MergePatch Type OverrideType `json:"type"` }
OverrideConfig holds information that describes a override config.
func (*OverrideConfig) DeepCopy ¶
func (in *OverrideConfig) DeepCopy() *OverrideConfig
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OverrideConfig.
func (*OverrideConfig) DeepCopyInto ¶
func (in *OverrideConfig) DeepCopyInto(out *OverrideConfig)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type OverridePolicy ¶
type OverridePolicy string
const ( // Apply overrides for all matched objects immediately, including those already populated ApplyNow OverridePolicy = "ApplyNow" // Apply overrides for all matched objects on next updates (including updates on Subscription, // Manifest, HelmChart, etc) or new created objects. ApplyLater OverridePolicy = "ApplyLater" )
type OverrideType ¶
type OverrideType string
const ( // HelmType applies Helm values for all matched HelmCharts. // Note: HelmType only works with HelmChart(s). HelmType OverrideType = "Helm" // JSONPatchType applies a json patch for all matched objects. // Note: JSONPatchType does not work with HelmChart(s). JSONPatchType OverrideType = "JSONPatch" // MergePatchType applies a json merge patch for all matched objects. // Note: MergePatchType does not work with HelmChart(s). MergePatchType OverrideType = "MergePatch" )
type Subscriber ¶
type Subscriber struct { // ClusterAffinity is a label query over managed clusters by labels. // // +required // +kubebuilder:validation:Required ClusterAffinity *metav1.LabelSelector `json:"clusterAffinity"` }
Subscriber defines
func (*Subscriber) DeepCopy ¶
func (in *Subscriber) DeepCopy() *Subscriber
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subscriber.
func (*Subscriber) DeepCopyInto ¶
func (in *Subscriber) DeepCopyInto(out *Subscriber)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Subscription ¶
type Subscription struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SubscriptionSpec `json:"spec"` Status SubscriptionStatus `json:"status,omitempty"` }
Subscription represents the policy that install a group of resources to one or more clusters.
func (*Subscription) DeepCopy ¶
func (in *Subscription) DeepCopy() *Subscription
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subscription.
func (*Subscription) DeepCopyInto ¶
func (in *Subscription) DeepCopyInto(out *Subscription)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Subscription) DeepCopyObject ¶
func (in *Subscription) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubscriptionList ¶
type SubscriptionList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Subscription `json:"items"` }
SubscriptionList contains a list of Subscription
func (*SubscriptionList) DeepCopy ¶
func (in *SubscriptionList) DeepCopy() *SubscriptionList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionList.
func (*SubscriptionList) DeepCopyInto ¶
func (in *SubscriptionList) DeepCopyInto(out *SubscriptionList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubscriptionList) DeepCopyObject ¶
func (in *SubscriptionList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubscriptionSpec ¶
type SubscriptionSpec struct { // If specified, the Subscription will be handled by specified scheduler. // If not specified, the Subscription will be handled by default scheduler. // // +optional // +kubebuilder:default=default SchedulerName string `json:"schedulerName,omitempty"` // Subscribers subscribes // // +required // +kubebuilder:validation:Required Subscribers []Subscriber `json:"subscribers"` // Feeds // // +required // +kubebuilder:validation:Required Feeds []Feed `json:"feeds"` }
SubscriptionSpec defines the desired state of Subscription
func (*SubscriptionSpec) DeepCopy ¶
func (in *SubscriptionSpec) DeepCopy() *SubscriptionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionSpec.
func (*SubscriptionSpec) DeepCopyInto ¶
func (in *SubscriptionSpec) DeepCopyInto(out *SubscriptionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubscriptionStatus ¶
type SubscriptionStatus struct { // Total number of Helm releases desired by this Subscription. // // +optional DesiredReleases int32 `json:"desiredReleases,omitempty"` // Total number of completed releases targeted by this deployment. // // +optional CompletedReleases int32 `json:"completedReleases,omitempty"` }
SubscriptionStatus defines the observed state of Subscription
func (*SubscriptionStatus) DeepCopy ¶
func (in *SubscriptionStatus) DeepCopy() *SubscriptionStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubscriptionStatus.
func (*SubscriptionStatus) DeepCopyInto ¶
func (in *SubscriptionStatus) DeepCopyInto(out *SubscriptionStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.