v1alpha1

package
v0.0.0-...-5ef725e Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +groupName=cma.sds.samsung.com

Index

Constants

View Source
const (
	SDSClusterResourceKind          = "SDSCluster"
	SDSClusterResourcePlural        = "sdsclusters"
	SDSApplicationResourceKind      = "SDSApplication"
	SDSApplicationResourcePlural    = "sdsapplications"
	SDSPackageManagerResourceKind   = "SDSPackageManager"
	SDSPackageManagerResourcePlural = "sdspackagemanagers"

	SDSAppBundleResourceKind   = "SDSAppBundle"
	SDSAppBundleResourcePlural = "sdsappbundles"
)
View Source
const (
	AppBundlePhaseNone        = ""
	AppBundlePhasePending     = "Pending"
	AppBundlePhaseInstalling  = "Installing"
	AppBundlePhaseUpgrading   = "Upgrading"
	AppBundlePhaseImplemented = "Implemented"
	AppBundlePhaseFailed      = "Failed"
)
View Source
const (
	ApplicationPhaseNone        = ""
	ApplicationPhasePending     = "Pending"
	ApplicationPhaseInstalling  = "Installing"
	ApplicationPhaseUpgrading   = "Upgrading"
	ApplicationPhaseImplemented = "Implemented"
	ApplicationPhaseFailed      = "Failed"
)
View Source
const (
	ClusterPhaseNone              = ""
	ClusterPhasePending           = "Pending"
	ClusterPhaseWaitingForCluster = "Waiting"
	ClusterPhaseUpgrading         = "Upgrading"
	ClusterPhaseDeleting          = "Deleting"
	ClusterPhaseReady             = "Ready"
	ClusterPhaseFailed            = "Failed"
)
View Source
const (
	PackageManagerPhaseNone        = ""
	PackageManagerPhasePending     = "Pending"
	PackageManagerPhaseInstalling  = "Installing"
	PackageManagerPhaseUpgrading   = "Upgrading"
	PackageManagerPhaseImplemented = "Implemented"
	PackageManagerPhaseFailed      = "Failed"
)

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme

	SchemeGroupVersion       = schema.GroupVersion{Group: groupName, Version: "v1alpha1"}
	SDSClusterCRDName        = SDSClusterResourcePlural + "." + groupName
	SDSApplicationCRDName    = SDSApplicationResourcePlural + "." + groupName
	SDSPackageManagerCRDName = SDSPackageManagerResourcePlural + "." + groupName
	SDSAppBundleCRDName      = SDSAppBundleResourcePlural + "." + groupName
)

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

func VersionKind

func VersionKind(kind string) schema.GroupVersionKind

VersionKind takes an unqualified kind and returns back a Group qualified GroupVersionKind

Types

type AppBundlePhase

type AppBundlePhase Phase

type ApplicationPhase

type ApplicationPhase Phase

type Chart

type Chart struct {
	// What is the chart name
	Name string `json:"chartName"`
	// What is the repository information
	Repository ChartRepository `json:"repository"`
	// The Chart payload in case repository is not available
	ChartPayload []byte `json:"chartPayload"`
	// What is the chart version
	Version string `json:"version"`
}

Chart represents a SDS Application's Chart information +k8s:openapi-gen=true

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 ChartRepository

type ChartRepository struct {
	// What is the repository name
	Name string `json:"name"`
	// What is the URL for the repository?
	URL string `json:"url"`
}

ChartRepository represents a helm chart repository +k8s:openapi-gen=true

func (*ChartRepository) DeepCopy

func (in *ChartRepository) DeepCopy() *ChartRepository

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

func (*ChartRepository) DeepCopyInto

func (in *ChartRepository) DeepCopyInto(out *ChartRepository)

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

type Condition

type Condition struct {
	Type           ConditionType `json:"type"`
	Reason         string        `json:"reason"`
	TransitionTime string        `json:"transitionTime"`
}

Condition saves the state information of the system +k8s:openapi-gen=true

func (*Condition) DeepCopy

