config

package
v0.38.6 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultConfigPath added in v0.30.0

func DefaultConfigPath() (string, error)

func Generate added in v0.30.0

func Generate() error

func OpenOnEditor added in v0.30.0

func OpenOnEditor() error

func View added in v0.31.0

func View(config *Config) error

Types

type Auth

type Auth struct {
	Drone       *Drone `json:"drone"`
	GithubToken string `json:"github_token"`
	SSHKeyPath  string `json:"ssh_key_path"`
}

Auth

type Config

type Config struct {
	User    *User    `json:"user"`
	K3s     *K3s     `json:"k3s"`
	Rancher *Rancher `json:"rancher"`
	RKE2    *RKE2    `json:"rke2"`
	Auth    *Auth    `json:"auth"`
}

Config

func Load

func Load(configFile string) (*Config, error)

Load reads the given config file and returns a struct containing the necessary values to perform a release.

type Drone

type Drone struct {
	K3sPR          string `json:"k3s_pr"`
	K3sPublish     string `json:"k3s_publish"`
	RancherPR      string `json:"rancher_pr"`
	RancherPublish string `json:"rancher_publish"`
}

Drone

type K3s

type K3s struct {
	Versions map[string]K3sRelease `json:"versions"`
}

K3s

type K3sRelease

type K3sRelease struct {
	OldK8sVersion                 string `json:"old_k8s_version"`
	NewK8sVersion                 string `json:"new_k8s_version"`
	OldK8sClient                  string `json:"old_k8s_client"`
	NewK8sClient                  string `json:"new_k8s_client"`
	OldSuffix                     string `json:"old_suffix"`
	NewSuffix                     string `json:"new_suffix"`
	ReleaseBranch                 string `json:"release_branch"`
	Workspace                     string `json:"workspace"`
	NewGoVersion                  string `json:"-"`
	K3sRepoOwner                  string `json:"k3s_repo_owner"`
	SystemAgentInstallerRepoOwner string `json:"system_agent_installer_repo_owner"`
	K8sRancherURL                 string `json:"k8s_rancher_url"`
	K3sUpstreamURL                string `json:"k3s_upstream_url"`
	DryRun                        bool   `json:"dry_run"`
}

K3sRelease

type RKE2

type RKE2 struct {
	Versions []string `json:"versions"`
}

RKE2

type Rancher added in v0.34.0

type Rancher struct {
	Versions map[string]RancherRelease `json:"versions"`
}

Rancher

type RancherRelease added in v0.34.0

type RancherRelease struct {
	ReleaseBranch        string   `json:"release_branch"`
	RancherRepoOwner     string   `json:"rancher_repo_owner"`
	IssueNumber          string   `json:"issue_number"`
	CheckImages          []string `json:"check_images"`
	BaseRegistry         string   `json:"base_registry"`
	Registry             string   `json:"registry"`
	PrimeArtifactsBucket string   `json:"prime_artifacts_bucket"`
	DryRun               bool     `json:"dry_run"`
	SkipStatusCheck      bool     `json:"skip_status_check"`
}

RancherRelease

type User

type User struct {
	Email          string `json:"email"`
	GithubUsername string `json:"github_username"`
}

User

Jump to

Keyboard shortcuts

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