k3s

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 19 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"`
}

func NewReleaseFromConfig

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

func (*Release) CreatePRFromK3S

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

func (*Release) ModifyAndPush

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

func (*Release) PushTags

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

func (*Release) RebaseAndTag

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

func (*Release) SetupK8sRemotes

func (r *Release) SetupK8sRemotes(ctx 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(ctx context.Context) (bool, error)

func (*Release) TagsFromFile

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

Jump to

Keyboard shortcuts

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