k3s

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGithubClient

func NewGithubClient(ctx context.Context, token string) (*github.Client, error)

Types

type Release

type Release 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"`
	OldK3SSuffix   string `json:"old_k3s_suffix"`
	NewK3SSuffix   string `json:"new_k3s_suffix"`
	NewGoVersion   string `json:"-"`
	ReleaseBranch  string `json:"release_branch"`
	Workspace      string `json:"workspace"`
	K3sRemote      string `json:"k3s_remote"`
	Handler        string `json:"handler"`
	Email          string `json:"email"`
	GithubToken    string `json:"-"`
	K8sRancherURL  string `json:"k8s_rancher_url"`
	K3sUpstreamURL string `json:"k3s_upstream_url"`
	SSHKeyPath     string `json:"ssh_key_path"`
	DryRun         bool   `json:"dry_run"`
}

func NewRelease added in v0.20.0

func NewRelease(configPath string) (*Release, error)

func (*Release) CreatePRFromK3S

func (r *Release) CreatePRFromK3S(ctx context.Context, ghClient *github.Client) error

func (*Release) CreateRelease added in v0.21.0

func (r *Release) CreateRelease(ctx context.Context, client *github.Client, rc bool) error

func (*Release) ModifyAndPush

func (r *Release) ModifyAndPush(_ context.Context) error

func (*Release) PushTags

func (r *Release) PushTags(_ context.Context, tagsCmds []string, ghClient *github.Client) error

func (*Release) RebaseAndTag

func (r *Release) RebaseAndTag(_ context.Context, ghClient *github.Client) ([]string, string, error)

func (*Release) SetupK8sRemotes

func (r *Release) SetupK8sRemotes(_ context.Context, ghClient *github.Client) error

SetupK8sRemotes will clone the kubernetes upstream repo and proceed with setting up remotes for rancher and user's forks, then it will fetch branches and tags for all remotes

func (*Release) TagsCreated

func (r *Release) TagsCreated(_ context.Context) (bool, error)

func (*Release) TagsFromFile

func (r *Release) TagsFromFile(_ context.Context) ([]string, error)

Jump to

Keyboard shortcuts

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