v1alpha1

package
v0.17.5 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 4 Imported by: 5

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API. +k8s:deepcopy-gen=package,register +groupName=kubean.io

Index

Constants

View Source
const GroupName = "kubean.io"

GroupName specifies the group name used to register the objects.

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	// Depreciated: use Install instead
	AddToScheme = localSchemeBuilder.AddToScheme
	Install     = localSchemeBuilder.AddToScheme
)
View Source
var GroupVersion = v1.GroupVersion{Group: GroupName, Version: "v1alpha1"}

GroupVersion specifies the group and the version used to register the objects.

View Source
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

func (in *HostsMap) DeepCopy() *HostsMap

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

func (*HostsMap) DeepCopyInto

func (in *HostsMap) DeepCopyInto(out *HostsMap)

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

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

func (in *Manifest) DeepCopy() *Manifest

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

func (*Manifest) DeepCopyInto

func (in *Manifest) DeepCopyInto(out *Manifest)

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

func (*Manifest) DeepCopyObject

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

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

func (in *Spec) DeepCopy() *Spec

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

func (*Spec) DeepCopyInto

func (in *Spec) DeepCopyInto(out *Spec)

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

func (in *Status) DeepCopy() *Status

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

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

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