Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions docs/contributing/test_versions.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ After each successful merge to a release branch, the build is made available thr

| branch | marker |
|--------|--------|
| https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt | master branch |
| https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt | master branch |
| https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/release-1.21/latest-ci.txt | kOps 1.21 release branch |
| https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/release-1.22/latest-ci.txt | kOps 1.22 release branch |

You can create a cluster using these markers using the following scripts:

```sh
marker="https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt"
export KOPS_BASE_URL="$(curl -s https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt)"
marker="https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt"
export KOPS_BASE_URL="$(curl -s https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt)"
wget -q "$KOPS_BASE_URL/$(go env GOOS)/$(go env GOARCH)/kops"
chmod +x ./kops
./kops version
Expand All @@ -34,8 +34,8 @@ When a PR builds successfully, you can test the PR using the following script:
```sh
pr=13208
sha=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/kubernetes/kops/pulls/${pr} | jq -r .head.sha )
export KOPS_BASE_URL="https://storage.googleapis.com/kops-ci/pulls/pull-kops-e2e-kubernetes-aws/pull-${sha}"
export KOPS_BASE_URL="https://storage.googleapis.com/k8s-staging-kops/pulls/pull-kops-aws-distro-debian12/pull-${sha}"
wget -q "$KOPS_BASE_URL/$(go env GOOS)/$(go env GOARCH)/kops"
chmod +x ./kops
./kops version
```
```
2 changes: 1 addition & 1 deletion tests/e2e/e2e.mk
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test-e2e-aws-simple-1-20: test-e2e-install
-v 2 \
--build --up --down \
--cloud-provider=aws \
--kops-version-marker=https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt \
--kops-version-marker=https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt \
--kubernetes-version=https://dl.k8s.io/release/stable-1.20.txt \
--template-path=tests/e2e/templates/simple.yaml.tmpl \
--test=kops \
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/pkg/kops/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

// DownloadKops will download the kops binary from the version marker URL
// Returning the URL to use for KOPS_BASE_URL
// Example markerURL: https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt
// Example markerURL: https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt
func DownloadKops(markerURL, downloadPath string) (string, error) {
var b bytes.Buffer
if err := util.HTTPGETWithHeaders(markerURL, nil, &b); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/scenarios/aws-boskos/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ fi

# Download latest prebuilt kOps
if [[ -z "${KOPS_BASE_URL:-}" ]]; then
KOPS_BASE_URL="$(curl -s https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt)"
KOPS_BASE_URL="$(curl -s https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt)"
fi
export KOPS_BASE_URL

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/scenarios/build/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cd "${GOPATH}"/src/k8s.io/kubernetes
kubetest2 kops -v=6 \
--up --down --build --build-kubernetes=true --target-build-arch=linux/amd64 \
--cloud-provider=gce --admin-access=0.0.0.0/0 \
--kops-version-marker=https://storage.googleapis.com/kops-ci/bin/latest-ci.txt \
--kops-version-marker=https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci.txt \
--create-args "--gce-service-account=default --networking=kubenet --set=spec.nodeProblemDetector.enabled=true" \
--test=kops \
-- \
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/scenarios/cilium-connectivity-test/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ REPO_ROOT=$(git rev-parse --show-toplevel);
source "${REPO_ROOT}"/tests/e2e/scenarios/lib/common.sh

export KOPS_BASE_URL
KOPS_BASE_URL="$(curl -s https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt)"
KOPS_BASE_URL="$(curl -s https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt)"
KOPS=$(kops-download-from-base)

ARGS="--set=cluster.spec.networking.cilium.hubble.enabled=true --set=cluster.spec.certManager.enabled=true"
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/scenarios/kops-upgrade/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ ${KUBETEST2} \
--create-args="--networking calico"

export KOPS_BASE_URL
KOPS_BASE_URL="$(curl -s https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt)"
KOPS_BASE_URL="$(curl -s https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt)"
KOPS=$(kops-download-from-base)

"${KOPS}" update cluster
Expand Down
8 changes: 4 additions & 4 deletions tests/e2e/scenarios/lib/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export CHANNELS

export KOPS_RUN_TOO_NEW_VERSION=1

if [[ -z "${DISCOVERY_STORE-}" ]]; then
if [[ -z "${DISCOVERY_STORE-}" ]]; then
DISCOVERY_STORE="${KOPS_STATE_STORE-}"
fi

Expand Down Expand Up @@ -98,7 +98,7 @@ function kops-base-from-marker() {
if [[ "${1}" =~ ^https: ]]; then
curl -fs "${1}"
elif [[ "${1}" == "latest" ]]; then
curl -fs "https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt"
curl -fs "https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt"
else
curl -fs "https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/release-${1}/latest-ci.txt"
fi
Expand All @@ -107,7 +107,7 @@ function kops-base-from-marker() {
# This function will download the latest kops if in a periodic job, otherwise build from the current tree
function kops-acquire-latest() {
if [[ "${JOB_TYPE-}" == "periodic" ]]; then
KOPS_BASE_URL="$(curl -fs https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt)"
KOPS_BASE_URL="$(curl -fs https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt)"
KOPS=$(kops-download-from-base)
CHANNELS=$(kops-channels-download-from-base)
else
Expand Down Expand Up @@ -150,4 +150,4 @@ function kops-up() {
--create-args="${create_args}" \
--control-plane-count="${KOPS_CONTROL_PLANE_COUNT:-1}" \
--template-path="${KOPS_TEMPLATE-}"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fi

# for periodic job, let kubetest2 fetch latest kops. Otherwise let kubetest2 build.
if [[ "${JOB_TYPE-}" == "periodic" ]]; then
KUBETEST2="${KUBETEST2} --kops-version-marker=https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt"
KUBETEST2="${KUBETEST2} --kops-version-marker=https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/master/latest-ci-updown-green.txt"
else
KUBETEST2="${KUBETEST2} --build"
fi
Expand Down