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 UpdateDeploymentInPlace(deployment *v1beta1.Deployment, variables []Variable, configMapName string, ...) error
- func WriteConfigMap(configMap *v1.ConfigMap, leftOver [][]byte, writer io.Writer) error
- func WriteDeployment(deployment *v1beta1.Deployment, leftOver [][]byte, writer io.Writer) error
- func WriteSecrets(secret *v1.Secret, leftOver [][]byte, writer io.Writer) error
- type Application
- type InputType
- type Variable
- type VariableDef
- type VariableDestination
- type VariableType
Constants ¶
View Source
const ( STANDARD VariableType = "standard" INLINE = "inline" REFERENCED = "referenced" )
View Source
const ( SIMPLE InputType = "simple" REFERENCE = "reference" VAULT = "vault" CONSUL = "consul" LAYERED_CONSUL = "layered_consul" )
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 UpdateDeploymentInPlace ¶ added in v0.3.0
func WriteConfigMap ¶
func WriteDeployment ¶
Types ¶
type Application ¶ added in v0.2.2
type Variable ¶
type Variable struct {
Name string
Destination VariableDestination
Type VariableType
Value interface{}
}
type VariableDef ¶
type VariableDef struct {
Name string
Source InputType
Destination VariableDestination
Value interface{}
Context map[string]string
}
func NewVariableDef ¶ added in v0.3.0
func NewVariableDef() VariableDef
type VariableDestination ¶ added in v0.3.0
type VariableDestination string
const ( CONFIGMAP VariableDestination = "config" SECRET = "secret" )
type VariableType ¶
type VariableType string
Click to show internal directories.
Click to hide internal directories.