Documentation
¶
Index ¶
- 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 ¶
This section is empty.
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 Source InputType 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 VariableDestination = "secret" INLINE VariableDestination = "inline" )
type VariableType ¶
type VariableType string
Click to show internal directories.
Click to hide internal directories.