Documentation
¶
Index ¶
- Constants
- func DiffDeploymets(deployment1 *v1beta1.Deployment, deployment2 *v1beta1.Deployment) error
- func ReadConfigMap(filePath string) (*v1.ConfigMap, [][]byte, error)
- func ReadDeployment(filePath string) (*v1beta1.Deployment, [][]byte, error)
- func ReadSecrets(filePath string) (*v1.Secret, [][]byte, error)
- func UpdateDeployment(deployment *v1beta1.Deployment, configMap *v1.ConfigMap, secret *v1.Secret, ...) error
- func WriteConfigMap(configMap *v1.ConfigMap, leftOver [][]byte, filePath string) error
- func WriteDeployment(deployment *v1beta1.Deployment, leftOver [][]byte, filePath string) error
- func WriteSecrets(secret *v1.Secret, leftOver [][]byte, filePath string) error
- type Application
- type InputType
- type Variable
- type VariableDef
- type VariableType
Constants ¶
View Source
const ( SIMPLE InputType = "simple" VAULT = "vault" CONSUL = "consul" )
View Source
const ( CONFIGMAP VariableType = "config" SECRET = "secret" REFERENCE = "reference" )
Variables ¶
This section is empty.
Functions ¶
func DiffDeploymets ¶ added in v0.2.1
func DiffDeploymets(deployment1 *v1beta1.Deployment, deployment2 *v1beta1.Deployment) error
func ReadDeployment ¶
func ReadDeployment(filePath string) (*v1beta1.Deployment, [][]byte, error)
func UpdateDeployment ¶
func UpdateDeployment(deployment *v1beta1.Deployment, configMap *v1.ConfigMap, secret *v1.Secret, containerName string, variables []VariableDef, overwriteEnv bool) error
func WriteConfigMap ¶
func WriteDeployment ¶
func WriteDeployment(deployment *v1beta1.Deployment, leftOver [][]byte, filePath string) error
Types ¶
type Application ¶ added in v0.2.2
type Application struct {
Name string
Namespace string
Definitions []VariableDef
}
type Variable ¶
type Variable struct {
Name string
Type VariableType
Value interface{}
}
type VariableDef ¶
type VariableDef struct {
Name string
Source InputType
Type VariableType
Value interface{}
}
type VariableType ¶
type VariableType string
Click to show internal directories.
Click to hide internal directories.