v1alpha1

package
v0.0.310 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the application v1alpha1 API group +kubebuilder:object:generate=true +groupName=application.kubesphere.io

Index

Constants

View Source
const (
	MsgLen               = 512
	HelmRepoSyncStateLen = 10

	// app version state
	StateDraft     = "draft"
	StateSubmitted = "submitted"
	StatePassed    = "passed"
	StateRejected  = "rejected"
	StateSuspended = "suspended"
	StateActive    = "active"

	// repo state
	RepoStateSuccessful = "successful"
	RepoStateFailed     = "failed"
	RepoStateSyncing    = "syncing"

	// helm release state
	HelmStatusActive      = "active"
	HelmStatusCreating    = "creating"
	HelmStatusDeleting    = "deleting"
	HelmStatusUpgrading   = "upgrading"
	HelmStatusRollbacking = "rollbacking"
	HelmStatusFailed      = "failed"
	HelmStatusCreated     = "created"
	HelmStatusUpgraded    = "upgraded"

	AttachmentTypeScreenshot = "screenshot"
	AttachmentTypeIcon       = "icon"

	HelmApplicationAppStoreSuffix  = "-store"
	HelmApplicationIdPrefix        = "app-"
	HelmRepoIdPrefix               = "repo-"
	HelmApplicationVersionIdPrefix = "appv-"
	HelmCategoryIdPrefix           = "ctg-"
	HelmAttachmentPrefix           = "att-"
	HelmReleasePrefix              = "rls-"
	UncategorizedName              = "uncategorized"
	UncategorizedId                = "ctg-uncategorized"
	AppStoreRepoId                 = "repo-helm"

	ApplicationInstance = "app.kubesphere.io/instance"

	OriginWorkspaceLabelKey = "kubesphere.io/workspace-origin"
)
View Source
const (
	ResourceKindHelmApplication     = "HelmApplication"
	ResourceSingularHelmApplication = "helmapplication"
	ResourcePluralHelmApplication   = "helmapplications"
)
View Source
const (
	ResourceKindHelmApplicationVersion     = "HelmApplicationVersion"
	ResourceSingularHelmApplicationVersion = "helmapplicationversion"
	ResourcePluralHelmApplicationVersion   = "helmapplicationversions"
)
View Source
const (
	ResourceKindHelmCategory     = "HelmCategory"
	ResourceSingularHelmCategory = "helmcategory"
	ResourcePluralHelmCategory   = "helmcategories"
)
View Source
const (
	ResourceKindHelmRelease     = "HelmRelease"
	ResourceSingularHelmRelease = "helmrelease"
	ResourcePluralHelmRelease   = "helmreleases"
)
View Source
const (
	ResourceKindHelmRepo     = "HelmRepo"
	ResourceSingularHelmRepo = "helmrepo"
	ResourcePluralHelmRepo   = "helmrepos"
)

Variables

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

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

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Types

type Audit

type Audit struct {
	// audit message
	Message string `json:"message,omitempty"`
	// audit state: submitted, passed, draft, active, rejected, suspended
	State string `json:"state,omitempty"`
	// audit time
	Time metav1.Time `json:"time"`
	// audit operator
	Operator     string `json:"operator,omitempty"`
	OperatorType string `json:"operatorType,omitempty"`
}

func (*Audit) DeepCopy

func (in *Audit) DeepCopy() *Audit

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

func (*Audit) DeepCopyInto

func (in *Audit) DeepCopyInto(out *Audit)

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

type Dependency

type Dependency struct {
	// Name is the name of the dependency.
	// This must mach the name in the dependency's Chart.yaml.
	Name string `json:"name"`
	// Version is the version (range) of this chart.
	// A lock file will always produce a single version, while a dependency
	// may contain a semantic version range.
	Version string `json:"version,omitempty"`
	// The URL to the repository.
	// Appending `index.yaml` to this string should result in a URL that can be
	// used to fetch the repository index.
	Repository string `json:"repository"`
	// A yaml path that resolves to a boolean, used for enabling/disabling charts (e.g. subchart1.enabled )
	Condition string `json:"condition,omitempty"`
	// Tags can be used to group charts for enabling/disabling together
	Tags []string `json:"tags,omitempty"`
	// Enabled bool determines if chart should be loaded
	Enabled bool `json:"enabled,omitempty"`

	// Alias usable alias to be used for the chart
	Alias string `json:"alias,omitempty"`
}

