v1alpha1

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the multitenancy v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=multitenancy.dev

Package v1alpha1 contains API Schema definitions for the multitenancy v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=multitenancy.dev

Index

Constants

This section is empty.

Variables

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

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)

Functions

This section is empty.

Types

type Chart

type Chart struct {
	ChartName   string    `json:"chartName"`
	ReleaseName *string   `json:"releaseName,omitempty"`
	Settings    []Setting `json:"settings"`
}

func (*Chart) DeepCopy

func (in *Chart) DeepCopy() *Chart

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

func (*Chart) DeepCopyInto

func (in *Chart) DeepCopyInto(out *Chart)

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

type ChartMessage

type ChartMessage struct {
	ChartName    string            `json:"chartName"`
	SettingMap   map[string]string `json:"settingMap"`
	ErrorMessage *string           `json:"errorMessage,omitempty"`
}

func (*ChartMessage) DeepCopy

func (in *ChartMessage) DeepCopy() *ChartMessage

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

func (*ChartMessage) DeepCopyInto

func (in *ChartMessage) DeepCopyInto(out *ChartMessage)

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

type Controller

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

	Spec   ControllerSpec   `json:"spec,omitempty"`
	Status ControllerStatus `json:"status,omitempty"`
}

Controller is the Schema for the controllers API +kubebuilder:subresource:status +kubebuilder:resource:path=controllers,scope=Namespaced

func (*Controller) DeepCopy

func (in *Controller) DeepCopy() *Controller

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

func (*Controller) DeepCopyInto

func (in *Controller) DeepCopyInto(out *Controller)

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

func (*Controller) DeepCopyObject

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

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

func (*Controller) InitCheck

func (c *Controller) InitCheck() bool

type ControllerList

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

ControllerList contains a list of Controller

func (*ControllerList) DeepCopy

func (in *ControllerList) DeepCopy() *ControllerList

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

func (*ControllerList) DeepCopyInto

func (in *ControllerList) DeepCopyInto(out *ControllerList)

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

func (*ControllerList) DeepCopyObject

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

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

type ControllerSpec

type ControllerSpec struct {
	// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	Tenancies []Tenancy `json:"tenancies"`
}

ControllerSpec defines the desired state of Controller

func (*ControllerSpec) DeepCopy

func (in *ControllerSpec) DeepCopy() *ControllerSpec

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

func (*ControllerSpec) DeepCopyInto

func (in *ControllerSpec) DeepCopyInto(out *ControllerSpec)

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

type ControllerStatus

type ControllerStatus struct {
	// INSERT ADDITIONAL STATUS FIELD - define observed state of cluster
	// Important: Run "operator-sdk generate k8s" to regenerate code after modifying this file
	// Add custom validation using kubebuilder tags: https://book-v1.book.kubebuilder.io/beyond_basics/generating_crd.html
	UpdatedTenancies []StatusTenancy `json:"updatedTenancies"`
}

ControllerStatus defines the observed state of Controller

func (*ControllerStatus) AppendNamespacedChart

func (cs *ControllerStatus) AppendNamespacedChart(chartName, namespace string)

func (*ControllerStatus) AppendNamespacedChartReplicationControllerStatusList

func (cs *ControllerStatus) AppendNamespacedChartReplicationControllerStatusList(namespace, rCName, apiVersion, kind string)

func (*ControllerStatus) ApplyNamespacedChartPodStatus

func (cs *ControllerStatus) ApplyNamespacedChartPodStatus(namespace, podName, phase string) bool

func (*ControllerStatus) DeepCopy

func (in *ControllerStatus) DeepCopy() *ControllerStatus

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

func (*ControllerStatus) DeepCopyInto

func (in *ControllerStatus) DeepCopyInto(out *ControllerStatus)

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

func (*ControllerStatus) RemoveNamespacedChart

func (cs *ControllerStatus) RemoveNamespacedChart(chartName, namespace string)

func (*ControllerStatus) RemoveNamespacedChartPodStatus

func (cs *ControllerStatus) RemoveNamespacedChartPodStatus(namespace, podName string) bool

func (*ControllerStatus) RemoveNamespacedChartReplicationControllerStatusListIfExist

func (cs *ControllerStatus) RemoveNamespacedChartReplicationControllerStatusListIfExist(namespace, rCName, apiVersion, kind string)

func (*ControllerStatus) UpdateNamespacedChartErrorMessage

func (cs *ControllerStatus) UpdateNamespacedChartErrorMessage(chartName, namespace string, err error)

func (*ControllerStatus) UpdateNamespacedChartReplicationControllerStatusReady

func (cs *ControllerStatus) UpdateNamespacedChartReplicationControllerStatusReady(namespace, rCName, apiVersion, kind, ready string) bool

func (*ControllerStatus) UpdateNamespacedChartSettings

func (cs *ControllerStatus) UpdateNamespacedChartSettings(chartName, namespace string, sets map[string]string)

type PodStatus

type PodStatus struct {
	PodName string `json:"podName"`
	Phase   string `json:"phase"`
}

func (*PodStatus) DeepCopy

func (in *PodStatus) DeepCopy() *PodStatus

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

func (*PodStatus) DeepCopyInto

func (in *PodStatus) DeepCopyInto(out *PodStatus)

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

type ReplicationControllerStatus

type ReplicationControllerStatus struct {
	ReplicationControllerName string `json:"replicationControllerName"`
	ApiVersion                string `json:"apiVersion"`
	Kind                      string `json:"kind"`
	Ready                     string `json:"ready"`
}

func (*ReplicationControllerStatus) DeepCopy

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

func (*ReplicationControllerStatus) DeepCopyInto

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

type Setting

type Setting struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

func (*Setting) DeepCopy

func (in *Setting) DeepCopy() *Setting

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

func (*Setting) DeepCopyInto

func (in *Setting) DeepCopyInto(out *Setting)

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

type StatusTenancy

type StatusTenancy struct {
	Namespace                       string                        `json:"namespace"`
	ChartMessages                   []ChartMessage                `json:"chartMessages"`
	ReplicationControllerStatusList []ReplicationControllerStatus `json:"replicationControllerStatus"`
	PodStatusList                   []PodStatus                   `json:"podStatus"`
}

func (*StatusTenancy) DeepCopy

func (in *StatusTenancy) DeepCopy() *StatusTenancy

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

func (*StatusTenancy) DeepCopyInto

func (in *StatusTenancy) DeepCopyInto(out *StatusTenancy)

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

type Tenancy

type Tenancy struct {
	Namespace string  `json:"namespace"`
	Charts    []Chart `json:"charts"`
}

func (*Tenancy) DeepCopy

func (in *Tenancy) DeepCopy() *Tenancy

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

func (*Tenancy) DeepCopyInto

func (in *Tenancy) DeepCopyInto(out *Tenancy)

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