Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client contains the Kubernetes client for connecting to the cluster hosting ArgoCD
type Resource ¶
type Resource struct { Kind string TemplateData map[string]interface{} // The template as read from YAML Backend types.Backend Data map[string]interface{} // The data to replace with, from Vault Annotations map[string]string // contains filtered or unexported fields }
A Resource is the basis for all Templates
type Template ¶
type Template struct {
Resource
}
Template is the template for Kubernetes
func NewTemplate ¶
func NewTemplate(template unstructured.Unstructured, backend types.Backend) (*Template, error)
NewTemplate returns a *Template given the template's data, and a VaultType
func (*Template) Replace ¶
Replace will replace the <placeholders> in the Template's data with values from Vault. It will return an aggregrate of any errors encountered during the replacements. For both non-Secret resources and Secrets with <placeholder>'s in `stringData`, the value in Vault is emitted as-is For Secret's with <placeholder>'s in `.data`, the value in Vault is emitted as base64 For any hard-coded strings that aren't <placeholder>'s, the string is emitted as-is