v1alpha2

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha2 contains API Schema definitions for the shalm v1alpha2 API group +kubebuilder:object:generate=true +groupName=kramerul.github.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "kramerul.github.com", Version: "v1alpha2"}

	// 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
)

Functions

This section is empty.

Types

type ChartSpec

type ChartSpec struct {

	// +optional
	// Values that should be merged in the chart on the installation side
	Values runtime.RawExtension `json:"values,omitempty"`
	// +optional
	// Args which are passed to the constructor of the chart
	Args []intstr.IntOrString `json:"args,omitempty"`
	// +optional
	// KwArgs which are passed to the constructor of the chart
	KwArgs runtime.RawExtension `json:"kwargs,omitempty"`
	// +optional
	// Kubeconfig which is used for the installation. Install into local cluster if empty
	KubeConfig string `json:"kubeconfig,omitempty"`
	// Namespace which is used for the installation
	Namespace string `json:"namespace,omitempty"`
	// +optional
	// Suffix which is used to make the chart instance unique
	Suffix string `json:"suffix,omitempty"`
	// +optional
	// ChartTgz containts the complete chart
	ChartTgz []byte `json:"chart_tgz,omitempty"`
	// +optional
	// ChartURL containts the URL for the chart. If empty the ChartTgz field is used.
	ChartURL string `json:"chart_url,omitempty"`
	// +optional
	// Tool which is used to do the deployment and deletion
	Tool string `json:"tool,omitempty"`
}

ChartSpec defines the desired state of ShalmChart

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.

func (*ChartSpec) GetKwArgs

func (s *ChartSpec) GetKwArgs() (map[string]interface{}, error)

GetKwArgs get KwArgs member

func (*ChartSpec) GetValues

func (s *ChartSpec) GetValues() (map[string]interface{}, error)

GetValues get values member

func (*ChartSpec) SetKwArgs

func (s *ChartSpec) SetKwArgs(kwargs map[string]interface{}) error

SetKwArgs set KwArgs member

func (*ChartSpec) SetValues

func (s *ChartSpec) SetValues(values map[string]interface{}) error

SetValues set values member

type ChartStatus

type ChartStatus struct {

	// LastOp containts the last operation status
	// +optional
	LastOp Operation `json:"lastOp,omitempty"`
}

ChartStatus defines the observed state of ShalmChart

func (*ChartStatus) DeepCopy

func (in *ChartStatus) DeepCopy() *ChartStatus

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

func (*ChartStatus) DeepCopyInto

func (in *ChartStatus) DeepCopyInto(out *ChartStatus)

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

type Operation

type Operation struct {
	// Type of installation can be apply or delete
	Type string `json:"type"`
	// Progress of installation in percent
	Progress int `json:"progress"`
}

Operation defines the progress of the last operation

func (*Operation) DeepCopy

func (in *Operation) DeepCopy() *Operation

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

func (*Operation) DeepCopyInto

func (in *Operation) DeepCopyInto(out *Operation)

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

type ShalmChart

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

	Spec ChartSpec `json:"spec,omitempty"`
	// +optional
	Status ChartStatus `json:"status,omitempty"`
}

ShalmChart is the Schema for the shalmcharts API

func (*ShalmChart) DeepCopy

func (in *ShalmChart) DeepCopy() *ShalmChart

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

func (*ShalmChart) DeepCopyInto

func (in *ShalmChart) DeepCopyInto(out *ShalmChart)

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

func (*ShalmChart) DeepCopyObject

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

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

func (*ShalmChart) Init

func (s *ShalmChart) Init()

Init -

type ShalmChartList

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

ShalmChartList contains a list of ShalmChart

func (*ShalmChartList) DeepCopy

func (in *ShalmChartList) DeepCopy() *ShalmChartList

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

func (*ShalmChartList) DeepCopyInto

func (in *ShalmChartList) DeepCopyInto(out *ShalmChartList)

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

func (*ShalmChartList) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

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