Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kops - Add presubmits for network plugins #17984

Merged
merged 1 commit into from
Jun 18, 2020
Merged
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
314 changes: 314 additions & 0 deletions config/jobs/kubernetes/kops/kops-presubmits-network-plugins.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,314 @@
presubmits:
kubernetes/kops:

- name: pull-kops-e2e-cni-amazonvpc
branches:
- master
run_if_changed: '^upup\/models\/cloudup\/resources\/addons\/networking\.amazon-vpc-routed-eni\/'
skip_report: false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we make these optional: true to start? that way we dont bombard all the open PRs with test failures if theres an issue with their setup.

Copy link
Member Author

@hakman hakman Jun 18, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will affect only those with the path and there are none at the moment. We can test this pretty fast if it works.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah ok, that sounds good

labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-bazel-scratch-dir: "true"
preset-bazel-remote-cache-enabled: "true"
preset-dind-enabled: "true"
preset-e2e-platform-aws: "true"
decorate: true
decoration_config:
timeout: 90m
path_alias: k8s.io/kops
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:latest-experimental
imagePullPolicy: Always
command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
args:
- --aws
- --aws-cluster-domain=test-cncf-aws.k8s.io
- --check-leaked-resources=false
- --cluster=
- --kops-ssh-user=ubuntu
- --env=KUBE_SSH_USER=ubuntu
- --env=KOPS_DEPLOY_LATEST_URL=https://storage.googleapis.com/kubernetes-release/release/latest.txt
- --env=KOPS_KUBE_RELEASE_URL=https://storage.googleapis.com/kubernetes-release/release
- --env=KOPS_RUN_TOO_NEW_VERSION=1
- --extract=release/latest
- --ginkgo-parallel
- --kops-build
- --kops-args=--networking=amazon-vpc-routed-eni --node-size=t3.large
- --kops-priority-path=/home/prow/go/src/k8s.io/kops/kubernetes/platforms/linux/amd64
- --provider=aws
- --test_args=--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|Services.*functioning.*NodePort
- --timeout=55m
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
memory: "6Gi"
annotations:
testgrid-dashboards: sig-cluster-lifecycle-kops, presubmits-kops, kops-presubmits
testgrid-tab-name: e2e-amazonvpc

- name: pull-kops-e2e-cni-calico
branches:
- master
run_if_changed: '^upup\/models\/cloudup\/resources\/addons\/networking\.projectcalico\.org\/'
skip_report: false
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-bazel-scratch-dir: "true"
preset-bazel-remote-cache-enabled: "true"
preset-dind-enabled: "true"
preset-e2e-platform-aws: "true"
decorate: true
decoration_config:
timeout: 90m
path_alias: k8s.io/kops
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:latest-experimental
imagePullPolicy: Always
command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
args:
- --aws
- --aws-cluster-domain=test-cncf-aws.k8s.io
- --check-leaked-resources=false
- --cluster=
- --kops-ssh-user=ubuntu
- --env=KUBE_SSH_USER=ubuntu
- --env=KOPS_DEPLOY_LATEST_URL=https://storage.googleapis.com/kubernetes-release/release/latest.txt
- --env=KOPS_KUBE_RELEASE_URL=https://storage.googleapis.com/kubernetes-release/release
- --env=KOPS_RUN_TOO_NEW_VERSION=1
- --extract=release/latest
- --ginkgo-parallel
- --kops-build
- --kops-args=--networking=calico
- --kops-priority-path=/home/prow/go/src/k8s.io/kops/kubernetes/platforms/linux/amd64
- --provider=aws
- --test_args=--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|Services.*functioning.*NodePort|Services.*rejected.*endpoints
- --timeout=55m
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
memory: "6Gi"
annotations:
testgrid-dashboards: sig-cluster-lifecycle-kops, presubmits-kops, kops-presubmits
testgrid-tab-name: e2e-calico

- name: pull-kops-e2e-cni-canal
branches:
- master
run_if_changed: '^upup\/models\/cloudup\/resources\/addons\/networking\.projectcalico\.org\.canal\/'
skip_report: false
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-bazel-scratch-dir: "true"
preset-bazel-remote-cache-enabled: "true"
preset-dind-enabled: "true"
preset-e2e-platform-aws: "true"
decorate: true
decoration_config:
timeout: 90m
path_alias: k8s.io/kops
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:latest-experimental
imagePullPolicy: Always
command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
args:
- --aws
- --aws-cluster-domain=test-cncf-aws.k8s.io
- --check-leaked-resources=false
- --cluster=
- --kops-ssh-user=ubuntu
- --env=KUBE_SSH_USER=ubuntu
- --env=KOPS_DEPLOY_LATEST_URL=https://storage.googleapis.com/kubernetes-release/release/latest.txt
- --env=KOPS_KUBE_RELEASE_URL=https://storage.googleapis.com/kubernetes-release/release
- --env=KOPS_RUN_TOO_NEW_VERSION=1
- --extract=release/latest
- --ginkgo-parallel
- --kops-build
- --kops-args=--networking=canal
- --kops-priority-path=/home/prow/go/src/k8s.io/kops/kubernetes/platforms/linux/amd64
- --provider=aws
- --test_args=--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|Services.*functioning.*NodePort|Services.*rejected.*endpoints
- --timeout=55m
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
memory: "6Gi"
annotations:
testgrid-dashboards: sig-cluster-lifecycle-kops, presubmits-kops, kops-presubmits
testgrid-tab-name: e2e-canal

