Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSecretResources ¶
func GetSecretResources( ctx context.Context, k8sClient ctrlclient.Client, secretNamespace string, in cloudinit.CloudConfig) ([]ctrlclient.Object, error)
GetSecretResources returns a list of the Secret resources referenced by the provided CloudConfig.
func MarshalYAML ¶
func MarshalYAML( ctx context.Context, in cloudinit.CloudConfig, secret CloudConfigSecretData) (string, error)
Types ¶
type CloudConfigSecretData ¶
type CloudConfigSecretData struct { // Users is a map where the key is the user's Name. Users map[string]CloudConfigUserSecretData // WriteFiles is a map where the key is the file's Path and the value is // the file's contents. WriteFiles map[string]string }
CloudConfigSecretData is used to provide the sensitive data that may have been derived from Secret resources to the encoder.
func GetCloudConfigSecretData ¶
func GetCloudConfigSecretData( ctx context.Context, k8sClient ctrlclient.Client, secretNamespace string, in cloudinit.CloudConfig) (CloudConfigSecretData, error)
GetCloudConfigSecretData returns the secret data related to inline CloudInit.
Click to show internal directories.
Click to hide internal directories.