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

add jobs for kube-network-policies #33075

Merged
merged 1 commit into from
Jul 23, 2024
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
8 changes: 8 additions & 0 deletions config/jobs/kubernetes-sigs/kube-network-policies/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# See the OWNERS docs at https://go.k8s.io/owners

reviewers:
- bentheelder
- aojea
approvers:
- bentheelder
- aojea
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
periodics:
- interval: 24h
name: ci-kubernetes-kube-network-policies-conformance-parallel
cluster: k8s-infra-prow-build
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
decorate: true
extra_refs:
- org: kubernetes-sigs
repo: kube-network-policies
base_ref: main
path_alias: sigs.k8s.io/kube-network-policies
- org: kubernetes
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/krte:v20240705-131cd74733-master
env:
- name: KUBE_PROXY_MODE
value: "nftables"
- name: "PARALLEL"
value: "true"
- name: LABEL_FILTER
value: "!Slow && !Disruptive && !Flaky && Feature: containsAny NetworkPolicy || Conformance"
command:
- wrapper.sh
- bash
- -c
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && $GOPATH/src/sigs.k8s.io/kube-network-policies/hack/ci/e2e.sh
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
resources:
limits:
cpu: "4"
memory: 9000Mi
requests:
cpu: "4"
memory: 9000Mi
annotations:
testgrid-dashboards: sig-testing-kind
testgrid-tab-name: kube-network-policies conformance, master (dev) [non-serial]
testgrid-alert-email: bentheelder@google.com,antonio.ojea.garcia@gmail.com
# conformance test against kubernetes master branch with `kind` ipv6
- interval: 24h
name: ci-kubernetes-kube-network-policies-conformance-parallel-ipv6
cluster: k8s-infra-prow-build
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
decorate: true
extra_refs:
- org: kubernetes-sigs
repo: kube-network-policies
base_ref: main
path_alias: sigs.k8s.io/kube-network-policies
- org: kubernetes
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/krte:v20240705-131cd74733-master
env:
# enable IPV6 in bootstrap image
- name: "DOCKER_IN_DOCKER_IPV6_ENABLED"
value: "true"
# tell kind CI script to use ipv6
- name: "IP_FAMILY"
value: "ipv6"
- name: KUBE_PROXY_MODE
value: "nftables"
- name: "PARALLEL"
value: "true"
- name: LABEL_FILTER
value: "!Slow && !Disruptive && !Flaky && Feature: containsAny NetworkPolicy || Conformance"
command:
- wrapper.sh
- bash
- -c
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && $GOPATH/src/sigs.k8s.io/kube-network-policies/hack/ci/e2e.sh
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
resources:
limits:
cpu: "4"
memory: 9000Mi
requests:
cpu: "4"
memory: 9000Mi
annotations:
testgrid-dashboards: sig-testing-kind
testgrid-tab-name: kube-network-policies (IPv6), master (dev) [non-serial]
testgrid-alert-email: bentheelder@google.com,antonio.ojea.garcia@gmail.com
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
# sigs.k8s.io/kube-network-policies presubmits
presubmits:
kubernetes-sigs/kube-network-policies:
- name: pull-kube-network-policies-nftables
cluster: k8s-infra-prow-build
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
always_run: true
optional: true
decorate: true
extra_refs:
- org: kubernetes
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
path_alias: sigs.k8s.io/kube-network-policies
decoration_config:
timeout: 40m
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/krte:v20240705-131cd74733-master
env:
- name: KUBE_PROXY_MODE
value: "nftables"
- name: "PARALLEL"
value: "true"
- name: LABEL_FILTER
value: "!Slow && !Disruptive && !Flaky && Feature: containsAny NetworkPolicy"
command:
- wrapper.sh
- bash
- -c
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && $GOPATH/src/sigs.k8s.io/kube-network-policies/hack/ci/e2e.sh
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
resources:
limits:
cpu: "4"
memory: 9000Mi
requests:
cpu: "4"
memory: 9000Mi
annotations:
testgrid-dashboards: sig-testing-kind
testgrid-tab-name: pull-kube-network-policies conformance, master (dev) [non-serial]
testgrid-alert-email: bentheelder@google.com,antonio.ojea.garcia@gmail.com
- name: pull-kube-network-policies-nftables-ipv6
cluster: k8s-infra-prow-build
labels:
preset-service-account: "true"
preset-dind-enabled: "true"
preset-kind-volume-mounts: "true"
always_run: true
optional: true
decorate: true
extra_refs:
- org: kubernetes
repo: kubernetes
base_ref: master
path_alias: k8s.io/kubernetes
path_alias: sigs.k8s.io/kube-network-policies
decoration_config:
timeout: 40m
spec:
containers:
- image: gcr.io/k8s-staging-test-infra/krte:v20240705-131cd74733-master
env:
# enable IPV6 in bootstrap image
- name: "DOCKER_IN_DOCKER_IPV6_ENABLED"
value: "true"
# tell kind CI script to use ipv6
- name: "IP_FAMILY"
value: "ipv6"
- name: KUBE_PROXY_MODE
value: "nftables"
- name: "PARALLEL"
value: "true"
- name: LABEL_FILTER
value: "!Slow && !Disruptive && !Flaky && Feature: containsAny NetworkPolicy"
command:
- wrapper.sh
- bash
- -c
- curl -sSL https://kind.sigs.k8s.io/dl/latest/linux-amd64.tgz | tar xvfz - -C "${PATH%%:*}/" && $GOPATH/src/sigs.k8s.io/kube-network-policies/hack/ci/e2e.sh
# we need privileged mode in order to do docker in docker
securityContext:
privileged: true
resources:
limits:
cpu: "4"
memory: 9000Mi
requests:
cpu: "4"
memory: 9000Mi
annotations:
testgrid-dashboards: sig-testing-kind
testgrid-tab-name: pull-kube-network-policies-ipv6 conformance, master (dev) [non-serial]
testgrid-alert-email: bentheelder@google.com,antonio.ojea.garcia@gmail.com