application

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 5 Imported by: 0

Documentation

Overview

Package application is the internal version of the API.

Index

Constants

View Source
const GroupName = "application.tkestack.io"

GroupName is group name used to register these schema

Variables

View Source
var (
	// Scheme is the default instance of runtime.Scheme to which types in the TKE API are already registered.
	Scheme = runtime.NewScheme()
	// Codecs provides access to encoding and decoding for the scheme
	Codecs = serializer.NewCodecFactory(Scheme)
	// ParameterCodec handles versioning of objects that are converted to query parameters.
	ParameterCodec = runtime.NewParameterCodec(Scheme)
)
View Source
var (
	// SchemeBuilder collects functions that add things to a scheme.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme applies all the stored functions to the scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}

SchemeGroupVersion is group version used to register these objects

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 back a Group qualified GroupResource

Types

type App

type App struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of bootstrap in this set.
	// +optional
	Spec AppSpec
	// +optional
	Status AppStatus
}

App is a app bootstrap in TKE.

func (*App) DeepCopy

func (in *App) DeepCopy() *App

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

func (*App) DeepCopyInto

func (in *App) DeepCopyInto(out *App)

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

func (*App) DeepCopyObject

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

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

type AppHistory

type AppHistory struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of bootstrap in this set.
	// +optional
	Spec AppHistorySpec
}

AppHistory is a app history in TKE.

func (*AppHistory) DeepCopy

func (in *AppHistory) DeepCopy() *AppHistory

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

func (*AppHistory) DeepCopyInto

func (in *AppHistory) DeepCopyInto(out *AppHistory)

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

func (*AppHistory) DeepCopyObject

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

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

type AppHistorySpec

type AppHistorySpec struct {
	Type          AppType
	TenantID      string
	Name          string
	TargetCluster string
	// +optional
	Histories []History
}

AppHistorySpec is a description of a AppHistory.

func (*AppHistorySpec) DeepCopy

func (in *AppHistorySpec) DeepCopy() *AppHistorySpec

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

func (*AppHistorySpec) DeepCopyInto

func (in *AppHistorySpec) DeepCopyInto(out *AppHistorySpec)

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

type AppList

type AppList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta

	// List of bootstraps
	Items []App
}

AppList is the whole list of all bootstraps.

func (*AppList) DeepCopy

func (in *AppList) DeepCopy() *AppList

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

func (*AppList) DeepCopyInto

func (in *AppList) DeepCopyInto(out *AppList)

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

func (*AppList) DeepCopyObject

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

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

type AppPhase

type AppPhase string

AppPhase indicates the phase of app.

const (
	// ChartFetched means the chart to which the App refers
	// has been fetched successfully
	AppPhaseChartFetched AppPhase = "ChartFetched"
	// ChartFetchedFailed means the chart to which the App
	// refers could not be fetched.
	AppPhaseChartFetchFailed AppPhase = "ChartFetchFailed"

	// Installing means the installation for the App is running.
	AppPhaseInstalling AppPhase = "Installing"
	// Upgrading means the upgrade for the App is running.
	AppPhaseUpgrading AppPhase = "Upgrading"
	// Succeeded means the dry-run, installation, or upgrade for the
	// App succeeded.
	AppPhaseSucceeded AppPhase = "Succeeded"
	// Failed means the installation or upgrade for the App
	// failed.
	AppPhaseFailed AppPhase = "Failed"

	// RollingBack means a rollback for the App is running.
	AppPhaseRollingBack AppPhase = "RollingBack"
	// RolledBack means the App has been rolled back.
	AppPhaseRolledBack AppPhase = "RolledBack"
	// RolledBackFailed means the rollback for the App failed.
	AppPhaseRollbackFailed AppPhase = "RollbackFailed"

	// AppPhaseTerminating means the app is undergoing graceful termination.
	AppPhaseTerminating AppPhase = "Terminating"
	// SyncFailed means the synchrony for the App
	// failed.
	AppPhaseSyncFailed AppPhase = "SyncFailed"
)

