Documentation ¶
Overview ¶
Package deploy provides the functionality to deploy an application.
Index ¶
- func DeployApp(ctx context.Context, cluster *kubernetes.Cluster, app models.AppRef, ...) ([]string, apierror.APIErrors)
- func DeployAppWithRestart(ctx context.Context, cluster *kubernetes.Cluster, app models.AppRef, ...) ([]string, apierror.APIErrors)
- func UpdateImageURL(ctx context.Context, cluster *kubernetes.Cluster, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeployApp ¶
func DeployApp(ctx context.Context, cluster *kubernetes.Cluster, app models.AppRef, username, expectedStageID string) ([]string, apierror.APIErrors)
DeployApp deploys the referenced application via helm, based on the state held by CRD and associated secrets. It is the backend for the API deploypoint, as well as all the mutating endpoints, i.e. configuration and app changes (bindings, environment, scaling).
func DeployAppWithRestart ¶ added in v1.9.0
func DeployAppWithRestart(ctx context.Context, cluster *kubernetes.Cluster, app models.AppRef, username, expectedStageID string) ([]string, apierror.APIErrors)
DeployAppWithRestart is the same as DeployApp but it will also force Helm to perform a restart of the deployment
func UpdateImageURL ¶
func UpdateImageURL(ctx context.Context, cluster *kubernetes.Cluster, app *unstructured.Unstructured, imageURL string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.