deploy

package
v0.0.0-...-9b5ae21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RELEASE_CLUSTER_SCOPED       = "st4sd-cluster-scoped"
	RELEASE_NAMESPACED_UNMANAGED = "st4sd-namespaced-unmanaged"
	RELEASE_NAMESPACED_MANAGED   = "st4sd-namespaced-managed"
)
View Source
const (
	PATTERN_FAILED_TO_PATCH = `cannot patch "(?P<Object>.+)" with kind (?P<Kind>[^:]+)`
)

Variables

This section is empty.

Functions

func ConfigurationToHelmValues

func ConfigurationToHelmValues(
	chart *chart.Chart,
	configuration *st4sdv1alpha1.SimulationToolkitSpecSetup,
	releaseName string,
) (map[string]interface{}, error)

func DiscoverClusterIngress

func DiscoverClusterIngress() (string, error)

func HelmDeployPart

func HelmDeployPart(
	namespace, releaseName, helmChartPath string, dryRun bool,
	configuration *st4sdv1alpha1.SimulationToolkitSpecSetup,
	chart *chart.Chart, actionConfig *action.Configuration,
	inNamespace []*release.Release,
) error

func HelmDeploySimulationToolkit

func HelmDeploySimulationToolkit(
	helmChartPath string,
	configuration *st4sdv1alpha1.SimulationToolkitSpecSetup,
	namespace string,
	dryRun bool,
) error

func MergeMaps

func MergeMaps(a, b map[string]interface{}) map[string]interface{}

Merges 2 maps of key: value pairs overriding @a values with those in @b. This is the algorithm that helm uses to merge multiple "values.yaml" files VV: From https://github.com/helm/helm/blob/main/pkg/cli/values/options.go

func TriggerDeploymentConfigs

func TriggerDeploymentConfigs(release *release.Release, kubeClient kube.Interface, namespace string) error

func TriggerImportImage

func TriggerImportImage(
	kubeClient kube.Interface,
	namespace, imageUrl, imageName, tag string) error

func UpdateCRD

func UpdateCRD(path, namespace string, kubeClient kube.Interface) error

Types

type RecordDeployedChart

type RecordDeployedChart struct {
	Manifest string
}

func (*RecordDeployedChart) Run

func (r *RecordDeployedChart) Run(
	renderedManifests *bytes.Buffer,
) (modifiedManifests *bytes.Buffer, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL