Documentation ¶
Index ¶
- func DeleteIngress(ctx context.Context, namespace string, clientset *kubernetes.Clientset) error
- func Deploy(deployOptions types.DeployOptions) error
- func EnsureIngress(ctx context.Context, namespace string, clientset *kubernetes.Clientset, ...) error
- func ExtractAirgapImages(archive string, destDir string, progressWriter io.Writer) error
- func GetKotsadmOptionsFromCluster(namespace string, clientset *kubernetes.Clientset) (types.KotsadmOptions, error)
- func IsKurl(k8sConfigFlags *genericclioptions.ConfigFlags) (bool, error)
- func PushImages(airgapArchive string, options types.PushImagesOptions) error
- func TagAndPushAppImages(imagesDir string, options types.PushImagesOptions) ([]kustomizetypes.Image, error)
- func Upgrade(upgradeOptions types.UpgradeOptions) error
- func YAML(deployOptions types.DeployOptions) (map[string][]byte, error)
- type ProgressImage
- type ProgressReport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteIngress ¶
func Deploy ¶
func Deploy(deployOptions types.DeployOptions) error
func EnsureIngress ¶
func EnsureIngress(ctx context.Context, namespace string, clientset *kubernetes.Clientset, ingressSpec kotsv1beta1.IngressConfigSpec) error
func ExtractAirgapImages ¶ added in v1.20.0
func GetKotsadmOptionsFromCluster ¶ added in v1.17.0
func GetKotsadmOptionsFromCluster(namespace string, clientset *kubernetes.Clientset) (types.KotsadmOptions, error)
func IsKurl ¶ added in v1.20.0
func IsKurl(k8sConfigFlags *genericclioptions.ConfigFlags) (bool, error)
func PushImages ¶
func PushImages(airgapArchive string, options types.PushImagesOptions) error
func TagAndPushAppImages ¶ added in v1.19.0
func TagAndPushAppImages(imagesDir string, options types.PushImagesOptions) ([]kustomizetypes.Image, error)
func Upgrade ¶
func Upgrade(upgradeOptions types.UpgradeOptions) error
Types ¶
type ProgressImage ¶
type ProgressImage struct { // image name and tag, "nginx:latest" DisplayName string `json:"displayName"` // image upload status: queued, uploading, uploaded, failed Status string `json:"status"` // error string set when status is failed Error string `json:"error"` // amount currently uploaded (currently number of layers) Current int64 `json:"current"` // total amount that needs to be uploaded (currently number of layers) Total int64 `json:"total"` // time when image started uploading StartTime time.Time `json:"startTime"` // time when image finished uploading EndTime time.Time `json:"endTime"` }
type ProgressReport ¶
type ProgressReport struct { // set to "progressReport" Type string `json:"type"` // the same progress text that used to be sent in unstructured message CompatibilityMessage string `json:"compatibilityMessage"` // all images found in archive Images []ProgressImage `json:"images"` }
Source Files ¶
- affinity.go
- api.go
- application_metadata.go
- application_metadata_objects.go
- configmaps.go
- configmaps_objects.go
- configvalues.go
- configvalues_objects.go
- distribution.go
- distribution_objects.go
- ingress.go
- kotsadm.go
- kotsadm_objects.go
- license.go
- license_objects.go
- limitrange.go
- main.go
- minio.go
- minio_objects.go
- namespaces.go
- operator.go
- operator_objects.go
- postgres.go
- postgres_objects.go
- proxy.go
- push_images.go
- schemahero.go
- schemahero_objects.go
- secrets.go
- secrets_objects.go
Click to show internal directories.
Click to hide internal directories.