type AppResource

type AppResource struct {
	metav1.TypeMeta
	// +optional
	metav1.ObjectMeta

	// Spec defines the desired identities of bootstrap in this set.
	// +optional
	Spec AppResourceSpec
}

AppResource is a app resource in TKE.

func (*AppResource) DeepCopy

func (in *AppResource) DeepCopy() *AppResource

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

func (*AppResource) DeepCopyInto

func (in *AppResource) DeepCopyInto(out *AppResource)

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

func (*AppResource) DeepCopyObject

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

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

type AppResourceSpec

type AppResourceSpec struct {
	Type          AppType
	TenantID      string
	Name          string
	TargetCluster string
	// +optional
	Resources Resources
}

AppResourceSpec is a description of a AppResource.

func (*AppResourceSpec) DeepCopy

func (in *AppResourceSpec) DeepCopy() *AppResourceSpec

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

func (*AppResourceSpec) DeepCopyInto

func (in *AppResourceSpec) DeepCopyInto(out *AppResourceSpec)

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

type AppSpec

type AppSpec struct {
	Type          AppType
	TenantID      string
	Name          string
	TargetCluster string
	// +optional
	Chart Chart
	// Values holds the values for this app.
	// +optional
	Values     AppValues
	Finalizers []FinalizerName
	// +optional
	DryRun bool
}

AppSpec is a description of a bootstrap.

func (*AppSpec) DeepCopy

func (in *AppSpec) DeepCopy() *AppSpec

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

func (*AppSpec) DeepCopyInto

func (in *AppSpec) DeepCopyInto(out *AppSpec)

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

type AppStatus

type AppStatus struct {
	// Phase the release is in, one of ('ChartFetched',
	// 'ChartFetchFailed', 'Installing', 'Upgrading', 'Succeeded',
	// 'RollingBack', 'RolledBack', 'RollbackFailed')
	// +optional
	Phase AppPhase
	// ObservedGeneration is the most recent generation observed by
	// the operator.
	// +optional
	ObservedGeneration int64
	// ReleaseStatus is the status as given by Helm for the release
	// managed by this resource.
	// +optional
	ReleaseStatus string
	// ReleaseLastUpdated is the last updated time for the release
	// +optional
	ReleaseLastUpdated metav1.Time
	// Revision holds the Git hash or version of the chart currently
	// deployed.
	// +optional
	Revision int64
	// RollbackRevision specify the target rollback version of the chart
	// +optional
	RollbackRevision int64
	// The last time the condition transitioned from one status to another.
	// +optional
	LastTransitionTime metav1.Time
	// The reason for the condition's last transition.
	// +optional
	Reason string
	// A human readable message indicating details about the transition.
	// +optional
	Message string
	// Dryrun result.
	// +optional
	Manifest string
}

AppStatus represents information about the status of a bootstrap.

func (*AppStatus) DeepCopy

func (in *AppStatus) DeepCopy() *AppStatus

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

func (*AppStatus) DeepCopyInto

func (in *AppStatus) DeepCopyInto(out *AppStatus)

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

type AppType

type AppType string

AppType indicates the type of app.

const (
	// AppTypeHelmV3 means the app is a Helm3 release
	AppTypeHelmV3 AppType = "HelmV3"
)

type AppValues

type AppValues struct {
	RawValuesType RawValuesType
	RawValues     string
	Values        []string
}

AppValues string the values for this app.

func (*AppValues) DeepCopy

func (in *AppValues) DeepCopy() *AppValues

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

func (*AppValues) DeepCopyInto

func (in *AppValues) DeepCopyInto(out *AppValues)

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

type Chart

type Chart struct {
	TenantID       string
	ChartGroupName string
	ChartName      string
	ChartVersion   string
	RepoURL        string
	RepoUsername   string
	RepoPassword   string
	ImportedRepo   bool
}

