Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExampleConfig ¶ added in v0.39.0
ExampleConfig returns a valid JSON string with the config structure
func OpenOnEditor ¶ added in v0.30.0
OpenOnEditor opens the given config file on the user's default text editor.
Types ¶
type Auth ¶
type Auth struct { GithubToken string `json:"github_token"` SSHKeyPath string `json:"ssh_key_path" validate:"filepath"` AWSAccessKeyID string `json:"aws_access_key_id"` AWSSecretAccessKey string `json:"aws_secret_access_key"` AWSSessionToken string `json:"aws_session_token"` AWSDefaultRegion string `json:"aws_default_region"` }
Auth
type ChartsRelease ¶ added in v0.38.7
type ChartsRelease struct { Workspace string `json:"workspace" validate:"required,dirpath"` ChartsRepoURL string `json:"charts_repo_url" validate:"required"` ChartsForkURL string `json:"charts_fork_url" validate:"required"` BranchLines []string `json:"branch_lines" validate:"required"` }
ChartsRelease
type Config ¶
type Config struct { User *User `json:"user"` K3s *K3s `json:"k3s" validate:"omitempty"` Rancher *Rancher `json:"rancher" validate:"omitempty"` RKE2 *RKE2 `json:"rke2" validate:"omitempty"` Charts *ChartsRelease `json:"charts" validate:"omitempty"` Auth *Auth `json:"auth"` }
Config
func Load ¶
Load reads the given config file and returns a struct containing the necessary values to perform a release.
type K3s ¶
type K3s struct {
Versions map[string]K3sRelease `json:"versions" validate:"dive,omitempty"`
}
K3s
type K3sRelease ¶
type K3sRelease struct { OldK8sVersion string `json:"old_k8s_version" validate:"required"` NewK8sVersion string `json:"new_k8s_version" validate:"required"` OldK8sClient string `json:"old_k8s_client" validate:"required"` NewK8sClient string `json:"new_k8s_client" validate:"required"` OldSuffix string `json:"old_suffix" validate:"required,startswith=k3s"` NewSuffix string `json:"new_suffix" validate:"required,startswith=k3s"` ReleaseBranch string `json:"release_branch" validate:"required"` Workspace string `json:"workspace" validate:"required,dirpath"` NewGoVersion string `json:"-"` K3sRepoOwner string `json:"k3s_repo_owner" validate:"required"` SystemAgentInstallerRepoOwner string `json:"system_agent_installer_repo_owner" validate:"required"` K8sRancherURL string `json:"k8s_rancher_url" validate:"required"` K3sUpstreamURL string `json:"k3s_upstream_url" validate:"required"` DryRun bool `json:"dry_run"` }
K3sRelease
type Rancher ¶ added in v0.34.0
type Rancher struct {
Versions map[string]RancherRelease `json:"versions" validate:"dive,omitempty"`
}
Rancher
type RancherRelease ¶ added in v0.34.0
type RancherRelease struct { ReleaseBranch string `json:"release_branch" validate:"required"` RancherRepoOwner string `json:"rancher_repo_owner" validate:"required"` IssueNumber string `json:"issue_number" validate:"number"` BaseRegistry string `json:"base_registry" validate:"required,hostname"` Registry string `json:"registry" validate:"required,hostname"` PrimeArtifactsBucket string `json:"prime_artifacts_bucket" validate:"required"` DryRun bool `json:"dry_run"` SkipStatusCheck bool `json:"skip_status_check"` }
RancherRelease
Click to show internal directories.
Click to hide internal directories.