func (in *Condition) DeepCopy() *Condition

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

func (*Condition) DeepCopyInto

func (in *Condition) DeepCopyInto(out *Condition)

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

type ConditionType

type ConditionType string

ConditionType defines the condition that the condition can have

type PackageManagerPermissions

type PackageManagerPermissions struct {
	// Should this be a cluster wide admin?
	ClusterWide bool `json:"clusterWide"`
	// What namespaces should this package manager administrate on?
	Namespaces []string `json:"namespaces"`
}

PackageManagerPermissions represents the permissions for the package manager +k8s:openapi-gen=true

func (*PackageManagerPermissions) DeepCopy

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

func (*PackageManagerPermissions) DeepCopyInto

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

type PackageManagerPhase

type PackageManagerPhase Phase

type Phase

type Phase string

Phase of the RF status

type SDSAppBundle

type SDSAppBundle struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SDSAppBundleSpec   `json:"spec"`
	Status            SDSAppBundleStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*SDSAppBundle) DeepCopy

func (in *SDSAppBundle) DeepCopy() *SDSAppBundle

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

func (*SDSAppBundle) DeepCopyInto

func (in *SDSAppBundle) DeepCopyInto(out *SDSAppBundle)

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

func (*SDSAppBundle) DeepCopyObject

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

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

type SDSAppBundleList

type SDSAppBundleList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SDSAppBundle `json:"items"`
}

SDSAppBundleList is a list of sds application bundles. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*SDSAppBundleList) DeepCopy

func (in *SDSAppBundleList) DeepCopy() *SDSAppBundleList

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

func (*SDSAppBundleList) DeepCopyInto

func (in *SDSAppBundleList) DeepCopyInto(out *SDSAppBundleList)

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

func (*SDSAppBundleList) DeepCopyObject

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

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

type SDSAppBundleSpec

type SDSAppBundleSpec struct {
	// What is the AppBundle release's name
	Name string `json:"name"`
	// The Namespace on the management cluster to install the bundle
	Namespace string `json:"namespace"`
	// What Package Manager to create for all applications in this bundle
	PackageManager SDSPackageManagerSpec `json:"packagemanager"`
	// What Applications to create for this bundle
	Applications []SDSApplicationSpec `json:"applications"`
	// providers to install on
	Providers []string `json:"providers"`
	// Kubernetes version and higher to install on
	K8sVersion string `json:"k8sversion"`
}

SDSAppBundleSpec represents a SDS Application Bundle - a list of applications to be install on clusters automatically after create +k8s:openapi-gen=true

func (*SDSAppBundleSpec) DeepCopy

func (in *SDSAppBundleSpec) DeepCopy() *SDSAppBundleSpec

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

func (*SDSAppBundleSpec) DeepCopyInto

func (in *SDSAppBundleSpec) DeepCopyInto(out *SDSAppBundleSpec)

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

type SDSAppBundleStatus

type SDSAppBundleStatus struct {
	Phase      ApplicationPhase `json:"phase"`
	Ready      bool             `json:"ready"`
	Conditions []Condition      `json:"conditions"`
}

The status of an application bundle object +k8s:openapi-gen=true

func (*SDSAppBundleStatus) DeepCopy

func (in *SDSAppBundleStatus) DeepCopy() *SDSAppBundleStatus

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

func (*SDSAppBundleStatus) DeepCopyInto

func (in *SDSAppBundleStatus) DeepCopyInto(out *SDSAppBundleStatus)

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

type SDSApplication

type SDSApplication struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SDSApplicationSpec   `json:"spec"`
	Status            SDSApplicationStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*SDSApplication) DeepCopy

func (in *SDSApplication) DeepCopy() *SDSApplication

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

func (*SDSApplication) DeepCopyInto

func (in *SDSApplication) DeepCopyInto(out *SDSApplication)

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

func (*SDSApplication) DeepCopyObject

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

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

type SDSApplicationList

type SDSApplicationList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SDSApplication `json:"items"`
}

SDSApplicationList is a list of sds applications. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*SDSApplicationList) DeepCopy

