mutations

package
v0.0.0-...-841f565 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyGoogleCloudServiceAccount

func ApplyGoogleCloudServiceAccount(enableGCSA bool, filename string, mountAsSecret bool, input *v1.Deployment) *v1.Deployment

ApplyGoogleCloudServiceAccount appends all containers with the GOOGLE_APPLICATION_CREDENTIALS env var as well as the appropriate volume/volume mount

func ApplyVault

func ApplyVault(enableVault bool, vaultConfig VaultConfig, input *v1.Deployment) *v1.Deployment

ApplyVault adds configuration information - environment variables, volume mounts, containers, and init containers to a deployment object

func ApplyVaultConfigToDeployment

func ApplyVaultConfigToDeployment(vaultConfig VaultConfig, input *v1.Deployment) *v1.Deployment

ApplyVaultConfigToDeployment appends a set of environment variables, a set of annotations, and a volume/volume mount to all containers in a deployment object

func ApplyVaultContainers

func ApplyVaultContainers(input *v1.Deployment) *v1.Deployment

ApplyVaultContainers appends the vault-login init container and the vault-auto-renew container to the deployment object

Types

type VaultConfig

type VaultConfig struct {
	Team               string `json:"vaultTeam"`
	App                string `json:"vaultApp"`
	Environment        string `json:"vaultEnv"`
	ClusterEnvironment string `json:"clusterEnv"`
	Role               string `json:"vaultRole"`
	DefaultConfig      string `json:"vaultDefaultConfig"`
	Address            string `json:"vaultAddress"`
}

VaultConfig represents the fields necessary to have a service authenticate with and pull secrets from Vault

Jump to

Keyboard shortcuts

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