constants

package
v0.0.0-...-423e1c4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BaseRepoOwnerEnvvar                     = "BASE_REPO_OWNER"
	HeadRepoOwnerEnvvar                     = "HEAD_REPO_OWNER"
	GitHubTokenEnvvar                       = "GITHUB_TOKEN"
	CommitAuthorNameEnvvar                  = "COMMIT_AUTHOR_NAME"
	CommitAuthorEmailEnvvar                 = "COMMIT_AUTHOR_EMAIL"
	ReleaseBranchEnvvar                     = "RELEASE_BRANCH"
	DefaultCommitAuthorName                 = "EKS Distro PR Bot"
	DefaultCommitAuthorEmail                = "aws-model-rocket-bots+eksdistroprbot@amazon.com"
	BuildToolingRepoName                    = "eks-anywhere-build-tooling"
	DefaultBaseRepoOwner                    = "aws"
	BuildToolingRepoURL                     = "https://github.com/%s/eks-anywhere-build-tooling"
	ReadmeFile                              = "README.md"
	ReadmeUpdateScriptFile                  = "build/lib/readme_check.sh"
	LicenseBoilerplateFile                  = "hack/boilerplate.yq.txt"
	EKSDistroLatestReleasesFile             = "EKSD_LATEST_RELEASES"
	EKSDistroProdReleaseNumberFileFormat    = "release/%s/production/RELEASE"
	KubernetesGitTagFileFormat              = "projects/kubernetes/kubernetes/%s/GIT_TAG"
	SkippedProjectsFile                     = "SKIPPED_PROJECTS"
	UpstreamProjectsTrackerFile             = "UPSTREAM_PROJECTS.yaml"
	SupportedReleaseBranchesFile            = "release/SUPPORTED_RELEASE_BRANCHES"
	GitTagFile                              = "GIT_TAG"
	GoVersionFile                           = "GOLANG_VERSION"
	ChecksumsFile                           = "CHECKSUMS"
	AttributionsFilePattern                 = "*ATTRIBUTION.txt"
	PatchesDirectory                        = "patches"
	FailedPatchApplyMarker                  = "patch does not apply"
	SemverRegex                             = `` /* 237-byte string literal not displayed */
	FailedPatchApplyRegex                   = "Patch failed at .*"
	FailedPatchFilesRegex                   = "error: (.*): patch does not apply"
	BottlerocketReleasesFile                = "BOTTLEROCKET_RELEASES"
	BottlerocketContainerMetadataFileFormat = "BOTTLEROCKET_%s_CONTAINER_METADATA"
	BottlerocketHostContainersTOMLFile      = "sources/models/shared-defaults/public-host-containers.toml"
	CiliumImageRepository                   = "public.ecr.aws/isovalent/cilium"
	GithubPerPage                           = 100

	MainBranchName                  = "main"
	BaseRepoHeadRevision            = "refs/remotes/origin/main"
	EKSDistroUpgradePullRequestBody = `` /* 245-byte string literal not displayed */

	DefaultUpgradePullRequestBody = `` /* 359-byte string literal not displayed */

	BottlerocketUpgradePullRequestBody = `` /* 403-byte string literal not displayed */

	CombinedImageBuilderBottlerocketUpgradePullRequestBody = `` /* 679-byte string literal not displayed */

	PatchesCommentBody = `` /* 481-byte string literal not displayed */

)

Constants used across the version-tracker source code.

Variables