func (in *SDSApplicationList) DeepCopy() *SDSApplicationList

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

func (*SDSApplicationList) DeepCopyInto

func (in *SDSApplicationList) DeepCopyInto(out *SDSApplicationList)

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

func (*SDSApplicationList) DeepCopyObject

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

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

type SDSApplicationSpec

type SDSApplicationSpec struct {
	// What tiller should be used
	PackageManager SDSPackageManagerRef `json:"packageManager"`
	// What namespace do we want this application installed in
	Namespace string `json:"namespace"`
	// What is the application release's name
	Name string `json:"name"`
	// Chart Information
	Chart Chart `json:"chart"`
	// What are the values for the Values.yaml file?
	Values string `json:"values"`
	// What are the values for the Values.yaml file?
	Cluster SDSClusterRef `json:"cluster"`
}

SDSApplicationSpec represents a SDS Application - or a helm chart install +k8s:openapi-gen=true

func (*SDSApplicationSpec) DeepCopy

func (in *SDSApplicationSpec) DeepCopy() *SDSApplicationSpec

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

func (*SDSApplicationSpec) DeepCopyInto

func (in *SDSApplicationSpec) DeepCopyInto(out *SDSApplicationSpec)

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

type SDSApplicationStatus

type SDSApplicationStatus struct {
	Phase      ApplicationPhase `json:"phase"`
	Ready      bool             `json:"ready"`
	Conditions []Condition      `json:"conditions"`
}

The status of an application object +k8s:openapi-gen=true

func (*SDSApplicationStatus) DeepCopy

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

func (*SDSApplicationStatus) DeepCopyInto

func (in *SDSApplicationStatus) DeepCopyInto(out *SDSApplicationStatus)

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

type SDSCluster

type SDSCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SDSClusterSpec   `json:"spec"`
	Status            SDSClusterStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*SDSCluster) DeepCopy

func (in *SDSCluster) DeepCopy() *SDSCluster

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

func (*SDSCluster) DeepCopyInto

func (in *SDSCluster) DeepCopyInto(out *SDSCluster)

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

func (*SDSCluster) DeepCopyObject

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

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

type SDSClusterList

type SDSClusterList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SDSCluster `json:"items"`
}

SDSDClusterList is a list of sds clusters. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*SDSClusterList) DeepCopy

func (in *SDSClusterList) DeepCopy() *SDSClusterList

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

func (*SDSClusterList) DeepCopyInto

func (in *SDSClusterList) DeepCopyInto(out *SDSClusterList)

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

func (*SDSClusterList) DeepCopyObject

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

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

type SDSClusterRef

type SDSClusterRef struct {
	// Name of the SDS Cluster.  Note that the cluster must be in the same namespace right now
	Name string `json:"name"`
}

SDSClusterRef is a reference to a SDS Cluster +k8s:openapi-gen=true

func (*SDSClusterRef) DeepCopy

func (in *SDSClusterRef) DeepCopy() *SDSClusterRef

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

func (*SDSClusterRef) DeepCopyInto

func (in *SDSClusterRef) DeepCopyInto(out *SDSClusterRef)

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

type SDSClusterSpec

type SDSClusterSpec struct {
	// What provider
	Provider string `json:"provider,omitempty"`
}

SDSClusterSpec represents a SDSCluster spec +k8s:openapi-gen=true

func (*SDSClusterSpec) DeepCopy

func (in *SDSClusterSpec) DeepCopy() *SDSClusterSpec

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

func (*SDSClusterSpec) DeepCopyInto

func (in *SDSClusterSpec) DeepCopyInto(out *SDSClusterSpec)

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

type SDSClusterStatus

type SDSClusterStatus struct {
	Phase           Phase       `json:"phase"`
	Conditions      []Condition `json:"conditions"`
	ClusterBuilt    bool        `json:"clusterBuilt"`
	TillerInstalled bool        `json:"tillerInstalled"`
	AppsInstalled   bool        `json:"appsInstalled"`
}

