Documentation ¶
Index ¶
- func ApplyGoogleCloudServiceAccount(enableGCSA bool, filename string, mountAsSecret bool, input *v1.Deployment) *v1.Deployment
- func ApplyVault(enableVault bool, vaultConfig VaultConfig, input *v1.Deployment) *v1.Deployment
- func ApplyVaultConfigToDeployment(vaultConfig VaultConfig, input *v1.Deployment) *v1.Deployment
- func ApplyVaultContainers(input *v1.Deployment) *v1.Deployment
- type VaultConfig
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