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: migrate presubmits to community infra #32238

Merged
merged 1 commit into from
Mar 12, 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
28 changes: 28 additions & 0 deletions config/jobs/kubernetes/kops/build_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1414,6 +1414,8 @@ def generate_presubmits_distros():
]
results.append(
presubmit_test(
cloud='aws',
build_cluster='k8s-infra-kops-prow-build',
distro=distro_short,
networking='calico',
k8s_version='stable',
Expand Down Expand Up @@ -1836,6 +1838,8 @@ def generate_presubmits_network_plugins():
optional = True
results.append(
presubmit_test(
cloud='aws',
build_cluster='k8s-infra-kops-prow-build',
distro='u2204arm64',
k8s_version=k8s_version,
kops_channel='alpha',
Expand All @@ -1854,6 +1858,7 @@ def generate_presubmits_network_plugins():
results.append(
presubmit_test(
name=f"pull-kops-e2e-cni-{plugin}-ipv6",
build_cluster='k8s-infra-kops-prow-build',
distro='u2204arm64',
tab_name=f"e2e-{plugin}-ipv6",
networking=networking_arg,
Expand All @@ -1876,6 +1881,7 @@ def generate_presubmits_network_plugins():
def generate_presubmits_e2e():
jobs = [
presubmit_test(
build_cluster='k8s-infra-kops-prow-build',
distro='u2204arm64',
k8s_version='ci',
kops_channel='alpha',
Expand All @@ -1886,6 +1892,7 @@ def generate_presubmits_e2e():
focus_regex=r'\[Conformance\]|\[NodeConformance\]',
),
presubmit_test(
build_cluster='k8s-infra-kops-prow-build',
distro='u2204arm64',
k8s_version='ci',
kops_channel='alpha',
Expand All @@ -1900,6 +1907,7 @@ def generate_presubmits_e2e():
focus_regex=r'\[Conformance\]|\[NodeConformance\]',
),
presubmit_test(
build_cluster='k8s-infra-kops-prow-build',
distro='channels',
k8s_version='stable',
kops_channel='alpha',
Expand All @@ -1909,6 +1917,7 @@ def generate_presubmits_e2e():
always_run=True,
),
presubmit_test(
build_cluster='k8s-infra-kops-prow-build',
distro='al2023',
k8s_version='stable',
kops_channel='alpha',
Expand Down Expand Up @@ -2000,6 +2009,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-aws-cloud-controller-manager",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro="u2204",
k8s_version="ci",
extra_flags=['--set=cluster.spec.cloudControllerManager.cloudProvider=aws'],
Expand All @@ -2009,6 +2019,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-aws-load-balancer-controller",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro="u2004",
networking="calico",
scenario="aws-lb-controller",
Expand All @@ -2018,6 +2029,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-addon-resource-tracking",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro="u2204",
networking="calico",
scenario="addon-resource-tracking",
Expand All @@ -2027,6 +2039,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-metrics-server",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro="u2204",
networking="calico",
scenario="metrics-server",
Expand All @@ -2036,6 +2049,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-pod-identity-webhook",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro="u2204",
networking="calico",
scenario="podidentitywebhook",
Expand All @@ -2045,6 +2059,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-aws-external-dns",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
networking="calico",
extra_flags=[
'--set=cluster.spec.externalDNS.provider=external-dns',
Expand All @@ -2054,6 +2069,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-aws-ipv6-external-dns",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
networking="calico",
extra_flags=[
'--ipv6',
Expand All @@ -2065,6 +2081,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-aws-node-local-dns",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro='u2204arm64',
extra_flags=[
'--set=cluster.spec.kubeDNS.nodeLocalDNS.enabled=true'
Expand All @@ -2074,13 +2091,15 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-aws-apiserver-nodes",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
template_path="/home/prow/go/src/k8s.io/kops/tests/e2e/templates/apiserver.yaml.tmpl",
feature_flags=['APIServerNodes']
),

presubmit_test(
name="pull-kops-e2e-arm64",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro="u2204arm64",
networking="calico",
extra_flags=["--zones=eu-central-1a",
Expand All @@ -2091,6 +2110,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-aws-dns-none",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro="u2204arm64",
networking="calico",
extra_flags=["--dns=none"],
Expand All @@ -2107,6 +2127,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-aws-nlb",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro="u2204arm64",
networking="calico",
extra_flags=[
Expand All @@ -2118,6 +2139,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-aws-terraform",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro="u2204arm64",
terraform_version="1.5.5",
extra_flags=[
Expand All @@ -2127,6 +2149,7 @@ def generate_presubmits_e2e():
presubmit_test(
name="pull-kops-e2e-aws-ipv6-terraform",
cloud="aws",
build_cluster='k8s-infra-kops-prow-build',
distro="u2204arm64",
terraform_version="1.5.5",
extra_flags=[
Expand All @@ -2137,6 +2160,7 @@ def generate_presubmits_e2e():
),

presubmit_test(
build_cluster='k8s-infra-kops-prow-build',
distro='channels',
branch='release-1.28',
k8s_version='1.28',
Expand All @@ -2147,6 +2171,7 @@ def generate_presubmits_e2e():
always_run=True,
),
presubmit_test(
build_cluster='k8s-infra-kops-prow-build',
distro='channels',
branch='release-1.27',
k8s_version='1.27',
Expand All @@ -2157,6 +2182,7 @@ def generate_presubmits_e2e():
always_run=True,
),
presubmit_test(
build_cluster='k8s-infra-kops-prow-build',
distro='channels',
branch='release-1.26',
k8s_version='1.26',
Expand All @@ -2168,6 +2194,7 @@ def generate_presubmits_e2e():
),

presubmit_test(
build_cluster='k8s-infra-kops-prow-build',
distro='u2204arm64',
name="pull-kops-e2e-aws-karpenter",
run_if_changed=r'^upup\/models\/cloudup\/resources\/addons\/karpenter\.sh\/',
Expand All @@ -2181,6 +2208,7 @@ def generate_presubmits_e2e():
skip_regex=r'\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|HostPort|two.untainted.nodes',
),
presubmit_test(
build_cluster='k8s-infra-kops-prow-build',
distro='u2204arm64',
name="pull-kops-e2e-aws-ipv6-karpenter",
#run_if_changed=r'^upup\/models\/cloudup\/resources\/addons\/karpenter\.sh\/',
Expand Down
2 changes: 1 addition & 1 deletion config/jobs/kubernetes/kops/kops-periodics-distros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ periodics:
-v 2 \
--up --down \
--cloud-provider=aws \
--create-args="--image='137112412989/amzn2-ami-kernel-5.10-hvm-2.0.20240223.0-x86_64-gp2' --channel=alpha --networking=cilium --discovery-store=s3://k8s-kops-prow/discovery" \
--create-args="--image='137112412989/amzn2-ami-kernel-5.10-hvm-2.0.20240306.2-x86_64-gp2' --channel=alpha --networking=cilium --discovery-store=s3://k8s-kops-prow/discovery" \
--kops-version-marker=https://storage.googleapis.com/kops-ci/bin/latest-ci-updown-green.txt \
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--test=kops \
Expand Down
28 changes: 14 additions & 14 deletions config/jobs/kubernetes/kops/kops-presubmits-distros.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ presubmits:

# {"cloud": "aws", "distro": "deb10", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-debian10
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -72,7 +72,7 @@ presubmits:

# {"cloud": "aws", "distro": "deb11", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-debian11
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -139,7 +139,7 @@ presubmits:

# {"cloud": "aws", "distro": "deb12", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-debian12
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -206,7 +206,7 @@ presubmits:

# {"cloud": "aws", "distro": "u2004", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-ubuntu2004
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -273,7 +273,7 @@ presubmits:

# {"cloud": "aws", "distro": "u2004arm64", "extra_flags": "--zones=eu-west-1a --node-size=m6g.large --master-size=m6g.large --discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-ubuntu2004arm64
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -340,7 +340,7 @@ presubmits:

# {"cloud": "aws", "distro": "u2204", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-ubuntu2204
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -407,7 +407,7 @@ presubmits:

# {"cloud": "aws", "distro": "u2204arm64", "extra_flags": "--zones=eu-west-1a --node-size=m6g.large --master-size=m6g.large --discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-ubuntu2204arm64
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -474,7 +474,7 @@ presubmits:

# {"cloud": "aws", "distro": "amzn2", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-amazonlinux2
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -504,7 +504,7 @@ presubmits:
-v 2 \
--up --build --down \
--cloud-provider=aws \
--create-args="--image='137112412989/amzn2-ami-kernel-5.10-hvm-2.0.20240223.0-x86_64-gp2' --channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
--create-args="--image='137112412989/amzn2-ami-kernel-5.10-hvm-2.0.20240306.2-x86_64-gp2' --channel=alpha --networking=calico --discovery-store=s3://k8s-kops-prow/discovery" \
--kubernetes-version=https://dl.k8s.io/release/stable.txt \
--kops-binary-path=/home/prow/go/src/k8s.io/kops/.build/dist/linux/amd64/kops \
--test=kops \
Expand Down Expand Up @@ -541,7 +541,7 @@ presubmits:

# {"cloud": "aws", "distro": "al2023", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-al2023
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -608,7 +608,7 @@ presubmits:

# {"cloud": "aws", "distro": "rhel8", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-rhel8
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -675,7 +675,7 @@ presubmits:

# {"cloud": "aws", "distro": "rhel9", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-rhel9
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -742,7 +742,7 @@ presubmits:

# {"cloud": "aws", "distro": "rocky8", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-rocky8
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down Expand Up @@ -809,7 +809,7 @@ presubmits:

# {"cloud": "aws", "distro": "flatcar", "extra_flags": "--discovery-store=s3://k8s-kops-prow/discovery", "k8s_version": "stable", "kops_channel": "alpha", "networking": "calico"}
- name: pull-kops-aws-distro-flatcar
cluster: default
cluster: k8s-infra-kops-prow-build
branches:
- master
always_run: false
Expand Down
Loading