Documentation ¶
Overview ¶
Package application is the internal version of the API.
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type App
- type AppHistory
- type AppHistorySpec
- type AppList
- type AppPhase
- type AppResource
- type AppResourceSpec
- type AppSpec
- type AppStatus
- type AppType
- type AppValues
- type Chart
- type ConfigMap
- type ConfigMapList
- type FinalizerName
- type History
- type RawValuesType
- type ResourceValues
- type Resources
- type RollbackProxyOptions
Constants ¶
const GroupName = "application.tkestack.io"
GroupName is group name used to register these schema
Variables ¶
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) )
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new App.
func (*App) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*App) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppList.
func (*AppList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AppList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppSpec.
func (*AppSpec) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppStatus.
func (*AppStatus) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppValues.
func (*AppValues) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Chart.
func (*Chart) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigMap.
func (*ConfigMap) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigMap) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new History.
func (*History) DeepCopyInto ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.
func (Resources) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RollbackProxyOptions ¶
RollbackProxyOptions is the query options to an app rollback proxy call.
func (*RollbackProxyOptions) DeepCopy ¶
func (in *RollbackProxyOptions) DeepCopy() *RollbackProxyOptions
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.