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, remote string) 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"` 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 (*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.