SDSClusterStatus has the status of the system +k8s:openapi-gen=true

func (*SDSClusterStatus) DeepCopy

func (in *SDSClusterStatus) DeepCopy() *SDSClusterStatus

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

func (*SDSClusterStatus) DeepCopyInto

func (in *SDSClusterStatus) DeepCopyInto(out *SDSClusterStatus)

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

type SDSPackageManager

type SDSPackageManager struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              SDSPackageManagerSpec   `json:"spec"`
	Status            SDSPackageManagerStatus `json:"status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*SDSPackageManager) DeepCopy

func (in *SDSPackageManager) DeepCopy() *SDSPackageManager

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

func (*SDSPackageManager) DeepCopyInto

func (in *SDSPackageManager) DeepCopyInto(out *SDSPackageManager)

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

func (*SDSPackageManager) DeepCopyObject

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

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

type SDSPackageManagerList

type SDSPackageManagerList struct {
	metav1.TypeMeta `json:",inline"`
	// Standard list metadata
	// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []SDSPackageManager `json:"items"`
}

SDSPackageManagerList is a list of sds package managers (tiller). +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +k8s:openapi-gen=true

func (*SDSPackageManagerList) DeepCopy

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

func (*SDSPackageManagerList) DeepCopyInto

func (in *SDSPackageManagerList) DeepCopyInto(out *SDSPackageManagerList)

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

func (*SDSPackageManagerList) DeepCopyObject

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

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

type SDSPackageManagerRef

type SDSPackageManagerRef struct {
	// Name of the SDS Package Manager.  Note that the package manager resource must be in the same namespace right now
	Name string `json:"name"`
}

SDSPackageManagerRef is a reference to a SDS Package Manager +k8s:openapi-gen=true

func (*SDSPackageManagerRef) DeepCopy

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

func (*SDSPackageManagerRef) DeepCopyInto

func (in *SDSPackageManagerRef) DeepCopyInto(out *SDSPackageManagerRef)

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

type SDSPackageManagerSpec

type SDSPackageManagerSpec struct {
	// What namespace do we want this package manager installed in
	Namespace string `json:"namespace"`
	// What is the application release's name
	Name string `json:"name"`
	// What version should this package manager be?
	Version string `json:"version"`
	// What tiller image should this package manager user?
	Image string `json:"image"`
	// ServiceAccount to use
	ServiceAccount ServiceAccount `json:"serviceAccount"`
	// Permissions of the Package Manager
	Permissions PackageManagerPermissions `json:"permissions"`
	// What are the values for the Values.yaml file?
	Cluster SDSClusterRef `json:"cluster"`
}

SDSPackageManagerSpec represents a SDS Package Manager - or a tiller deployment +k8s:openapi-gen=true

func (*SDSPackageManagerSpec) DeepCopy

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

func (*SDSPackageManagerSpec) DeepCopyInto

func (in *SDSPackageManagerSpec) DeepCopyInto(out *SDSPackageManagerSpec)

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

type SDSPackageManagerStatus

type SDSPackageManagerStatus struct {
	Phase      PackageManagerPhase `json:"phase"`
	Ready      bool                `json:"ready"`
	Conditions []Condition         `json:"conditions"`
}

The status of an package manager object +k8s:openapi-gen=true

func (*SDSPackageManagerStatus) DeepCopy

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

func (*SDSPackageManagerStatus) DeepCopyInto

func (in *SDSPackageManagerStatus) DeepCopyInto(out *SDSPackageManagerStatus)

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

type ServiceAccount

type ServiceAccount struct {
	// Should this be a cluster wide admin?
	Name string `json:"name"`
	// What namespace would we find this service account?
	Namespace string `json:"namespace"`
}

ServiceAccount represents the service account settings +k8s:openapi-gen=true

func (*ServiceAccount) DeepCopy

func (in *ServiceAccount) DeepCopy() *ServiceAccount

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

func (*ServiceAccount) DeepCopyInto

func (in *ServiceAccount) DeepCopyInto(out *ServiceAccount)

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