- name: pull-kops-e2e-cni-cilium
branches:
- master
run_if_changed: '^upup\/models\/cloudup\/resources\/addons\/networking\.cilium\.io\/'
skip_report: false
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-bazel-scratch-dir: "true"
preset-bazel-remote-cache-enabled: "true"
preset-dind-enabled: "true"
preset-e2e-platform-aws: "true"
decorate: true
decoration_config:
timeout: 90m
path_alias: k8s.io/kops
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:latest-experimental
imagePullPolicy: Always
command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
args:
- --aws
- --aws-cluster-domain=test-cncf-aws.k8s.io
- --check-leaked-resources=false
- --cluster=
- --kops-ssh-user=ubuntu
- --env=KUBE_SSH_USER=ubuntu
- --env=KOPS_DEPLOY_LATEST_URL=https://storage.googleapis.com/kubernetes-release/release/latest.txt
- --env=KOPS_KUBE_RELEASE_URL=https://storage.googleapis.com/kubernetes-release/release
- --env=KOPS_RUN_TOO_NEW_VERSION=1
- --extract=release/latest
- --ginkgo-parallel
- --kops-build
- --kops-args=--networking=cilium
- --kops-priority-path=/home/prow/go/src/k8s.io/kops/kubernetes/platforms/linux/amd64
- --provider=aws
- --test_args=--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|Services.*functioning.*NodePort
- --timeout=55m
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
memory: "6Gi"
annotations:
testgrid-dashboards: sig-cluster-lifecycle-kops, presubmits-kops, kops-presubmits
testgrid-tab-name: e2e-cilium

- name: pull-kops-e2e-cni-flannel
branches:
- master
run_if_changed: '^upup\/models\/cloudup\/resources\/addons\/networking\.flannel\/'
skip_report: false
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-bazel-scratch-dir: "true"
preset-bazel-remote-cache-enabled: "true"
preset-dind-enabled: "true"
preset-e2e-platform-aws: "true"
decorate: true
decoration_config:
timeout: 90m
path_alias: k8s.io/kops
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:latest-experimental
imagePullPolicy: Always
command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
args:
- --aws
- --aws-cluster-domain=test-cncf-aws.k8s.io
- --check-leaked-resources=false
- --cluster=
- --kops-ssh-user=ubuntu
- --env=KUBE_SSH_USER=ubuntu
- --env=KOPS_DEPLOY_LATEST_URL=https://storage.googleapis.com/kubernetes-release/release/latest.txt
- --env=KOPS_KUBE_RELEASE_URL=https://storage.googleapis.com/kubernetes-release/release
- --env=KOPS_RUN_TOO_NEW_VERSION=1
- --extract=release/latest
- --ginkgo-parallel
- --kops-build
- --kops-args=--networking=flannel
- --kops-priority-path=/home/prow/go/src/k8s.io/kops/kubernetes/platforms/linux/amd64
- --provider=aws
- --test_args=--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|Services.*functioning.*NodePort
- --timeout=55m
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
memory: "6Gi"
annotations:
testgrid-dashboards: sig-cluster-lifecycle-kops, presubmits-kops, kops-presubmits
testgrid-tab-name: e2e-flannel

- name: pull-kops-e2e-cni-weave
branches:
- master
run_if_changed: '^upup\/models\/cloudup\/resources\/addons\/networking\.weave\/'
skip_report: false
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-bazel-scratch-dir: "true"
preset-bazel-remote-cache-enabled: "true"
preset-dind-enabled: "true"
preset-e2e-platform-aws: "true"
decorate: true
decoration_config:
timeout: 90m
path_alias: k8s.io/kops
spec:
containers:
- image: gcr.io/k8s-testimages/kubekins-e2e:latest-experimental
imagePullPolicy: Always
command:
- runner.sh
- /workspace/scenarios/kubernetes_e2e.py
args:
- --aws
- --aws-cluster-domain=test-cncf-aws.k8s.io
- --check-leaked-resources=false
- --cluster=
- --kops-ssh-user=ubuntu
- --env=KUBE_SSH_USER=ubuntu
- --env=KOPS_DEPLOY_LATEST_URL=https://storage.googleapis.com/kubernetes-release/release/latest.txt
- --env=KOPS_KUBE_RELEASE_URL=https://storage.googleapis.com/kubernetes-release/release
- --env=KOPS_RUN_TOO_NEW_VERSION=1
- --extract=release/latest
- --ginkgo-parallel
- --kops-build
- --kops-args=--networking=weave
- --kops-priority-path=/home/prow/go/src/k8s.io/kops/kubernetes/platforms/linux/amd64
- --provider=aws
- --test_args=--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\]|\[HPA\]|Dashboard|Services.*functioning.*NodePort
- --timeout=55m
# docker-in-docker needs privileged mode
securityContext:
privileged: true
resources:
requests:
memory: "6Gi"
annotations:
testgrid-dashboards: sig-cluster-lifecycle-kops, presubmits-kops, kops-presubmits
testgrid-tab-name: e2e-weave