Skip to content

Commit

Permalink
kOps: migrate a few tests to kops-prow-build
Browse files Browse the repository at this point in the history
Part of:
 - kubernetes/k8s.io#5127

Tentative to move aws-related jobs to a new build cluster.

Signed-off-by: Arnaud Meukam <ameukam@gmail.com>
  • Loading branch information
ameukam committed Jan 15, 2024
1 parent c6cd6fd commit 622400b
Show file tree
Hide file tree
Showing 5 changed files with 405 additions and 202 deletions.
11 changes: 9 additions & 2 deletions config/jobs/kubernetes/kops/build_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def build_test(cloud='aws',
scenario=None,
env=None,
kubernetes_feature_gates=None,
pod_service_account=None,
build_cluster="default",
cluster_name=None,
template_path=None,
Expand Down Expand Up @@ -144,9 +145,12 @@ def build_test(cloud='aws',
if scenario is not None:
tmpl_file = "periodic-scenario.yaml.jinja"
name_hash = hashlib.md5(job_name.encode()).hexdigest()
build_cluster = "k8s-infra-kops-prow-build"
env['CLOUD_PROVIDER'] = cloud
env['CLUSTER_NAME'] = f"e2e-{name_hash[0:10]}-{name_hash[12:17]}.test-cncf-aws.k8s.io"
env['KOPS_STATE_STORE'] = 's3://k8s-kops-prow'
env['CLUSTER_NAME'] = f"e2e-{name_hash[0:10]}-{name_hash[12:17]}.tests-kops-aws.k8s.io"
env['DISCOVERY_STORE'] = "s3://k8s-kops-ci-prow"
env['KOPS_DNS_DOMAIN'] = "tests-kops-aws.k8s.io"
env['KOPS_STATE_STORE'] = "s3://k8s-ci-prow-state-store"
env['KUBE_SSH_USER'] = kops_ssh_user
if extra_flags:
env['KOPS_EXTRA_FLAGS'] = " ".join(extra_flags)
Expand Down Expand Up @@ -184,6 +188,7 @@ def build_test(cloud='aws',
build_cluster=build_cluster,
kubernetes_feature_gates=kubernetes_feature_gates,
test_args=test_args,
pod_service_account=pod_service_account,
cluster_name=cluster_name,
storage_e2e_cred=storage_e2e_cred,
)
Expand Down Expand Up @@ -526,6 +531,7 @@ def generate_misc():
# A special test for Calico CNI on Debian 11
build_test(name_override="kops-aws-cni-calico-deb11",
cloud="aws",
build_cluster="k8s-infra-kops-prow-build",
distro="deb11",
k8s_version="stable",
networking="calico",
Expand Down Expand Up @@ -1420,6 +1426,7 @@ def shorten(version):
def generate_scale():
results = [
build_test(
cluster_name='default',
name_override='kops-aws-scale-amazonvpc',
extra_dashboards=[],
runs_per_day=1,
Expand Down
74 changes: 49 additions & 25 deletions config/jobs/kubernetes/kops/kops-periodics-misc2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ periodics:

# {"cloud": "aws", "distro": "u2204", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
- name: e2e-kops-artifacts-sandbox
cluster: default
cluster: k8s-infra-kops-prow-build
cron: '1 1-23/8 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-dind-enabled: "true"
max_concurrency: 1
decorate: true
Expand All @@ -86,6 +85,7 @@ periodics:
workdir: true
path_alias: k8s.io/kops
spec:
serviceAccountName: prowjob-default-sa
containers:
- command:
- runner.sh
Expand All @@ -105,9 +105,13 @@ periodics:
- name: CLOUD_PROVIDER
value: "aws"
- name: CLUSTER_NAME
value: "e2e-622a77307c-4bdbd.test-cncf-aws.k8s.io"
value: "e2e-622a77307c-4bdbd.tests-kops-aws.k8s.io"
- name: DISCOVERY_STORE
value: "s3://k8s-kops-ci-prow"
- name: KOPS_DNS_DOMAIN
value: "tests-kops-aws.k8s.io"
- name: KOPS_STATE_STORE
value: "s3://k8s-kops-prow"
value: "s3://k8s-ci-prow-state-store"
- name: KUBE_SSH_USER
value: "ubuntu"
- name: KOPS_IRSA
Expand Down Expand Up @@ -273,7 +277,7 @@ periodics:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
cluster: default
cluster: k8s-infra-kops-prow-build
decorate: true
decoration_config:
timeout: 90m
Expand Down Expand Up @@ -1373,12 +1377,11 @@ periodics:

# {"cloud": "aws", "distro": "u2204", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
- name: e2e-kops-aws-aws-load-balancer-controller
cluster: default
cluster: k8s-infra-kops-prow-build
cron: '37 5-23/8 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-dind-enabled: "true"
max_concurrency: 1
decorate: true
Expand All @@ -1391,6 +1394,7 @@ periodics:
workdir: true
path_alias: k8s.io/kops
spec:
serviceAccountName: prowjob-default-sa
containers:
- command:
- runner.sh
Expand All @@ -1400,9 +1404,13 @@ periodics:
- name: CLOUD_PROVIDER
value: "aws"
- name: CLUSTER_NAME
value: "e2e-4342699135-9b4dd.test-cncf-aws.k8s.io"
value: "e2e-4342699135-9b4dd.tests-kops-aws.k8s.io"
- name: DISCOVERY_STORE
value: "s3://k8s-kops-ci-prow"
- name: KOPS_DNS_DOMAIN
value: "tests-kops-aws.k8s.io"
- name: KOPS_STATE_STORE
value: "s3://k8s-kops-prow"
value: "s3://k8s-ci-prow-state-store"
- name: KUBE_SSH_USER
value: "ubuntu"
- name: KOPS_IRSA
Expand Down Expand Up @@ -1431,12 +1439,11 @@ periodics:

# {"cloud": "aws", "distro": "u2204", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
- name: e2e-kops-aws-keypair-rotation-ha
cluster: default
cluster: k8s-infra-kops-prow-build
cron: '26 12-23/24 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-dind-enabled: "true"
max_concurrency: 1
decorate: true
Expand All @@ -1449,6 +1456,7 @@ periodics:
workdir: true
path_alias: k8s.io/kops
spec:
serviceAccountName: prowjob-default-sa
containers:
- command:
- runner.sh
Expand All @@ -1460,9 +1468,13 @@ periodics:
- name: CLOUD_PROVIDER
value: "aws"
- name: CLUSTER_NAME
value: "e2e-349a115d39-16181.test-cncf-aws.k8s.io"
value: "e2e-349a115d39-16181.tests-kops-aws.k8s.io"
- name: DISCOVERY_STORE
value: "s3://k8s-kops-ci-prow"
- name: KOPS_DNS_DOMAIN
value: "tests-kops-aws.k8s.io"
- name: KOPS_STATE_STORE
value: "s3://k8s-kops-prow"
value: "s3://k8s-ci-prow-state-store"
- name: KUBE_SSH_USER
value: "ubuntu"
- name: KOPS_IRSA
Expand Down Expand Up @@ -1491,12 +1503,11 @@ periodics:

# {"cloud": "aws", "distro": "u2204", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
- name: e2e-kops-aws-metrics-server
cluster: default
cluster: k8s-infra-kops-prow-build
cron: '42 2-23/8 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-dind-enabled: "true"
max_concurrency: 1
decorate: true
Expand All @@ -1509,6 +1520,7 @@ periodics:
workdir: true
path_alias: k8s.io/kops
spec:
serviceAccountName: prowjob-default-sa
containers:
- command:
- runner.sh
Expand All @@ -1518,9 +1530,13 @@ periodics:
- name: CLOUD_PROVIDER
value: "aws"
- name: CLUSTER_NAME
value: "e2e-127cbce38e-b114d.test-cncf-aws.k8s.io"
value: "e2e-127cbce38e-b114d.tests-kops-aws.k8s.io"
- name: DISCOVERY_STORE
value: "s3://k8s-kops-ci-prow"
- name: KOPS_DNS_DOMAIN
value: "tests-kops-aws.k8s.io"
- name: KOPS_STATE_STORE
value: "s3://k8s-kops-prow"
value: "s3://k8s-ci-prow-state-store"
- name: KUBE_SSH_USER
value: "ubuntu"
- name: KOPS_IRSA
Expand Down Expand Up @@ -1549,12 +1565,11 @@ periodics:

# {"cloud": "aws", "distro": "u2204", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
- name: e2e-kops-aws-pod-identity-webhook
cluster: default
cluster: k8s-infra-kops-prow-build
cron: '50 6-23/8 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-dind-enabled: "true"
max_concurrency: 1
decorate: true
Expand All @@ -1567,6 +1582,7 @@ periodics:
workdir: true
path_alias: k8s.io/kops
spec:
serviceAccountName: prowjob-default-sa
containers:
- command:
- runner.sh
Expand All @@ -1576,9 +1592,13 @@ periodics:
- name: CLOUD_PROVIDER
value: "aws"
- name: CLUSTER_NAME
value: "e2e-49d63c55eb-ac683.test-cncf-aws.k8s.io"
value: "e2e-49d63c55eb-ac683.tests-kops-aws.k8s.io"
- name: DISCOVERY_STORE
value: "s3://k8s-kops-ci-prow"
- name: KOPS_DNS_DOMAIN
value: "tests-kops-aws.k8s.io"
- name: KOPS_STATE_STORE
value: "s3://k8s-kops-prow"
value: "s3://k8s-ci-prow-state-store"
- name: KUBE_SSH_USER
value: "ubuntu"
- name: KOPS_IRSA
Expand Down Expand Up @@ -1607,12 +1627,11 @@ periodics:

# {"cloud": "aws", "distro": "u2204", "k8s_version": "stable", "kops_channel": "alpha", "kops_version": "latest", "networking": "cilium"}
- name: e2e-kops-aws-addon-resource-tracking
cluster: default
cluster: k8s-infra-kops-prow-build
cron: '43 4-23/8 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-dind-enabled: "true"
max_concurrency: 1
decorate: true
Expand All @@ -1625,6 +1644,7 @@ periodics:
workdir: true
path_alias: k8s.io/kops
spec:
serviceAccountName: prowjob-default-sa
containers:
- command:
- runner.sh
Expand All @@ -1634,9 +1654,13 @@ periodics:
- name: CLOUD_PROVIDER
value: "aws"
- name: CLUSTER_NAME
value: "e2e-c0d41e2af2-13250.test-cncf-aws.k8s.io"
value: "e2e-c0d41e2af2-13250.tests-kops-aws.k8s.io"
- name: DISCOVERY_STORE
value: "s3://k8s-kops-ci-prow"
- name: KOPS_DNS_DOMAIN
value: "tests-kops-aws.k8s.io"
- name: KOPS_STATE_STORE
value: "s3://k8s-kops-prow"
value: "s3://k8s-ci-prow-state-store"
- name: KUBE_SSH_USER
value: "ubuntu"
- name: KOPS_IRSA
Expand Down
12 changes: 8 additions & 4 deletions config/jobs/kubernetes/kops/kops-periodics-scale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ periodics:

# {"cloud": "aws", "distro": "u2204", "k8s_version": "ci", "kops_channel": "alpha", "kops_version": "latest", "networking": "amazonvpc"}
- name: e2e-kops-aws-scale-amazonvpc
cluster: default
cluster: k8s-infra-kops-prow-build
cron: '37 0-23/24 * * *'
labels:
preset-service-account: "true"
preset-aws-ssh: "true"
preset-aws-credential: "true"
preset-dind-enabled: "true"
max_concurrency: 1
decorate: true
Expand All @@ -22,6 +21,7 @@ periodics:
workdir: true
path_alias: k8s.io/kops
spec:
serviceAccountName: prowjob-default-sa
containers:
- command:
- runner.sh
Expand All @@ -31,9 +31,13 @@ periodics:
- name: CLOUD_PROVIDER
value: "aws"
- name: CLUSTER_NAME
value: "e2e-f21a47a3cd-b6b27.test-cncf-aws.k8s.io"
value: "e2e-f21a47a3cd-b6b27.tests-kops-aws.k8s.io"
- name: DISCOVERY_STORE
value: "s3://k8s-kops-ci-prow"
- name: KOPS_DNS_DOMAIN
value: "tests-kops-aws.k8s.io"
- name: KOPS_STATE_STORE
value: "s3://k8s-kops-prow"
value: "s3://k8s-ci-prow-state-store"
- name: KUBE_SSH_USER
value: "ubuntu"
- name: KOPS_IRSA
Expand Down
Loading

0 comments on commit 622400b

Please sign in to comment.