repository

package
v0.31.2 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RKE2Adjacent = []string{
	"rancher/rke2-upgrade",
	"rancher/rke2-packaging",
	"rancher/system-agent-installer-rke2",
	"rancher/system-upgrade-controller",
}

RKE2Adjacent

View Source
var RKE2HardenedImages = []string{
	"rancher/image-build-base",
	"rancher/image-build-calico",
	"rancher/image-build-cni-plugins",
	"rancher/image-build-containerd",
	"rancher/image-build-coredns",
	"rancher/image-build-crictl",
	"rancher/image-build-dns-nodecache",
	"rancher/image-build-etcd",
	"rancher/image-build-flannel",
	"rancher/image-build-ib-sriov-cni",
	"rancher/image-build-k8s-metrics-server",
	"rancher/image-build-kubernetes",
	"rancher/image-build-multus",
	"rancher/image-build-rke2-cloud-provider",
	"rancher/image-build-runc",
	"rancher/image-build-sriov-cni",
	"rancher/image-build-sriov-network-device-plugin",
	"rancher/image-build-sriov-network-resources-injector",
	"rancher/image-build-sriov-operator",
	"rancher/image-build-whereabouts",
	"rancher/ingress-nginx",
}

RKE2HardenedImages

View Source
var RKE2MirroredImages = []string{
	"mirrored-ingress-nginx-kube-webhook-certgen",
	"mirrored-cilium-cilium",
	"mirrored-cilium-operator-aws",
	"mirrored-cilium-operator-azure",
	"mirrored-cilium-operator-generic",
	"mirrored-calico-operator",
	"mirrored-calico-ctl",
	"mirrored-calico-kube-controllers",
	"mirrored-calico-typha",
	"mirrored-calico-node",
	"mirrored-calico-pod2daemon-flexvol",
	"mirrored-calico-cni",
	"mirrored-calico-apiserver",
	"mirrored-cloud-provider-vsphere-cpi-release-manager",
	"mirrored-cloud-provider-vsphere-csi-release-driver",
	"mirrored-cloud-provider-vsphere-csi-release-syncer",
	"mirrored-sig-storage-csi-node-driver-registrar",
	"mirrored-sig-storage-csi-resizer",
	"mirrored-sig-storage-livenessprobe",
	"mirrored-sig-storage-csi-attacher",
	"mirrored-sig-storage-csi-provisioner",
}

RKE2MirroredImages

Functions

func CreateBackportIssues

func CreateBackportIssues(ctx context.Context, client *github.Client, origIssue *github.Issue, owner, repo, branch, user string, i *Issue) (*github.Issue, error)

CreateBackportIssues

func CreateRelease added in v0.11.0

func CreateRelease(ctx context.Context, client *github.Client, cro *CreateReleaseOpts) (*github.RepositoryRelease, error)

CreateRelease

func CreateReleaseIssue added in v0.11.0

func CreateReleaseIssue(ctx context.Context, client *github.Client, cri *CreateReleaseIssueOpts) (*github.Issue, error)

CreateReleaseIssue

func LatestTag added in v0.25.1

func LatestTag(ctx context.Context, client *github.Client, owner, repo string) (*github.RepositoryTag, error)

func ListReleases added in v0.21.0

func ListReleases(ctx context.Context, client *github.Client, owner, repo string) ([]*github.RepositoryRelease, error)

ListReleases

func ListTags added in v0.25.1

func ListTags(ctx context.Context, client *github.Client, owner, repo string) ([]*github.RepositoryTag, error)

ListTags

func NewGithub

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

NewGithub creates a value of type github.Client pointer with the given context and Github token.

func PerformBackport added in v0.11.0

func PerformBackport(ctx context.Context, client *github.Client, pbo *PerformBackportOpts) ([]*github.Issue, error)

PerformBackport creates backport issues, performs a cherry-pick of the given commit if it exists.

func RetrieveOriginalIssue

func RetrieveOriginalIssue(ctx context.Context, client *github.Client, owner, repo string, issueID uint) (*github.Issue, error)

RetrieveOriginalIssue

func SplitOwnerRepo added in v0.25.1

func SplitOwnerRepo(ownerRepo string) (string, string, error)

Types

type ChangeLog

type ChangeLog struct {
	Title  string
	Note   string
	Number int
	URL    string
}

ChangeLog contains the found changes for the given release, to be used in to populate the template.

func RetrieveChangeLogContents

func RetrieveChangeLogContents(ctx context.Context, client *github.Client, owner, repo, prevMilestone, milestone string) ([]ChangeLog, error)

RetrieveChangeLogContents gets the relevant changes for the given release, formats, and returns them.

type CreateReleaseIssueOpts added in v0.11.0

type CreateReleaseIssueOpts struct {
	Owner   string
	Repo    string
	Release string
	Captain string
}

CreateReleaseIssueOpts

type CreateReleaseOpts added in v0.11.0

type CreateReleaseOpts struct {
	Owner        string `json:"owner"`
	Repo         string `json:"repo"`
	Name         string `json:"name"`
	Tag          string `json:"tag"`
	Prerelease   bool   `json:"pre_release"`
	Branch       string `json:"branch"`
	ReleaseNotes string `json:"release_notes"`
	Draft        bool   `json:"draft"`
}

CreateReleaseOpts

type Issue

type Issue struct {
	ID    uint
	Title string
	Body  string
}

type PerformBackportOpts added in v0.11.0

type PerformBackportOpts struct {
	Owner           string   `json:"owner"`
	Repo            string   `json:"repo"`
	Commits         []string `json:"commits"`
	IssueID         uint     `json:"issue_id"`
	Branches        []string `json:"branches"`
	User            string   `json:"user"`
	DryRun          bool     `json:"dry_run"`
	SkipCreateIssue bool     `json:"skip_create_issue"`
}

PerformBackportOpts

type TokenSource

type TokenSource struct {
	AccessToken string
}

TokenSource

func (*TokenSource) Token

func (t *TokenSource) Token() (*oauth2.Token, error)

Token

Jump to

Keyboard shortcuts

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