Documentation
¶
Index ¶
- func NewGithubClient(ctx context.Context, token string) (*github.Client, error)
- type Release
- func (r *Release) CreatePRFromK3S(ctx context.Context, ghClient *github.Client) error
- func (r *Release) CreateRelease(ctx context.Context, client *github.Client, rc bool) error
- func (r *Release) ModifyAndPush(_ context.Context) error
- func (r *Release) PushTags(_ context.Context, tagsCmds []string, ghClient *github.Client) error
- func (r *Release) RebaseAndTag(_ context.Context, ghClient *github.Client) ([]string, string, error)
- func (r *Release) SetupK8sRemotes(_ context.Context, ghClient *github.Client) error
- func (r *Release) TagsCreated(_ context.Context) (bool, error)
- func (r *Release) TagsFromFile(_ context.Context) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (*Release) CreatePRFromK3S ¶
func (*Release) CreateRelease ¶ added in v0.21.0
func (*Release) RebaseAndTag ¶
func (*Release) SetupK8sRemotes ¶
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
Click to show internal directories.
Click to hide internal directories.