Documentation
¶
Index ¶
- Constants
- type AppInformersArgs
- type DeployAppArgs
- type Phase
- type Phases
- type Resource
- func (r Resource) GetGroup() string
- func (r Resource) GetKind() string
- func (r Resource) GetName() string
- func (r Resource) GetNamespace() string
- func (r Resource) GetVersion() string
- func (r Resource) GetWaitForProperties() []WaitForProperty
- func (r Resource) ShouldWaitForProperties() bool
- func (r Resource) ShouldWaitForReady() bool
- type Resources
- type UndeployAppArgs
- type WaitForProperty
Constants ¶
View Source
const ( CreationPhaseAnnotation = "kots.io/creation-phase" DeletionPhaseAnnotation = "kots.io/deletion-phase" WaitForReadyAnnotation = "kots.io/wait-for-ready" WaitForPropertiesAnnotation = "kots.io/wait-for-properties" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppInformersArgs ¶
type AppInformersArgs struct {
AppID string `json:"app_id"`
Sequence int64 `json:"sequence"`
Informers []appstatetypes.StatusInformerString `json:"informers"`
}
type DeployAppArgs ¶
type DeployAppArgs struct {
AppID string `json:"app_id"`
AppSlug string `json:"app_slug"`
ClusterID string `json:"cluster_id"`
Sequence int64 `json:"sequence"`
AdditionalNamespaces []string `json:"additional_namespaces"`
ImagePullSecrets []string `json:"image_pull_secrets"`
PreviousManifests string `json:"previous_manifests"`
Manifests string `json:"manifests"`
PreviousV1Beta1ChartsArchive []byte `json:"previous_charts"`
V1Beta1ChartsArchive []byte `json:"charts"`
PreviousV1Beta2ChartsArchive []byte `json:"previous_v1beta2_charts"`
V1Beta2ChartsArchive []byte `json:"v1beta2_charts"`
Wait bool `json:"wait"`
Action string `json:"action"`
ClearNamespaces []string `json:"clear_namespaces"`
ClearPVCs bool `json:"clear_pvcs"`
AnnotateSlug bool `json:"annotate_slug"`
IsRestore bool `json:"is_restore"`
RestoreLabelSelector *metav1.LabelSelector `json:"restore_label_selector"`
PreviousKotsKinds *kotsutil.KotsKinds
KotsKinds *kotsutil.KotsKinds
}
type Resource ¶ added in v1.98.3
type Resource struct {
Manifest string
GVR schema.GroupVersionResource
GVK *schema.GroupVersionKind
Unstructured *unstructured.Unstructured
DecodeErrMsg string
}
func (Resource) GetNamespace ¶ added in v1.98.3
func (Resource) GetVersion ¶ added in v1.98.3
func (Resource) GetWaitForProperties ¶ added in v1.100.0
func (r Resource) GetWaitForProperties() []WaitForProperty
GetWaitForProperties returns the key value pairs in the `kots.io/wait-for-properties` annotation
func (Resource) ShouldWaitForProperties ¶ added in v1.100.0
func (Resource) ShouldWaitForReady ¶ added in v1.100.0
type Resources ¶ added in v1.98.3
type Resources []Resource
func (Resources) GroupByKind ¶ added in v1.98.3
func (Resources) GroupByPhaseAnnotation ¶ added in v1.100.0
func (Resources) HasNamespaces ¶ added in v1.98.3
type UndeployAppArgs ¶ added in v1.98.3
type UndeployAppArgs struct {
AppID string `json:"app_id"`
AppSlug string `json:"app_slug"`
ClusterID string `json:"cluster_id"`
AdditionalNamespaces []string `json:"additional_namespaces"`
Manifests string `json:"manifests"`
V1Beta1ChartsArchive []byte `json:"v1Beta1ChartsArchive"`
V1Beta2ChartsArchive []byte `json:"v1Beta2ChartsArchive"`
Wait bool `json:"wait"`
ClearNamespaces []string `json:"clear_namespaces"`
ClearPVCs bool `json:"clear_pvcs"`
IsRestore bool `json:"is_restore"`
RestoreLabelSelector *metav1.LabelSelector `json:"restore_label_selector"`
KotsKinds *kotsutil.KotsKinds
}
type WaitForProperty ¶ added in v1.100.0
Click to show internal directories.
Click to hide internal directories.