Chart is a description of a chart.

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 ConfigMap

type ConfigMap struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta

	// Data contains the configuration data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// Values with non-UTF-8 byte sequences must use the BinaryData field.
	// The keys stored in Data must not overlap with the keys in
	// the BinaryData field, this is enforced during validation process.
	// +optional
	Data map[string]string

	// BinaryData contains the binary data.
	// Each key must consist of alphanumeric characters, '-', '_' or '.'.
	// BinaryData can contain byte sequences that are not in the UTF-8 range.
	// The keys stored in BinaryData must not overlap with the ones in
	// the Data field, this is enforced during validation process.
	// +optional
	BinaryData map[string][]byte
}

ConfigMap holds configuration data for tke to consume.

func (*ConfigMap) DeepCopy

func (in *ConfigMap) DeepCopy() *ConfigMap

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

func (*ConfigMap) DeepCopyInto

func (in *ConfigMap) DeepCopyInto(out *ConfigMap)

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

func (*ConfigMap) DeepCopyObject

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

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

type ConfigMapList

type ConfigMapList struct {
	metav1.TypeMeta
	// +optional
	metav1.ListMeta
	// Items is the list of ConfigMaps.
	Items []ConfigMap
}

ConfigMapList is a resource containing a list of ConfigMap objects.

func (*ConfigMapList) DeepCopy

func (in *ConfigMapList) DeepCopy() *ConfigMapList

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

func (*ConfigMapList) DeepCopyInto

func (in *ConfigMapList) DeepCopyInto(out *ConfigMapList)

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

func (*ConfigMapList) DeepCopyObject

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

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

type FinalizerName

type FinalizerName string

FinalizerName is the name identifying a finalizer during resource lifecycle.

const (
	// AppFinalize is an internal finalizer values to App.
	AppFinalize FinalizerName = "app"
)

type History

type History struct {
	Revision    int64
	Updated     metav1.Time
	Status      string
	Chart       string
	AppVersion  string
	Description string
	Manifest    string
}

History is a history of a app.

func (*History) DeepCopy

func (in *History) DeepCopy() *History

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

func (*History) DeepCopyInto

func (in *History) DeepCopyInto(out *History)

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

type RawValuesType

type RawValuesType string

RawValuesType indicates the type of rawValues.

const (
	// RawValuesTypeJson means the type of rawValues is json
	RawValuesTypeJson RawValuesType = "json"
	// RawValuesTypeYaml means the type of rawValues is yaml
	RawValuesTypeYaml RawValuesType = "yaml"
)

type ResourceValues

type ResourceValues []string

ResourceValues masks the value so protobuf can generate You can view related issues : https://github.com/kubernetes/kubernetes/issues/46024 +protobuf.nullable=true +protobuf.options.(gogoproto.goproto_stringer)=false

func (ResourceValues) DeepCopy

func (in ResourceValues) DeepCopy() ResourceValues

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

func (ResourceValues) DeepCopyInto

func (in ResourceValues) DeepCopyInto(out *ResourceValues)

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

func (ResourceValues) String

func (t ResourceValues) String() string

type Resources

type Resources map[string]ResourceValues

Resources is a map info of different resources.

func (Resources) DeepCopy

func (in Resources) DeepCopy() Resources

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

func (Resources) DeepCopyInto

func (in Resources) DeepCopyInto(out *Resources)

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

type RollbackProxyOptions

type RollbackProxyOptions struct {
	metav1.TypeMeta

	Revision int64
	Cluster  string
}

RollbackProxyOptions is the query options to an app rollback proxy call.

func (*RollbackProxyOptions) DeepCopy

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

func (*RollbackProxyOptions) DeepCopyInto

func (in *RollbackProxyOptions) DeepCopyInto(out *RollbackProxyOptions)

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

func (*RollbackProxyOptions) DeepCopyObject

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

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

Directories

Path Synopsis
Package v1 is the v1 version of the API.
Package v1 is the v1 version of the API.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL