Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package,register +groupName=kubean.io
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type DockerInfo
- type DockerInfoStatus
- type HostsMap
- type ImageRepoPasswordAuth
- type ImageRepoScheme
- type ImageRepoType
- type LocalAvailable
- type LocalService
- type Manifest
- type ManifestList
- type SoftwareInfo
- type SoftwareInfoStatus
- type Spec
- type Status
Constants ¶
const GroupName = "kubean.io"
GroupName specifies the group name used to register the objects.
Variables ¶
var ( // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder runtime.SchemeBuilder // Depreciated: use Install instead AddToScheme = localSchemeBuilder.AddToScheme Install = localSchemeBuilder.AddToScheme )
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}
GroupVersion specifies the group and the version used to register the objects.
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects Deprecated: use GroupVersion instead.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type DockerInfo ¶
type DockerInfo struct { OS string `json:"os"` // +optional DefaultVersion string `json:"defaultVersion,omitempty"` // +optional VersionRange []string `json:"versionRange,omitempty"` }
func (*DockerInfo) DeepCopy ¶
func (in *DockerInfo) DeepCopy() *DockerInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerInfo.
func (*DockerInfo) DeepCopyInto ¶
func (in *DockerInfo) DeepCopyInto(out *DockerInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DockerInfoStatus ¶
type DockerInfoStatus struct { OS string `json:"os"` // +optional VersionRange []string `json:"versionRange,omitempty"` }
func (*DockerInfoStatus) DeepCopy ¶
func (in *DockerInfoStatus) DeepCopy() *DockerInfoStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerInfoStatus.
func (*DockerInfoStatus) DeepCopyInto ¶
func (in *DockerInfoStatus) DeepCopyInto(out *DockerInfoStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DockerInfoStatus) Merge ¶
func (info *DockerInfoStatus) Merge(versionRange []string) bool
type HostsMap ¶
type HostsMap struct { // +required Domain string `json:"domain,omitempty" yaml:"domain,omitempty"` // +required Address string `json:"address,omitempty" yaml:"address,omitempty"` }
func (*HostsMap) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HostsMap.
func (*HostsMap) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageRepoPasswordAuth ¶
type ImageRepoPasswordAuth struct { // +optional ImageRepoAddress string `json:"imageRepoAddress" yaml:"imageRepoAddress"` // +optional UserName string `json:"userName" yaml:"userName"` // +optional PasswordBase64 string `json:"passwordBase64" yaml:"passwordBase64"` }
func (*ImageRepoPasswordAuth) DeepCopy ¶
func (in *ImageRepoPasswordAuth) DeepCopy() *ImageRepoPasswordAuth
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ImageRepoPasswordAuth.
func (*ImageRepoPasswordAuth) DeepCopyInto ¶
func (in *ImageRepoPasswordAuth) DeepCopyInto(out *ImageRepoPasswordAuth)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ImageRepoScheme ¶ added in v0.6.0
type ImageRepoScheme string
const ( HTTP ImageRepoScheme = "http" HTTPS ImageRepoScheme = "https" )
type ImageRepoType ¶
type ImageRepoType string
const ( KubeImageRepo ImageRepoType = "kubeImageRepo" GCRImageRepo ImageRepoType = "gcrImageRepo" GithubImageRepo ImageRepoType = "githubImageRepo" DockerImageRepo ImageRepoType = "dockerImageRepo" QuayImageRepo ImageRepoType = "quayImageRepo" )
type LocalAvailable ¶
type LocalAvailable struct { // +optional KubesprayImage string `json:"kubesprayImage,omitempty"` // +optional Components []*SoftwareInfoStatus `json:"components,omitempty"` // +optional Docker []*DockerInfoStatus `json:"docker,omitempty"` }
func (*LocalAvailable) DeepCopy ¶
func (in *LocalAvailable) DeepCopy() *LocalAvailable
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalAvailable.
func (*LocalAvailable) DeepCopyInto ¶
func (in *LocalAvailable) DeepCopyInto(out *LocalAvailable)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalAvailable) MergeDockerInfo ¶
func (status *LocalAvailable) MergeDockerInfo(osName string, versionRange []string) bool
func (*LocalAvailable) MergeSoftwareInfo ¶
func (status *LocalAvailable) MergeSoftwareInfo(name string, versionRange []string) bool
type LocalService ¶
type LocalService struct { // +optional ImageRepo map[ImageRepoType]string `json:"imageRepo,omitempty" yaml:"imageRepo,omitempty"` // +optional ImageRepoAuth []ImageRepoPasswordAuth `json:"imageRepoAuth,omitempty" yaml:"imageRepoAuth,omitempty"` // +optional // +kubebuilder:default="https" ImageRepoScheme *ImageRepoScheme `json:"imageRepoScheme,omitempty" yaml:"imageRepoScheme,omitempty"` // +optional FilesRepo string `json:"filesRepo,omitempty" yaml:"filesRepo,omitempty"` // +optional YumRepos map[string][]string `json:"yumRepos,omitempty" yaml:"yumRepos,omitempty"` // +optional HostsMap []*HostsMap `json:"hostsMap,omitempty" yaml:"hostsMap,omitempty"` }
func (*LocalService) DeepCopy ¶
func (in *LocalService) DeepCopy() *LocalService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalService.
func (*LocalService) DeepCopyInto ¶
func (in *LocalService) DeepCopyInto(out *LocalService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*LocalService) GetGHCRImageRepo ¶
func (localService *LocalService) GetGHCRImageRepo() string
type Manifest ¶
type Manifest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` // +required Spec Spec `json:"spec"` // +optional Status Status `json:"status,omitempty"` }
func (*Manifest) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manifest.
func (*Manifest) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Manifest) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManifestList ¶
type ManifestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` // Items holds a list of KubeanClusterConfig. Items []Manifest `json:"items"` }
func (*ManifestList) DeepCopy ¶
func (in *ManifestList) DeepCopy() *ManifestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestList.
func (*ManifestList) DeepCopyInto ¶
func (in *ManifestList) DeepCopyInto(out *ManifestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManifestList) DeepCopyObject ¶
func (in *ManifestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SoftwareInfo ¶
type SoftwareInfo struct { Name string `json:"name"` // +optional DefaultVersion string `json:"defaultVersion,omitempty"` // +optional VersionRange []string `json:"versionRange,omitempty"` }
func (*SoftwareInfo) DeepCopy ¶
func (in *SoftwareInfo) DeepCopy() *SoftwareInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SoftwareInfo.
func (*SoftwareInfo) DeepCopyInto ¶
func (in *SoftwareInfo) DeepCopyInto(out *SoftwareInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SoftwareInfoStatus ¶
type SoftwareInfoStatus struct { Name string `json:"name"` // +optional VersionRange []string `json:"versionRange,omitempty"` }
func (*SoftwareInfoStatus) DeepCopy ¶
func (in *SoftwareInfoStatus) DeepCopy() *SoftwareInfoStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SoftwareInfoStatus.
func (*SoftwareInfoStatus) DeepCopyInto ¶
func (in *SoftwareInfoStatus) DeepCopyInto(out *SoftwareInfoStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SoftwareInfoStatus) Merge ¶
func (status *SoftwareInfoStatus) Merge(versionRange []string) bool
type Spec ¶
type Spec struct { // +optional LocalService LocalService `json:"localService,omitempty"` // +required KubesprayVersion string `json:"kubesprayVersion,omitempty"` // KubeanVersion , the tag of kubean-io // +required KubeanVersion string `json:"kubeanVersion,omitempty"` // +optional Components []*SoftwareInfo `json:"components,omitempty"` // +optional Docker []*DockerInfo `json:"docker,omitempty"` }
func (*Spec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Spec.
func (*Spec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Status ¶
type Status struct { // +optional LocalAvailable LocalAvailable `json:"localAvailable,omitempty"` }
func (*Status) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.