View Source
var (
	// ProjectReleaseAssets is the mapping of project name to release tarball configurations.
	ProjectReleaseAssets = map[string]types.ReleaseTarball{
		"apache/cloudstack-cloudmonkey": {
			AssetName:  "cmk.linux.x86-64",
			BinaryName: "cmk.linux.x86-64",
			Extract:    false,
		},
		"aquasecurity/harbor-scanner-trivy": {
			AssetName:                "harbor-scanner-trivy_%s_Linux_x86_64.tar.gz",
			BinaryName:               "scanner-trivy",
			Extract:                  true,
			TrimLeadingVersionPrefix: true,
		},
		"aquasecurity/trivy": {
			AssetName:                "trivy_%s_Linux-64bit.tar.gz",
			BinaryName:               "trivy",
			Extract:                  true,
			TrimLeadingVersionPrefix: true,
		},
		"aws/rolesanywhere-credential-helper": {
			OverrideAssetURL:         "https://rolesanywhere.amazonaws.com/releases/%s/X86_64/Linux/aws_signing_helper",
			AssetName:                "aws_signing_helper",
			BinaryName:               "aws_signing_helper",
			Extract:                  false,
			TrimLeadingVersionPrefix: true,
		},
		"cert-manager/cert-manager": {
			AssetName:  "cert-manager-cmctl-linux-amd64.tar.gz",
			BinaryName: "cmctl",
			Extract:    true,
		},
		"containerd/containerd": {
			AssetName:                "containerd-%s-linux-amd64.tar.gz",
			BinaryName:               "bin/containerd",
			Extract:                  true,
			TrimLeadingVersionPrefix: true,
		},
		"distribution/distribution": {
			AssetName:                "registry_%s_linux_amd64.tar.gz",
			BinaryName:               "registry",
			Extract:                  true,
			TrimLeadingVersionPrefix: true,
		},
		"fluxcd/flux2": {
			AssetName:                "flux_%s_linux_amd64.tar.gz",
			BinaryName:               "flux",
			Extract:                  true,
			TrimLeadingVersionPrefix: true,
		},
		"helm/helm": {
			OverrideAssetURL: "https://get.helm.sh/helm-%s-linux-amd64.tar.gz",
			AssetName:        "helm-%s-linux-amd64.tar.gz",
			BinaryName:       "linux-amd64/helm",
			Extract:          true,
		},
		"kubernetes-sigs/cluster-api": {
			AssetName:  "clusterctl-linux-amd64",
			BinaryName: "clusterctl-linux-amd64",
			Extract:    false,
		},
		"kubernetes-sigs/cri-tools": {
			AssetName:  "crictl-%s-linux-amd64.tar.gz",
			BinaryName: "crictl",
			Extract:    true,
		},
		"kubernetes-sigs/kind": {
			AssetName:  "kind-linux-amd64",
			BinaryName: "kind-linux-amd64",
			Extract:    false,
		},
		"opencontainers/runc": {
			AssetName:  "runc.amd64",
			BinaryName: "runc.amd64",
			Extract:    false,
		},
		"prometheus/prometheus": {
			AssetName:                "prometheus-%s.linux-amd64.tar.gz",
			BinaryName:               "prometheus-%s.linux-amd64/prometheus",
			Extract:                  true,
			TrimLeadingVersionPrefix: true,
		},
		"prometheus/node_exporter": {
			AssetName:                "node_exporter-%s.linux-amd64.tar.gz",
			BinaryName:               "node_exporter-%s.linux-amd64/node_exporter",
			Extract:                  true,
			TrimLeadingVersionPrefix: true,
		},
		"rancher/local-path-provisioner": {
			AssetName:  "local-path-provisioner-amd64",
			BinaryName: "local-path-provisioner-amd64",
			Extract:    false,
		},
		"replicatedhq/troubleshoot": {
			AssetName:  "support-bundle_linux_amd64.tar.gz",
			BinaryName: "support-bundle",
			Extract:    true,
		},
		"vmware/govmomi": {
			AssetName:  "govc_Linux_x86_64.tar.gz",
			BinaryName: "govc",
			Extract:    true,
		},
	}

	// ProjectGoVersionSourceOfTruth is the mapping of project name to Go version source of truth files configuration.
	ProjectGoVersionSourceOfTruth = map[string]types.GoVersionSourceOfTruth{
		"aws/etcdadm-bootstrap-provider": {
			SourceOfTruthFile:     "go.mod",
			GoVersionSearchString: `go (1\.\d\d)`,
		},
		"aws/etcdadm-controller": {
			SourceOfTruthFile:     "go.mod",
			GoVersionSearchString: `go (1\.\d\d)`,
		},
		"brancz/kube-rbac-proxy": {
			SourceOfTruthFile:     ".github/workflows/build.yml",
			GoVersionSearchString: `go-version: '(1\.\d\d)\.\d+'`,
		},
		"emissary-ingress/emissary": {
			SourceOfTruthFile:     "go.mod",
			GoVersionSearchString: `go (1\.\d\d)`,
		},
		"goharbor/harbor": {
			SourceOfTruthFile:     "Makefile",
			GoVersionSearchString: `GOBUILDIMAGE=golang:(1\.\d\d)`,
		},
		"fluxcd/helm-controller": {
			SourceOfTruthFile:     "Dockerfile",
			GoVersionSearchString: `ARG GO_VERSION=(1\.\d\d)`,
		},
		"fluxcd/kustomize-controller": {
			SourceOfTruthFile:     "Dockerfile",
			GoVersionSearchString: `ARG GO_VERSION=(1\.\d\d)`,
		},
		"fluxcd/notification-controller": {
			SourceOfTruthFile:     "Dockerfile",
			GoVersionSearchString: `ARG GO_VERSION=(1\.\d\d)`,
		},
		"fluxcd/source-controller": {
			SourceOfTruthFile:     "Dockerfile",
			GoVersionSearchString: `ARG GO_VERSION=(1\.\d\d)`,
		},
		"kube-vip/kube-vip": {
			SourceOfTruthFile:     "Dockerfile",
			GoVersionSearchString: `golang:(1\.\d\d)`,
		},
		"kubernetes/autoscaler": {
			SourceOfTruthFile:     "cluster-autoscaler/go.mod",
			GoVersionSearchString: `go (1\.\d\d)`,
		},
		"kubernetes/cloud-provider-aws": {
			SourceOfTruthFile:     "go.mod",
			GoVersionSearchString: `go (1\.\d\d)`,
		},
		"kubernetes/cloud-provider-vsphere": {
			SourceOfTruthFile:     "go.mod",
			GoVersionSearchString: `go (1\.\d\d)`,
		},
		"kubernetes-sigs/cluster-api-provider-cloudstack": {
			SourceOfTruthFile:     "go.mod",
			GoVersionSearchString: `go (1\.\d\d)`,
		},
		"kubernetes-sigs/cluster-api-provider-vsphere": {
			SourceOfTruthFile:     "Makefile",
			GoVersionSearchString: `GO_VERSION \?= (1\.\d\d)\.\d+`,
		},
		"kubernetes-sigs/etcdadm": {
			SourceOfTruthFile:     "Makefile",
			GoVersionSearchString: `GO_IMAGE \?= golang:(1\.\d\d)`,
		},
		"nutanix-cloud-native/cluster-api-provider-nutanix": {
			SourceOfTruthFile:     "go.mod",
			GoVersionSearchString: `go (1\.\d\d)`,
		},
		"metallb/metallb": {
			SourceOfTruthFile:     "go.mod",
			GoVersionSearchString: `go (1\.\d\d)`,
		},
		"tinkerbell/boots": {
			SourceOfTruthFile:     "go.mod",
			GoVersionSearchString: `go (1\.\d\d)`,
		},
		"tinkerbell/cluster-api-provider-tinkerbell": {
			SourceOfTruthFile:     "Makefile",
			GoVersionSearchString: `GOLANG_VERSION := (1\.\d\d)`,
		},
		"tinkerbell/hegel": {
			SourceOfTruthFile:     ".github/workflows/ci.yaml",
			GoVersionSearchString: `GO_VERSION: "(1\.\d\d)"`,
		},
		"tinkerbell/tink": {
			SourceOfTruthFile:     ".github/workflows/ci.yaml",
			GoVersionSearchString: `GO_VERSION: "(1\.\d\d)"`,
		},
		"tinkerbell/rufio": {
			SourceOfTruthFile:     ".github/workflows/ci.yaml",
			GoVersionSearchString: `GO_VERSION: '(1\.\d\d)'`,
		},
	}

	ProjectsWithUnconventionalUpgradeFlows = []string{
		"cilium/cilium",
		"kubernetes-sigs/image-builder",
	}

	BottlerocketImageFormats = []string{"ami", "ova", "raw"}

	BottlerocketHostContainers = []string{"admin", "control"}

	CiliumImageDirectories = []string{"cilium", "operator-generic", "cilium-chart"}

	ProjectsSupportingPrereleaseTags = []string{"kubernetes-sigs/cluster-api-provider-cloudstack"}
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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