Skip to content

Commit 8f70866

Browse files
authored
Merge pull request #28611 from haircommander/swap-sync
crio swap: sync the swap configuration
2 parents 7bbf269 + 6f13328 commit 8f70866

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

config/jobs/kubernetes/sig-node/node-kubelet.yaml

+14-9
Original file line numberDiff line numberDiff line change
@@ -129,20 +129,23 @@ periodics:
129129
containers:
130130
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-master
131131
args:
132-
- --repo=k8s.io/kubernetes=master
133-
- --timeout=240
134132
- --root=/go/src
133+
- "--job=$(JOB_NAME)"
134+
- "--repo=k8s.io/$(REPO_NAME)=$(PULL_REFS)"
135135
- "--service-account=/etc/service-account/service-account.json"
136+
- "--upload=gs://kubernetes-jenkins/pr-logs"
137+
- "--timeout=240"
136138
- --scenario=kubernetes_e2e
137-
- --
139+
- -- # end bootstrap args, scenario args below
138140
- --deployment=node
141+
- --env=KUBE_SSH_USER=core
139142
- --gcp-zone=us-west1-b
140-
- --node-args=--image-config-file=/workspace/test-infra/jobs/e2e_node/swap/image-config-swap-fedora.yaml
141143
- '--node-test-args=--feature-gates=NodeSwap=true --container-runtime-endpoint=unix:///var/run/crio/crio.sock --container-runtime-process-name=/usr/local/bin/crio --container-runtime-pid-file= --kubelet-flags="--fail-swap-on=false --cgroup-driver=systemd --cgroups-per-qos=true --cgroup-root=/ --runtime-cgroups=/system.slice/crio.service --kubelet-cgroups=/system.slice/kubelet.service" --extra-log="{\"name\": \"crio.log\", \"journalctl\": [\"-u\", \"crio\"]}"'
142144
- --node-tests=true
143145
- --provider=gce
144146
- --test_args=--nodes=8 --focus="\[NodeConformance\]|\[NodeFeature:.+\]|\[NodeFeature\]" --skip="\[Flaky\]|\[Slow\]|\[Serial\]"
145147
- --timeout=180m
148+
- --node-args=--image-config-file=/workspace/test-infra/jobs/e2e_node/swap/image-config-swap-fedora.yaml
146149
env:
147150
- name: GOPATH
148151
value: /go
@@ -213,20 +216,23 @@ periodics:
213216
containers:
214217
- image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20230127-9396ca613c-master
215218
args:
216-
- --repo=k8s.io/kubernetes=master
217-
- --timeout=240
218219
- --root=/go/src
220+
- "--job=$(JOB_NAME)"
221+
- "--repo=k8s.io/$(REPO_NAME)=$(PULL_REFS)"
219222
- "--service-account=/etc/service-account/service-account.json"
223+
- "--upload=gs://kubernetes-jenkins/pr-logs"
224+
- "--timeout=240"
220225
- --scenario=kubernetes_e2e
221-
- --
226+
- -- # end bootstrap args, scenario args below
222227
- --deployment=node
228+
- --env=KUBE_SSH_USER=core
223229
- --gcp-zone=us-west1-b
224-
- --node-args=--image-config-file=/workspace/test-infra/jobs/e2e_node/swap/image-config-swap-fedora.yaml
225230
- '--node-test-args=--feature-gates=NodeSwap=true --container-runtime-endpoint=unix:///var/run/crio/crio.sock --container-runtime-process-name=/usr/local/bin/crio --container-runtime-pid-file= --kubelet-flags="--fail-swap-on=false --cgroup-driver=systemd --cgroups-per-qos=true --cgroup-root=/ --runtime-cgroups=/system.slice/crio.service --kubelet-cgroups=/system.slice/kubelet.service" --extra-log="{\"name\": \"crio.log\", \"journalctl\": [\"-u\", \"crio\"]}"'
226231
- --node-tests=true
227232
- --provider=gce
228233
- --test_args=--nodes=1 --focus="\[Serial\]" --skip="\[Flaky\]|\[Slow\]|\[Benchmark\]|\[NodeSpecialFeature:.+\]|\[NodeSpecialFeature\]|\[NodeAlphaFeature:.+\]|\[NodeAlphaFeature\]|\[NodeFeature:Eviction\]"
229234
- --timeout=180m
235+
- --node-args=--image-config-file=/workspace/test-infra/jobs/e2e_node/swap/image-config-swap-fedora.yaml
230236
resources:
231237
limits:
232238
cpu: 4
@@ -239,7 +245,6 @@ periodics:
239245
value: /go
240246
- name: IGNITION_INJECT_GCE_SSH_PUBLIC_KEY_FILE
241247
value: "1"
242-
243248
# TODO: migrate performance special config tests to containerd/cri-o
244249
#- name: ci-kubernetes-node-kubelet-performance-test
245250
# interval: 12h

config/jobs/kubernetes/sig-node/sig-node-presubmit.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1090,6 +1090,9 @@ presubmits:
10901090
requests:
10911091
cpu: 4
10921092
memory: 6Gi
1093+
env:
1094+
- name: IGNITION_INJECT_GCE_SSH_PUBLIC_KEY_FILE
1095+
value: "1"
10931096
- name: pull-kubernetes-node-swap-ubuntu-serial
10941097
cluster: k8s-infra-prow-build
10951098
always_run: false
@@ -1184,7 +1187,6 @@ presubmits:
11841187
- name: IGNITION_INJECT_GCE_SSH_PUBLIC_KEY_FILE
11851188
value: "1"
11861189

1187-
11881190
- name: pull-kubernetes-node-kubelet-credential-provider
11891191
cluster: k8s-infra-prow-build
11901192
always_run: false

jobs/e2e_node/swap/crio_swap1g.ign

-9
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,5 @@
4848
"name": "crio-install.service"
4949
}
5050
]
51-
},
52-
"passwd": {
53-
"users": [
54-
{
55-
"name": "prow",
56-
"system": true,
57-
"groups": ["sudo"]
58-
}
59-
]
6051
}
6152
}

0 commit comments

Comments
 (0)