Dependency describes a chart upon which another chart depends. Dependencies can be used to express developer intent, or to capture the state of a chart.

func (*Dependency) DeepCopy

func (in *Dependency) DeepCopy() *Dependency

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

func (*Dependency) DeepCopyInto

func (in *Dependency) DeepCopyInto(out *Dependency)

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

type HelmApplication

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

	Spec   HelmApplicationSpec   `json:"spec,omitempty"`
	Status HelmApplicationStatus `json:"status,omitempty"`
}

HelmApplication is the Schema for the helmapplications API

func (*HelmApplication) DeepCopy

func (in *HelmApplication) DeepCopy() *HelmApplication

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

func (*HelmApplication) DeepCopyInto

func (in *HelmApplication) DeepCopyInto(out *HelmApplication)

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

func (*HelmApplication) DeepCopyObject

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

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

func (*HelmApplication) GetCategoryId

func (in *HelmApplication) GetCategoryId() string

func (*HelmApplication) GetCreator

func (in *HelmApplication) GetCreator() string

func (*HelmApplication) GetHelmApplicationId

func (in *HelmApplication) GetHelmApplicationId() string

func (*HelmApplication) GetHelmCategoryId

func (in *HelmApplication) GetHelmCategoryId() string

func (*HelmApplication) GetHelmRepoId

func (in *HelmApplication) GetHelmRepoId() string

func (*HelmApplication) GetTrueName

func (in *HelmApplication) GetTrueName() string

func (*HelmApplication) GetWorkspace

func (in *HelmApplication) GetWorkspace() string

func (*HelmApplication) State

func (in *HelmApplication) State() string

type HelmApplicationList

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

HelmApplicationList contains a list of HelmApplication

func (*HelmApplicationList) DeepCopy

func (in *HelmApplicationList) DeepCopy() *HelmApplicationList

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

func (*HelmApplicationList) DeepCopyInto

func (in *HelmApplicationList) DeepCopyInto(out *HelmApplicationList)

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

func (*HelmApplicationList) DeepCopyObject

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

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

type HelmApplicationSpec

type HelmApplicationSpec struct {
	// the name of the helm application
	Name string `json:"name"`
	// description from chart's description or frontend
	Description string `json:"description,omitempty"`
	// attachments id
	Attachments []string `json:"attachments,omitempty"`
	// info from frontend
	Abstraction string `json:"abstraction,omitempty"`
	AppHome     string `json:"appHome,omitempty"`
	// The attachment id of the icon
	Icon string `json:"icon,omitempty"`
}

HelmApplicationSpec defines the desired state of HelmApplication

func (*HelmApplicationSpec) DeepCopy

func (in *HelmApplicationSpec) DeepCopy() *HelmApplicationSpec

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

func (*HelmApplicationSpec) DeepCopyInto

func (in *HelmApplicationSpec) DeepCopyInto(out *HelmApplicationSpec)

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

type HelmApplicationStatus

type HelmApplicationStatus struct {
	// If this application belong to appStore, latestVersion is the the latest version of the active application version.
	// otherwise latestVersion is the latest version of all application version
	LatestVersion string `json:"latestVersion,omitempty"`
	// the state of the helm application: draft, submitted, passed, rejected, suspended, active
	State      string       `json:"state,omitempty"`
	UpdateTime *metav1.Time `json:"updateTime"`
	StatusTime *metav1.Time `json:"statusTime"`
}

HelmApplicationStatus defines the observed state of HelmApplication

func (*HelmApplicationStatus) DeepCopy

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

func (*HelmApplicationStatus) DeepCopyInto

func (in *HelmApplicationStatus) DeepCopyInto(out *HelmApplicationStatus)

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

type HelmApplicationVersion

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

	Spec   HelmApplicationVersionSpec   `json:"spec,omitempty"`
	Status HelmApplicationVersionStatus `json:"status,omitempty"`
}

HelmApplicationVersion is the Schema for the helmapplicationversions API

func (*HelmApplicationVersion) DeepCopy

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

func (*HelmApplicationVersion) DeepCopyInto

func (in *HelmApplicationVersion) DeepCopyInto(out *HelmApplicationVersion)

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

func (*HelmApplicationVersion) DeepCopyObject

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

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

func (*HelmApplicationVersion) GetChartAppVersion

func (in *HelmApplicationVersion) GetChartAppVersion() string

func (*HelmApplicationVersion) GetChartVersion

func (in *HelmApplicationVersion) GetChartVersion() string

func (*HelmApplicationVersion) GetCreator

func (in *HelmApplicationVersion) GetCreator() string

func (*HelmApplicationVersion) GetHelmApplicationId

func (in *HelmApplicationVersion) GetHelmApplicationId() string

func (*HelmApplicationVersion) GetHelmApplicationVersionId

func (in *HelmApplicationVersion) GetHelmApplicationVersionId() string

func (*HelmApplicationVersion) GetHelmRepoId

func (in *HelmApplicationVersion) GetHelmRepoId() string

func (*HelmApplicationVersion) GetSemver

func (in *HelmApplicationVersion) GetSemver() string

func (*HelmApplicationVersion) GetTrueName

func (in *HelmApplicationVersion) GetTrueName() string

func (*HelmApplicationVersion) GetVersionName

func (in *HelmApplicationVersion) GetVersionName() string

func (*HelmApplicationVersion) GetWorkspace

func (in *HelmApplicationVersion) GetWorkspace() string

func (*HelmApplicationVersion) State

func (in *HelmApplicationVersion) State() string

type HelmApplicationVersionList

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

HelmApplicationVersionList contains a list of HelmApplicationVersion

func (*HelmApplicationVersionList) DeepCopy

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

func (*HelmApplicationVersionList) DeepCopyInto

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

func (*HelmApplicationVersionList) DeepCopyObject

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

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

type HelmApplicationVersionSpec

type HelmApplicationVersionSpec struct {
	// metadata from chart
	*Metadata `json:",inline"`
	// chart url
	URLs []string `json:"urls,omitempty"`
	// raw data of chart, it will !!!NOT!!! be save to etcd
	Data []byte `json:"data,omitempty"`

	// dataKey in the storage
	DataKey string `json:"dataKey,omitempty"`

	// chart create time
	Created *metav1.Time `json:"created,omitempty"`

	// chart digest
	Digest string `json:"digest,omitempty"`
}

HelmApplicationVersionSpec defines the desired state of HelmApplicationVersion

func (*HelmApplicationVersionSpec) DeepCopy

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

func (*HelmApplicationVersionSpec) DeepCopyInto

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

type HelmApplicationVersionStatus

type HelmApplicationVersionStatus struct {
	State string  `json:"state,omitempty"`
	Audit []Audit `json:"audit,omitempty"`
}

HelmApplicationVersionStatus defines the observed state of HelmApplicationVersion

func (*HelmApplicationVersionStatus) DeepCopy

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

func (*HelmApplicationVersionStatus) DeepCopyInto

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

type HelmCategory

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

	Spec   HelmCategorySpec   `json:"spec,omitempty"`
	Status HelmCategoryStatus `json:"status,omitempty"`
}

HelmCategory is the Schema for the helmcategories API

func (*HelmCategory) DeepCopy

func (in *HelmCategory) DeepCopy() *HelmCategory

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

func (*HelmCategory) DeepCopyInto

func (in *HelmCategory) DeepCopyInto(out *HelmCategory)

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

func (*HelmCategory) DeepCopyObject

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

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

func (*HelmCategory) GetTrueName

func (in *HelmCategory) GetTrueName() string

type HelmCategoryList

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

HelmCategoryList contains a list of HelmCategory

func (*HelmCategoryList) DeepCopy

func (in *HelmCategoryList) DeepCopy() *HelmCategoryList

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

func (*HelmCategoryList) DeepCopyInto

func (in *HelmCategoryList) DeepCopyInto(out *HelmCategoryList)

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

func (*HelmCategoryList) DeepCopyObject

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

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

type HelmCategorySpec

type HelmCategorySpec struct {
	// name of the category
	Name string `json:"name"`
	// info from frontend
	Description string `json:"description,omitempty"`
	Locale      string `json:"locale,omitempty"`
}

HelmCategorySpec defines the desired state of HelmRepo

func (*HelmCategorySpec) DeepCopy

func (in *HelmCategorySpec) DeepCopy() *HelmCategorySpec

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

func (*HelmCategorySpec) DeepCopyInto

