Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
NewCommand is a command for applying changes to an existing cloud-init file.
Types ¶
type CACerts ¶
type CACerts struct {
RemoveDefaults bool `json:"remove-defaults"`
Trusted []string `json:"trusted"`
}
CACerts - For storage of ca-certs cloud-init update
type CloudInitGlobal ¶
type CloudInitGlobal struct {
Global struct {
Metadata `json:"meta-data"`
}
}
CloudInitGlobal - Boilerplate for cloud-init hierarchical structure
type CloudInitHost ¶
CloudInitHost is the representation of all the new cloud-init data.
type ConfigFileData ¶
ConfigFileData matches the current “cloud-init“ file in the CSM tarball.
type Customizations ¶
type Customizations struct {
Spec struct {
Kubernetes struct {
SealedSecrets map[string]SealedSecret `yaml:"sealed_secrets"`
}
}
// contains filtered or unexported fields
}
Customizations - Minimum customizations (shasta-cfg) struct to access sealed secrets
type Host ¶
type Host struct {
UserData UserData `json:"user-data"`
}
Host is the cloud-init structure/representation of each of our host entries in the cloud-init data.
type Metadata ¶
type Metadata struct {
CACerts `json:"ca-certs"`
}
Metadata - Boilerplate for cloud-init hierarchical structure
type Packages ¶
type Packages []string
Packages is a list of packages to install on the client node.
type Repo ¶
type Repo struct {
ID string `json:"id"`
Name string `json:"name"`
Baseurl string `json:"baseurl"`
Enabled int `json:"enabled"`
Autorefresh int `json:"autorefresh"`
Gpgcheck int `json:"gpgcheck"`
RepoGpgcheck int `json:"repo_gpgcheck"`
}
Repo is a list of repositories to add to the client node.
type SealedSecret ¶
type SealedSecret struct {
Spec struct {
EncryptedData map[string]string `yaml:"encryptedData"`
Template struct {
Metadata struct {
Annotations map[string]string
}
}
}
}
SealedSecret - Minimum struct to determine secret scope and access encrypted data