Documentation
¶
Overview ¶
+kubebuilder:object:generate=true +groupName=krateo.io +versionName=v1alpha1
Index ¶
- Constants
- Variables
- type ChartObservation
- type ChartSpec
- type Credentials
- type Data
- type KrateoPlatformOps
- func (in *KrateoPlatformOps) DeepCopy() *KrateoPlatformOps
- func (in *KrateoPlatformOps) DeepCopyInto(out *KrateoPlatformOps)
- func (in *KrateoPlatformOps) DeepCopyObject() runtime.Object
- func (mg *KrateoPlatformOps) GetCondition(ct rtv1.ConditionType) rtv1.Condition
- func (mg *KrateoPlatformOps) SetConditions(c ...rtv1.Condition)
- type KrateoPlatformOpsList
- type Object
- type ObjectMeta
- type Release
- type Step
- type StepType
- type ValueFromSource
- type Var
- type WorkflowSpec
- type WorkflowStatus
Constants ¶
const ( Group = "krateo.io" Version = "v1alpha1" )
Variables ¶
var ( SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version} SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion} )
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ChartSpec.
func (*ChartSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Data.
func (*Data) DeepCopyInto ¶
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 ¶
func (in *KrateoPlatformOpsList) DeepCopy() *KrateoPlatformOpsList
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Object.
func (*Object) DeepCopyInto ¶
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 ¶
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.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Step.
func (*Step) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Var.
func (*Var) DeepCopyInto ¶
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.