func (in *HelmCategorySpec) DeepCopyInto(out *HelmCategorySpec)

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

type HelmCategoryStatus

type HelmCategoryStatus struct {
	// total helmapplications belong to this category
	Total int `json:"total"`
}

func (*HelmCategoryStatus) DeepCopy

func (in *HelmCategoryStatus) DeepCopy() *HelmCategoryStatus

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

func (*HelmCategoryStatus) DeepCopyInto

func (in *HelmCategoryStatus) DeepCopyInto(out *HelmCategoryStatus)

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

type HelmRelease

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

	Spec   HelmReleaseSpec   `json:"spec,omitempty"`
	Status HelmReleaseStatus `json:"status,omitempty"`
}

HelmRelease is the Schema for the helmreleases API

func (*HelmRelease) DeepCopy

func (in *HelmRelease) DeepCopy() *HelmRelease

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

func (*HelmRelease) DeepCopyInto

func (in *HelmRelease) DeepCopyInto(out *HelmRelease)

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

func (*HelmRelease) DeepCopyObject

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

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

func (*HelmRelease) GetChartAppVersion

func (in *HelmRelease) GetChartAppVersion() string

func (*HelmRelease) GetChartVersion

func (in *HelmRelease) GetChartVersion() string

func (*HelmRelease) GetChartVersionName

func (in *HelmRelease) GetChartVersionName() string

func (*HelmRelease) GetCreator

func (in *HelmRelease) GetCreator() string

func (*HelmRelease) GetRlsCluster

func (in *HelmRelease) GetRlsCluster() string

func (*HelmRelease) GetRlsNamespace

func (in *HelmRelease) GetRlsNamespace() string

func (*HelmRelease) GetTrueName

func (in *HelmRelease) GetTrueName() string

func (*HelmRelease) GetWorkspace

func (in *HelmRelease) GetWorkspace() string

type HelmReleaseDeployStatus

type HelmReleaseDeployStatus struct {
	// A human readable message indicating details about why the release is in this state.
	Message string `json:"message,omitempty"`
	// current state of the release
	State string `json:"state"`
	// deploy time, upgrade time or check status time
	Time metav1.Time `json:"deployTime"`
}

func (*HelmReleaseDeployStatus) DeepCopy

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

func (*HelmReleaseDeployStatus) DeepCopyInto

func (in *HelmReleaseDeployStatus) DeepCopyInto(out *HelmReleaseDeployStatus)

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

type HelmReleaseList

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

HelmReleaseList contains a list of HelmRelease

func (*HelmReleaseList) DeepCopy

func (in *HelmReleaseList) DeepCopy() *HelmReleaseList

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

func (*HelmReleaseList) DeepCopyInto

func (in *HelmReleaseList) DeepCopyInto(out *HelmReleaseList)

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

func (*HelmReleaseList) DeepCopyObject

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

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

type HelmReleaseSpec

type HelmReleaseSpec struct {
	// Name of the release
	Name string `json:"name"`
	// Message got from frontend
	Description string `json:"description,omitempty"`
	// helm release values.yaml
	Values []byte `json:"values,omitempty"`
	// The name of the chart which will be installed.
	ChartName string `json:"chartName"`
	// Specify the exact chart version to install. If this is not specified, the latest version is installed
	ChartVersion string `json:"chartVersion"`
	// appVersion from Chart.yaml
	ChartAppVersion string `json:"chartAppVer,omitempty"`
	// id of  the repo
	RepoId string `json:"repoId,omitempty"`
	// id of the helmapplication
	ApplicationId string `json:"appId,omitempty"`
	// application version id
	ApplicationVersionId string `json:"appVerId,omitempty"`
	// expected release version, when this version is not equal status.version, the release need upgrade
	// this filed should be modified when any filed of the spec modified.
	Version int `json:"version"`
}

HelmReleaseSpec defines the desired state of HelmRelease

func (*HelmReleaseSpec) DeepCopy

func (in *HelmReleaseSpec) DeepCopy() *HelmReleaseSpec

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

func (*HelmReleaseSpec) DeepCopyInto

func (in *HelmReleaseSpec) DeepCopyInto(out *HelmReleaseSpec)

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

type HelmReleaseStatus

