mirror of https://github.com/kubernetes/kops.git
Drop kops-ci references
Ref: - https://github.com/kubernetes/k8s.io/issues/2625 Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
This commit is contained in:
parent
5d4d867086
commit
d7e3c61a60
|
@ -11,15 +11,15 @@ After each successful merge to a release branch, the build is made available thr
|
||||||
|
|
||||||
| branch | marker |
|
| 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.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 |
|
| 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:
|
You can create a cluster using these markers using the following scripts:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
marker="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/kops-ci/bin/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"
|
wget -q "$KOPS_BASE_URL/$(go env GOOS)/$(go env GOARCH)/kops"
|
||||||
chmod +x ./kops
|
chmod +x ./kops
|
||||||
./kops version
|
./kops version
|
||||||
|
@ -34,7 +34,7 @@ When a PR builds successfully, you can test the PR using the following script:
|
||||||
```sh
|
```sh
|
||||||
pr=13208
|
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 )
|
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"
|
wget -q "$KOPS_BASE_URL/$(go env GOOS)/$(go env GOARCH)/kops"
|
||||||
chmod +x ./kops
|
chmod +x ./kops
|
||||||
./kops version
|
./kops version
|
||||||
|
|
|
@ -27,7 +27,7 @@ test-e2e-aws-simple-1-20: test-e2e-install
|
||||||
-v 2 \
|
-v 2 \
|
||||||
--build --up --down \
|
--build --up --down \
|
||||||
--cloud-provider=aws \
|
--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 \
|
--kubernetes-version=https://dl.k8s.io/release/stable-1.20.txt \
|
||||||
--template-path=tests/e2e/templates/simple.yaml.tmpl \
|
--template-path=tests/e2e/templates/simple.yaml.tmpl \
|
||||||
--test=kops \
|
--test=kops \
|
||||||
|
|
|
@ -28,7 +28,7 @@ import (
|
||||||
|
|
||||||
// DownloadKops will download the kops binary from the version marker URL
|
// DownloadKops will download the kops binary from the version marker URL
|
||||||
// Returning the URL to use for KOPS_BASE_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) {
|
func DownloadKops(markerURL, downloadPath string) (string, error) {
|
||||||
var b bytes.Buffer
|
var b bytes.Buffer
|
||||||
if err := util.HTTPGETWithHeaders(markerURL, nil, &b); err != nil {
|
if err := util.HTTPGETWithHeaders(markerURL, nil, &b); err != nil {
|
||||||
|
|
|
@ -56,7 +56,7 @@ fi
|
||||||
|
|
||||||
# Download latest prebuilt kOps
|
# Download latest prebuilt kOps
|
||||||
if [[ -z "${KOPS_BASE_URL:-}" ]]; then
|
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
|
fi
|
||||||
export KOPS_BASE_URL
|
export KOPS_BASE_URL
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ cd "${GOPATH}"/src/k8s.io/kubernetes
|
||||||
kubetest2 kops -v=6 \
|
kubetest2 kops -v=6 \
|
||||||
--up --down --build --build-kubernetes=true --target-build-arch=linux/amd64 \
|
--up --down --build --build-kubernetes=true --target-build-arch=linux/amd64 \
|
||||||
--cloud-provider=gce --admin-access=0.0.0.0/0 \
|
--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" \
|
--create-args "--gce-service-account=default --networking=kubenet --set=spec.nodeProblemDetector.enabled=true" \
|
||||||
--test=kops \
|
--test=kops \
|
||||||
-- \
|
-- \
|
||||||
|
|
|
@ -18,7 +18,7 @@ REPO_ROOT=$(git rev-parse --show-toplevel);
|
||||||
source "${REPO_ROOT}"/tests/e2e/scenarios/lib/common.sh
|
source "${REPO_ROOT}"/tests/e2e/scenarios/lib/common.sh
|
||||||
|
|
||||||
export KOPS_BASE_URL
|
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=$(kops-download-from-base)
|
||||||
|
|
||||||
ARGS="--set=cluster.spec.networking.cilium.hubble.enabled=true --set=cluster.spec.certManager.enabled=true"
|
ARGS="--set=cluster.spec.networking.cilium.hubble.enabled=true --set=cluster.spec.certManager.enabled=true"
|
||||||
|
|
|
@ -34,7 +34,7 @@ ${KUBETEST2} \
|
||||||
--create-args="--networking calico"
|
--create-args="--networking calico"
|
||||||
|
|
||||||
export KOPS_BASE_URL
|
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=$(kops-download-from-base)
|
||||||
|
|
||||||
"${KOPS}" update cluster
|
"${KOPS}" update cluster
|
||||||
|
|
|
@ -98,7 +98,7 @@ function kops-base-from-marker() {
|
||||||
if [[ "${1}" =~ ^https: ]]; then
|
if [[ "${1}" =~ ^https: ]]; then
|
||||||
curl -fs "${1}"
|
curl -fs "${1}"
|
||||||
elif [[ "${1}" == "latest" ]]; then
|
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
|
else
|
||||||
curl -fs "https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/release-${1}/latest-ci.txt"
|
curl -fs "https://storage.googleapis.com/k8s-staging-kops/kops/releases/markers/release-${1}/latest-ci.txt"
|
||||||
fi
|
fi
|
||||||
|
@ -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
|
# This function will download the latest kops if in a periodic job, otherwise build from the current tree
|
||||||
function kops-acquire-latest() {
|
function kops-acquire-latest() {
|
||||||
if [[ "${JOB_TYPE-}" == "periodic" ]]; then
|
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)
|
KOPS=$(kops-download-from-base)
|
||||||
CHANNELS=$(kops-channels-download-from-base)
|
CHANNELS=$(kops-channels-download-from-base)
|
||||||
else
|
else
|
||||||
|
|
|
@ -30,7 +30,7 @@ fi
|
||||||
|
|
||||||
# for periodic job, let kubetest2 fetch latest kops. Otherwise let kubetest2 build.
|
# for periodic job, let kubetest2 fetch latest kops. Otherwise let kubetest2 build.
|
||||||
if [[ "${JOB_TYPE-}" == "periodic" ]]; then
|
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
|
else
|
||||||
KUBETEST2="${KUBETEST2} --build"
|
KUBETEST2="${KUBETEST2} --build"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue