2022-09-05 03:06:08 -04:00
|
|
|
/*
|
|
|
|
Copyright (c) Edgeless Systems GmbH
|
|
|
|
|
|
|
|
SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
*/
|
|
|
|
|
2023-01-19 09:57:50 -05:00
|
|
|
// Package helm provides types and functions shared across services.
|
2022-08-12 04:20:19 -04:00
|
|
|
package helm
|
|
|
|
|
2023-08-03 07:54:48 -04:00
|
|
|
import "helm.sh/helm/v3/pkg/chart"
|
|
|
|
|
2022-10-18 07:15:54 -04:00
|
|
|
// Release bundles all information necessary to create a helm release.
|
|
|
|
type Release struct {
|
2023-08-03 07:54:48 -04:00
|
|
|
Chart *chart.Chart
|
2022-10-25 09:51:23 -04:00
|
|
|
Values map[string]any
|
2022-10-18 07:15:54 -04:00
|
|
|
ReleaseName string
|
2023-07-07 11:09:45 -04:00
|
|
|
WaitMode WaitMode
|
2022-08-12 04:20:19 -04:00
|
|
|
}
|
|
|
|
|
2022-11-09 09:57:54 -05:00
|
|
|
// Releases bundles all helm releases to be deployed to Constellation.
|
2022-10-18 07:15:54 -04:00
|
|
|
type Releases struct {
|
2023-07-24 04:30:53 -04:00
|
|
|
AWSLoadBalancerController *Release
|
|
|
|
CSI *Release
|
|
|
|
Cilium Release
|
|
|
|
CertManager Release
|
|
|
|
ConstellationOperators Release
|
|
|
|
ConstellationServices Release
|
2022-08-12 04:20:19 -04:00
|
|
|
}
|
2022-12-19 10:52:15 -05:00
|
|
|
|
2023-07-07 11:09:45 -04:00
|
|
|
// WaitMode specifies the wait mode for a helm release.
|
|
|
|
type WaitMode string
|
|
|
|
|
|
|
|
const (
|
|
|
|
// WaitModeNone specifies that the helm release should not wait for the resources to be ready.
|
|
|
|
WaitModeNone WaitMode = ""
|
|
|
|
// WaitModeWait specifies that the helm release should wait for the resources to be ready.
|
|
|
|
WaitModeWait WaitMode = "wait"
|
|
|
|
// WaitModeAtomic specifies that the helm release should
|
|
|
|
// wait for the resources to be ready and roll back atomically on failure.
|
|
|
|
WaitModeAtomic WaitMode = "atomic"
|
|
|
|
)
|