type HelmReleaseStatus struct {
	// current state
	State string `json:"state"`
	// A human readable message indicating details about why the release is in this state.
	Message string `json:"message,omitempty"`
	// current release version
	Version int `json:"version,omitempty"`
	// deploy status list of history, which will store at most 10 state
	DeployStatus []HelmReleaseDeployStatus `json:"deployStatus,omitempty"`
	// last update time
	LastUpdate metav1.Time `json:"lastUpdate,omitempty"`
	// last deploy time or upgrade time
	LastDeployed *metav1.Time `json:"lastDeployed,omitempty"`
}

HelmReleaseStatus defines the observed state of HelmRelease

func (*HelmReleaseStatus) DeepCopy

func (in *HelmReleaseStatus) DeepCopy() *HelmReleaseStatus

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

func (*HelmReleaseStatus) DeepCopyInto

func (in *HelmReleaseStatus) DeepCopyInto(out *HelmReleaseStatus)

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

type HelmRepo

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

	Spec   HelmRepoSpec   `json:"spec,omitempty"`
	Status HelmRepoStatus `json:"status,omitempty"`
}

HelmRepo is the Schema for the helmrepoes API

func (*HelmRepo) DeepCopy

func (in *HelmRepo) DeepCopy() *HelmRepo

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

func (*HelmRepo) DeepCopyInto

func (in *HelmRepo) DeepCopyInto(out *HelmRepo)

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

func (*HelmRepo) DeepCopyObject

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

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

func (*HelmRepo) GetCreator

func (in *HelmRepo) GetCreator() string

func (*HelmRepo) GetHelmRepoId

func (in *HelmRepo) GetHelmRepoId() string

func (*HelmRepo) GetTrueName

func (in *HelmRepo) GetTrueName() string

func (*HelmRepo) GetWorkspace

func (in *HelmRepo) GetWorkspace() string

type HelmRepoCredential

type HelmRepoCredential struct {
	// chart repository username
	Username string `json:"username,omitempty"`
	// chart repository password
	Password string `json:"password,omitempty"`
	// identify HTTPS client using this SSL certificate file
	CertFile string `json:"certFile,omitempty"`
	// identify HTTPS client using this SSL key file
	KeyFile string `json:"keyFile,omitempty"`
	// verify certificates of HTTPS-enabled servers using this CA bundle
	CAFile string `json:"caFile,omitempty"`
	// skip tls certificate checks for the repository, default is ture
	InsecureSkipTLSVerify *bool `json:"insecureSkipTLSVerify,omitempty"`

	S3Config `json:",inline"`
}

func (*HelmRepoCredential) DeepCopy

func (in *HelmRepoCredential) DeepCopy() *HelmRepoCredential

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

func (*HelmRepoCredential) DeepCopyInto

func (in *HelmRepoCredential) DeepCopyInto(out *HelmRepoCredential)

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

type HelmRepoList

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

HelmRepoList contains a list of HelmRepo

func (*HelmRepoList) DeepCopy

func (in *HelmRepoList) DeepCopy() *HelmRepoList

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

func (*HelmRepoList) DeepCopyInto

func (in *HelmRepoList) DeepCopyInto(out *HelmRepoList)

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

func (*HelmRepoList) DeepCopyObject

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

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

type HelmRepoSpec

type HelmRepoSpec struct {
	// name of the repo
	Name string `json:"name"`
	// helm repo url
	Url string `json:"url"`
	// helm repo credential
	Credential HelmRepoCredential `json:"credential,omitempty"`
	// chart repo description from frontend
	Description string `json:"description,omitempty"`
	// sync period in seconds, no sync when SyncPeriod=0, the minimum SyncPeriod is 180s
	SyncPeriod int `json:"syncPeriod,omitempty"`
	// expected repo version, when this version is not equal status.version, the repo need upgrade
	// this filed should be modified when any filed of the spec modified.
	Version int `json:"version,omitempty"`
}

HelmRepoSpec defines the desired state of HelmRepo

func (*HelmRepoSpec) DeepCopy

func (in *HelmRepoSpec) DeepCopy() *HelmRepoSpec

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

func (*HelmRepoSpec) DeepCopyInto

func (in *HelmRepoSpec) DeepCopyInto(out *HelmRepoSpec)

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

type HelmRepoStatus

