v1alpha1

package
v0.0.0-...-363e6e0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +groupName=krateo.io +versionName=v1alpha1

Index

Constants

View Source
const (
	Group   = "krateo.io"
	Version = "v1alpha1"
)

Variables

View Source
var (
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}
	SchemeBuilder      = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
View Source
var (
	KrateoPlatformOpsKind             = reflect.TypeOf(KrateoPlatformOps{}).Name()
	KrateoPlatformOpsGroupKind        = schema.GroupKind{Group: Group, Kind: KrateoPlatformOpsKind}.String()
	KrateoPlatformOpsKindAPIVersion   = KrateoPlatformOpsKind + "." + SchemeGroupVersion.String()
	KrateoPlatformOpsGroupVersionKind = SchemeGroupVersion.WithKind(KrateoPlatformOpsKind)
)

Functions

This section is empty.

Types

type ChartObservation

type ChartObservation struct {
	State    release.Status `json:"state,omitempty"`
	Revision int            `json:"revision,omitempty"`
}

func (*ChartObservation) DeepCopy

func (in *ChartObservation) DeepCopy() *ChartObservation

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

func (*ChartObservation) DeepCopyInto

func (in *ChartObservation) DeepCopyInto(out *ChartObservation)

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

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"`

	// ReleaseName is the name of the release. If not set, Name will be used or it will be deriverd from the URL
	// +optional
	ReleaseName string `json:"releaseName,omitempty"`

	// MaxHistory is the maximum number of helm releases to keep in history
	MaxHistory *int `json:"maxHistory,omitempty"`

	// 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"`
	// Set defines the Helm values
	Set []*Data `json:"set,omitempty"`
	// 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"`

	// Credentials: credentials for private repos
	// +optional
	Credentials *Credentials `json:"credentials,omitempty"`
}

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 Credentials

type Credentials struct {
	Username    string                 `json:"username"`
	PasswordRef rtv1.SecretKeySelector `json:"passwordRef"`
}

func (*Credentials) DeepCopy

func (in *Credentials) DeepCopy() *Credentials

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

func (*Credentials) DeepCopyInto

func (in *Credentials) DeepCopyInto(out *Credentials)

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

type Data

type Data struct {
	Name     string `json:"name"`
	Value    string `json:"value,omitempty"`
	AsString *bool  `json:"asString,omitempty"`
}

func (*Data) DeepCopy

func (in *Data) DeepCopy() *Data

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

func (*Data) DeepCopyInto

func (in *Data) DeepCopyInto(out *Data)

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

type KrateoPlatformOps

type KrateoPlatformOps struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   WorkflowSpec   `json:"spec"`
	Status WorkflowStatus `json:"status,omitempty"`
}

+kubebuilder:subresource:status +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="AGE",type="date",JSONPath=".metadata.creationTimestamp" +kubebuilder:resource:scope=Namespaced,categories={krateo}

func (*KrateoPlatformOps) DeepCopy

func (in *KrateoPlatformOps) DeepCopy() *KrateoPlatformOps

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

func (*KrateoPlatformOps) DeepCopyInto

func (in *KrateoPlatformOps) DeepCopyInto(out *KrateoPlatformOps)

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

func (*KrateoPlatformOps) DeepCopyObject

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

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

func (*KrateoPlatformOps) GetCondition

func (mg *KrateoPlatformOps) GetCondition(ct rtv1.ConditionType) rtv1.Condition

func (*KrateoPlatformOps) SetConditions

func (mg *KrateoPlatformOps) SetConditions(c ...rtv1.Condition)

type KrateoPlatformOpsList

type KrateoPlatformOpsList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []KrateoPlatformOps `json:"items"`
}

KrateoPlatformOpsList contains a list of KrateoPlatformOps

func (*KrateoPlatformOpsList) DeepCopy

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

func (*KrateoPlatformOpsList) DeepCopyInto

func (in *KrateoPlatformOpsList) DeepCopyInto(out *KrateoPlatformOpsList)

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

func (*KrateoPlatformOpsList) DeepCopyObject

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

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

func (*KrateoPlatformOpsList) GetItems

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

type Object

type Object struct {
	ObjectMeta `json:",inline"`
	Set        []*Data `json:"set,omitempty"`
}

func (*Object) DeepCopy

func (in *Object) DeepCopy() *Object

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

func (*Object) DeepCopyInto

func (in *Object) DeepCopyInto(out *Object)

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

type ObjectMeta

type ObjectMeta struct {
	APIVersion string         `json:"apiVersion"`
	Kind       string         `json:"kind"`
	Metadata   rtv1.Reference `json:"metadata"`
}

func (*ObjectMeta) DeepCopy

func (in *ObjectMeta) DeepCopy() *ObjectMeta

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

func (*ObjectMeta) DeepCopyInto

func (in *ObjectMeta) DeepCopyInto(out *ObjectMeta)

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

type Release

type Release struct {
	ReleaseName  string      `json:"releaseName,omitempty"`
	ChartName    string      `json:"chartName,omitempty"`
	ChartVersion string      `json:"chartVersion,omitempty"`
	AppVersion   string      `json:"appVersion,omitempty"`
	Namespace    string      `json:"namespace,omitempty"`
	Status       string      `json:"status,omitempty"`
	Revision     int         `json:"revision,omitempty"`
	Updated      metav1.Time `json:"updated,omitempty"`
}

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.

type Step

type Step struct {
	// +kubebuilder:validation:Required
	ID string `json:"id"`
	// +kubebuilder:validation:Required
	// +kubebuilder:validation:Enum=object;chart;var
	Type StepType `json:"type"`
	// +kubebuilder:pruning:PreserveUnknownFields
	With *runtime.RawExtension `json:"with"`
}

func (*Step) DeepCopy

func (in *Step) DeepCopy() *Step

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

func (*Step) DeepCopyInto

func (in *Step) DeepCopyInto(out *Step)

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

func (*Step) Digest

func (s *Step) Digest() string

type StepType

type StepType string

+kubebuilder:validation:Enum=object;chart;var

const (
	TypeObject StepType = "object"
	TypeChart  StepType = "chart"
	TypeVar    StepType = "var"
)

type ValueFromSource

type ValueFromSource struct {
	ObjectMeta `json:",inline"`
	Selector   string `json:"selector,omitempty"`
}

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 Var

type Var struct {
	Data      `json:",inline"`
	ValueFrom *ValueFromSource `json:"valueFrom,omitempty"`
}

func (*Var) DeepCopy

func (in *Var) DeepCopy() *Var

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

func (*Var) DeepCopyInto

func (in *Var) DeepCopyInto(out *Var)

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

type WorkflowSpec

type WorkflowSpec struct {
	Steps []*Step `json:"steps,omitempty"`
}

func (*WorkflowSpec) DeepCopy

func (in *WorkflowSpec) DeepCopy() *WorkflowSpec

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

func (*WorkflowSpec) DeepCopyInto

func (in *WorkflowSpec) DeepCopyInto(out *WorkflowSpec)

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

type WorkflowStatus

type WorkflowStatus struct {
	rtv1.ConditionedStatus `json:",inline"`
	Digest                 string `json:"digest,omitempty"`

	ObjectList  []Object  `json:"objectList,omitempty"`
	ReleaseList []Release `json:"releaseList,omitempty"`
	VarList     []Var     `json:"varList,omitempty"`
}

func (*WorkflowStatus) DeepCopy

func (in *WorkflowStatus) DeepCopy() *WorkflowStatus

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

func (*WorkflowStatus) DeepCopyInto

func (in *WorkflowStatus) DeepCopyInto(out *WorkflowStatus)

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