k3s

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: Apache-2.0 Imports: 20 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"`
	OldK3SVersion string `json:"old_k3s_version"`
	NewK3SVersion string `json:"new_k3s_version"`
	ReleaseBranch string `json:"release_branch"`
	Workspace     string `json:"workspace"`
	Handler       string `json:"handler"`
	Email         string `json:"email"`
	Token         string `json:"token"`
	SSHKeyPath    string `json:"ssh_key_path"`
}

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, remote string) 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