type HelmRepoStatus struct {
	// repo index
	Data string `json:"data,omitempty"`
	// status last update time
	LastUpdateTime *metav1.Time `json:"lastUpdateTime,omitempty"`
	// current state of the repo, successful, failed or syncing
	State string `json:"state,omitempty"`
	// sync state list of history, which will store at most 10 state
	SyncState []HelmRepoSyncState `json:"syncState,omitempty"`
	// if status.version!=spec.Version, we need sync the repo now
	Version int `json:"version,omitempty"`
}

HelmRepoStatus defines the observed state of HelmRepo

func (*HelmRepoStatus) DeepCopy

func (in *HelmRepoStatus) DeepCopy() *HelmRepoStatus

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

func (*HelmRepoStatus) DeepCopyInto

func (in *HelmRepoStatus) DeepCopyInto(out *HelmRepoStatus)

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

type HelmRepoSyncState

type HelmRepoSyncState struct {
	// last sync state, valid state are: "failed", "success", and ""
	State string `json:"state,omitempty"`
	// A human readable message indicating details about why the repo is in this state.
	Message  string       `json:"message,omitempty"`
	SyncTime *metav1.Time `json:"syncTime"`
}

func (*HelmRepoSyncState) DeepCopy

func (in *HelmRepoSyncState) DeepCopy() *HelmRepoSyncState

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

func (*HelmRepoSyncState) DeepCopyInto

func (in *HelmRepoSyncState) DeepCopyInto(out *HelmRepoSyncState)

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

type Maintainer

type Maintainer struct {
	// Name is a user name or organization name
	Name string `json:"name,omitempty"`
	// Email is an optional email address to contact the named maintainer
	Email string `json:"email,omitempty"`
	// URL is an optional URL to an address for the named maintainer
	URL string `json:"url,omitempty"`
}

Maintainer describes a Chart maintainer.

func (*Maintainer) DeepCopy

func (in *Maintainer) DeepCopy() *Maintainer

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

func (*Maintainer) DeepCopyInto

func (in *Maintainer) DeepCopyInto(out *Maintainer)

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

type Metadata

type Metadata struct {
	// The name of the chart
	Name string `json:"name,omitempty"`
	// The URL to a relevant project page, git repo, or contact person
	Home string `json:"home,omitempty"`
	// Source is the URL to the source code of this chart
	Sources []string `json:"sources,omitempty"`
	// A SemVer 2 conformant version string of the chart
	Version string `json:"version,omitempty"`
	// A one-sentence description of the chart
	Description string `json:"description,omitempty"`
	// A list of string keywords
	Keywords []string `json:"keywords,omitempty"`
	// A list of name and URL/email address combinations for the maintainer(s)
	Maintainers []*Maintainer `json:"maintainers,omitempty"`
	// The URL to an icon file.
	Icon string `json:"icon,omitempty"`
	// The API Version of this chart.
	APIVersion string `json:"apiVersion,omitempty"`
	// The condition to check to enable chart
	Condition string `json:"condition,omitempty"`
	// The tags to check to enable chart
	Tags string `json:"tags,omitempty"`
	// The version of the application enclosed inside of this chart.
	AppVersion string `json:"appVersion,omitempty"`
	// Whether or not this chart is deprecated
	Deprecated bool `json:"deprecated,omitempty"`
	// Annotations are additional mappings uninterpreted by Helm,
	// made available for inspection by other applications.
	Annotations map[string]string `json:"annotations,omitempty"`
	// KubeVersion is a SemVer constraint specifying the version of Kubernetes required.
	KubeVersion string `json:"kubeVersion,omitempty"`
	// Dependencies are a list of dependencies for a chart.
	Dependencies []*Dependency `json:"dependencies,omitempty"`
	// Specifies the chart type: application or library
	Type string `json:"type,omitempty"`
}

Metadata for a Chart file. This models the structure of a Chart.yaml file.

func (*Metadata) DeepCopy

func (in *Metadata) DeepCopy() *Metadata

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

func (*Metadata) DeepCopyInto

func (in *Metadata) DeepCopyInto(out *Metadata)

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

type S3Config

type S3Config struct {
	AccessKeyID     string `json:"accessKeyID,omitempty"`
	SecretAccessKey string `json:"secretAccessKey,omitempty"`
}

func (*S3Config) DeepCopy

func (in *S3Config) DeepCopy() *S3Config

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

func (*S3Config) DeepCopyInto

func (in *S3Config) DeepCopyInto(out *S3Config)

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