patch

package
v1.32.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PatchCmd = &cobra.Command{
	Use:   "patch",
	Short: "Apply patch operations",
	Long: `
Runs patch operations against the CRAY.
`,
	Run: func(cmd *cobra.Command, args []string) {
		cmd.Usage()
	},
}

PatchCmd is a command for applying changes to an existing cloud-init file.

Functions

This section is empty.

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 added in v1.32.1

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 added in v1.32.1

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