v1beta1

package
v4.104.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2024 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Overview

Package v1beta1 contains the v1beta1 group release resource of the Helm provider. +kubebuilder:object:generate=true +groupName=helm.crossplane.io +versionName=v1beta1

Index

Constants

View Source
const (
	Group   = "helm.crossplane.io"
	Version = "v1beta1"
)

Package type metadata.

Variables

View Source
var (
	// SchemeGroupVersion is group version used to register these objects
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	ReleaseKind             = reflect.TypeOf(Release{}).Name()
	ReleaseGroupKind        = schema.GroupKind{Group: Group, Kind: ReleaseKind}.String()
	ReleaseKindAPIVersion   = ReleaseKind + "." + SchemeGroupVersion.String()
	ReleaseGroupVersionKind = SchemeGroupVersion.WithKind(ReleaseKind)
)

Release type metadata.

Functions

This section is empty.

Types

type ChartSpec

type ChartSpec struct {
	// Repository: Helm repository URL, required if ChartSpec.URL not set
	Repository string `json:"repository,omitempty"`
	// Name of Helm chart, required if ChartSpec.URL not set
	Name string `json:"name,omitempty"`
	// Version of Helm chart, late initialized with latest version if not set
	Version string `json:"version,omitempty"`
	// URL to chart package (typically .tgz), optional and overrides others fields in the spec
	URL string `json:"url,omitempty"`
	// PullSecretRef is reference to the secret containing credentials to helm repository
	PullSecretRef xpv1.SecretReference `json:"pullSecretRef,omitempty"`
}

A ChartSpec defines the chart spec for a Release

func (*ChartSpec) DeepCopy

func (in *ChartSpec) DeepCopy() *ChartSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartSpec.

func (*ChartSpec) DeepCopyInto

func (in *ChartSpec) DeepCopyInto(out *ChartSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConnectionDetail

type ConnectionDetail struct {
	v1.ObjectReference    `json:",inline"`
	ToConnectionSecretKey string `json:"toConnectionSecretKey,omitempty"`
	// SkipPartOfReleaseCheck skips check for meta.helm.sh/release-name annotation.
	SkipPartOfReleaseCheck bool `json:"skipPartOfReleaseCheck,omitempty"`
}

ConnectionDetail todo

func (*ConnectionDetail) DeepCopy

func (in *ConnectionDetail) DeepCopy() *ConnectionDetail

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionDetail.

func (*ConnectionDetail) DeepCopyInto

func (in *ConnectionDetail) DeepCopyInto(out *ConnectionDetail)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type DataKeySelector

type DataKeySelector struct {
	NamespacedName `json:",inline"`
	Key            string `json:"key,omitempty"`
	Optional       bool   `json:"optional,omitempty"`
}

DataKeySelector defines required spec to access a key of a configmap or secret

func (*DataKeySelector) DeepCopy

func (in *DataKeySelector) DeepCopy() *DataKeySelector

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DataKeySelector.

func (*DataKeySelector) DeepCopyInto

func (in *DataKeySelector) DeepCopyInto(out *DataKeySelector)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NamespacedName

type NamespacedName struct {
	Namespace string `json:"namespace"`
	Name      string `json:"name"`
}

NamespacedName represents a namespaced object name

func (*NamespacedName) DeepCopy

func (in *NamespacedName) DeepCopy() *NamespacedName

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedName.

func (*NamespacedName) DeepCopyInto

func (in *NamespacedName) DeepCopyInto(out *NamespacedName)

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"`
	Status ReleaseStatus `json:"status,omitempty"`
}

A Release is an example API type +kubebuilder:subresource:status +kubebuilder:printcolumn:name="CHART",type="string",JSONPath=".spec.forProvider.chart.name" +kubebuilder:printcolumn:name="VERSION",type="string",JSONPath=".spec.forProvider.chart.version" +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status" +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status" +kubebuilder:printcolumn:name="STATE",type="string",JSONPath=".status.atProvider.state" +kubebuilder:printcolumn:name="REVISION",type="string",JSONPath=".status.atProvider.revision" +kubebuilder:printcolumn:name="DESCRIPTION",type="string",JSONPath=".status.atProvider.releaseDescription" +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,helm}

func (*Release) DeepCopy

func (in *Release) DeepCopy() *Release

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Release.

func (*Release) DeepCopyInto

func (in *Release) DeepCopyInto(out *Release)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Release) DeepCopyObject

func (in *Release) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Release) GetCondition

func (mg *Release) GetCondition(ct xpv1.ConditionType) xpv1.Condition

GetCondition of this Release.

func (*Release) GetDeletionPolicy

func (mg *Release) GetDeletionPolicy() xpv1.DeletionPolicy

GetDeletionPolicy of this Release.

func (*Release) GetManagementPolicies

func (mg *Release) GetManagementPolicies() xpv1.ManagementPolicies

GetManagementPolicies of this Release.

func (*Release) GetProviderConfigReference

func (mg *Release) GetProviderConfigReference() *xpv1.Reference

GetProviderConfigReference of this Release.

func (*Release) GetPublishConnectionDetailsTo

func (mg *Release) GetPublishConnectionDetailsTo() *xpv1.PublishConnectionDetailsTo

GetPublishConnectionDetailsTo of this Release.

func (*Release) GetWriteConnectionSecretToReference

func (mg *Release) GetWriteConnectionSecretToReference() *xpv1.SecretReference

GetWriteConnectionSecretToReference of this Release.

func (*Release) SetConditions

func (mg *Release) SetConditions(c ...xpv1.Condition)

SetConditions of this Release.

func (*Release) SetDeletionPolicy

func (mg *Release) SetDeletionPolicy(r xpv1.DeletionPolicy)

SetDeletionPolicy of this Release.

func (*Release) SetManagementPolicies

func (mg *Release) SetManagementPolicies(r xpv1.ManagementPolicies)

SetManagementPolicies of this Release.

func (*Release) SetProviderConfigReference

func (mg *Release) SetProviderConfigReference(r *xpv1.Reference)

SetProviderConfigReference of this Release.

func (*Release) SetPublishConnectionDetailsTo

func (mg *Release) SetPublishConnectionDetailsTo(r *xpv1.PublishConnectionDetailsTo)

SetPublishConnectionDetailsTo of this Release.

func (*Release) SetWriteConnectionSecretToReference

func (mg *Release) SetWriteConnectionSecretToReference(r *xpv1.SecretReference)

SetWriteConnectionSecretToReference of this Release.

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.

func (*ReleaseList) GetItems

func (l *ReleaseList) GetItems() []resource.Managed

GetItems of this ReleaseList.

type ReleaseObservation

type ReleaseObservation struct {
	State              release.Status `json:"state,omitempty"`
	ReleaseDescription string         `json:"releaseDescription,omitempty"`
	Revision           int            `json:"revision,omitempty"`
}

ReleaseObservation are the observable fields of a Release.

func (*ReleaseObservation) DeepCopy

func (in *ReleaseObservation) DeepCopy() *ReleaseObservation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseObservation.

func (*ReleaseObservation) DeepCopyInto

func (in *ReleaseObservation) DeepCopyInto(out *ReleaseObservation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReleaseParameters

type ReleaseParameters struct {
	Chart ChartSpec `json:"chart"`
	// Namespace to install the release into.
	Namespace string `json:"namespace"`
	// SkipCreateNamespace won't create the namespace for the release. This requires the namespace to already exist.
	SkipCreateNamespace bool `json:"skipCreateNamespace,omitempty"`
	// Wait for the release to become ready.
	Wait bool `json:"wait,omitempty"`
	// WaitTimeout is the duration Helm will wait for the release to become
	// ready. Only applies if wait is also set. Defaults to 5m.
	WaitTimeout *metav1.Duration `json:"waitTimeout,omitempty"`
	// PatchesFrom describe patches to be applied to the rendered manifests.
	PatchesFrom []ValueFromSource `json:"patchesFrom,omitempty"`
	// ValuesSpec defines the Helm value overrides spec for a Release.
	ValuesSpec `json:",inline"`
	// SkipCRDs skips installation of CRDs for the release.
	SkipCRDs bool `json:"skipCRDs,omitempty"`
	// InsecureSkipTLSVerify skips tls certificate checks for the chart download
	InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify,omitempty"`
}

ReleaseParameters are the configurable fields of a Release.

func (*ReleaseParameters) DeepCopy

func (in *ReleaseParameters) DeepCopy() *ReleaseParameters

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReleaseParameters.

func (*ReleaseParameters) DeepCopyInto

func (in *ReleaseParameters) DeepCopyInto(out *ReleaseParameters)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ReleaseSpec

type ReleaseSpec struct {
	xpv1.ResourceSpec `json:",inline"`
	ConnectionDetails []ConnectionDetail `json:"connectionDetails,omitempty"`
	ForProvider       ReleaseParameters  `json:"forProvider"`
	// RollbackRetriesLimit is max number of attempts to retry Helm deployment by rolling back the release.
	RollbackRetriesLimit *int32 `json:"rollbackLimit,omitempty"`
}

A ReleaseSpec defines the desired state of a 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 {
	xpv1.ResourceStatus `json:",inline"`
	AtProvider          ReleaseObservation `json:"atProvider,omitempty"`
	PatchesSha          string             `json:"patchesSha,omitempty"`
	Failed              int32              `json:"failed,omitempty"`
	Synced              bool               `json:"synced,omitempty"`
}

A ReleaseStatus represents the observed state of a 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 SetVal

type SetVal struct {
	Name      string           `json:"name"`
	Value     string           `json:"value,omitempty"`
	ValueFrom *ValueFromSource `json:"valueFrom,omitempty"`
}

SetVal represents a "set" value override in a Release

func (*SetVal) DeepCopy

func (in *SetVal) DeepCopy() *SetVal

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SetVal.

func (*SetVal) DeepCopyInto

func (in *SetVal) DeepCopyInto(out *SetVal)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ValueFromSource

type ValueFromSource struct {
	ConfigMapKeyRef *DataKeySelector `json:"configMapKeyRef,omitempty"`
	SecretKeyRef    *DataKeySelector `json:"secretKeyRef,omitempty"`
}

ValueFromSource represents source of a value

func (*ValueFromSource) DeepCopy

func (in *ValueFromSource) DeepCopy() *ValueFromSource

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValueFromSource.

func (*ValueFromSource) DeepCopyInto

func (in *ValueFromSource) DeepCopyInto(out *ValueFromSource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ValuesSpec

type ValuesSpec struct {
	// +kubebuilder:pruning:PreserveUnknownFields
	Values     runtime.RawExtension `json:"values,omitempty"`
	ValuesFrom []ValueFromSource    `json:"valuesFrom,omitempty"`
	Set        []SetVal             `json:"set,omitempty"`
}

ValuesSpec defines the Helm value overrides spec for a Release

func (*ValuesSpec) DeepCopy

func (in *ValuesSpec) DeepCopy() *ValuesSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ValuesSpec.

func (*ValuesSpec) DeepCopyInto

func (in *ValuesSpec) DeepCopyInto(out *ValuesSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL