patch

package
v1.35.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 22 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cobra.Command

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

type CloudInitHost map[string]Host

CloudInitHost is the representation of all the new cloud-init data.

type ConfigFileData

type ConfigFileData struct {
	Repos    []Repo   `json:"repos"`
	Packages Packages `json:"packages"`
}

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

type UserData

type UserData struct {
	Zypper   Zypper   `json:"zypper"`
	Packages Packages `json:"packages"`
}

UserData is the cloud-init structure/representation of the new data.

type Zypper

type Zypper struct {
	Repos []Repo `json:"repos"`
}

Zypper is a map for Zypper cloud-init data.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL