|
1 | 1 | periodics:
|
2 |
| - - name: periodic-kubernetes-containerd-conformance-test-ppc64le |
3 |
| - labels: |
4 |
| - preset-dind-enabled: "true" |
5 |
| - preset-ibmcloud-cred: "true" |
6 |
| - decorate: true |
7 |
| - decoration_config: |
8 |
| - gcs_configuration: |
9 |
| - bucket: ppc64le-kubernetes |
10 |
| - path_strategy: explicit |
11 |
| - gcs_credentials_secret: gcs-credentials |
12 |
| - cron: "0 2/3 * * *" |
13 |
| - extra_refs: |
14 |
| - - base_ref: main |
15 |
| - org: kubernetes-sigs |
16 |
| - repo: provider-ibmcloud-test-infra |
17 |
| - workdir: true |
18 |
| - - base_ref: master |
19 |
| - org: kubernetes |
20 |
| - repo: kubernetes |
21 |
| - spec: |
22 |
| - containers: |
23 |
| - - image: gcr.io/k8s-staging-test-infra/kubekins-e2e:v20241128-8df65c072f-master |
24 |
| - securityContext: |
25 |
| - privileged: true |
26 |
| - env: |
27 |
| - - name: "BOSKOS_HOST" |
28 |
| - value: "boskos.test-pods.svc.cluster.local" |
29 |
| - - name: "USER" |
30 |
| - value: "periodic-k8s-containerd-conformance-job" |
31 |
| - resources: |
32 |
| - requests: |
33 |
| - memory: "5Gi" |
34 |
| - limits: |
35 |
| - memory: "5Gi" |
36 |
| - command: |
37 |
| - - runner.sh |
38 |
| - args: |
39 |
| - - bash |
40 |
| - - -c |
41 |
| - - | |
42 |
| - set -o errexit |
43 |
| - set -o nounset |
44 |
| - set -o pipefail |
45 |
| - set -o xtrace |
46 |
| -
|
47 |
| - export PATH=$GOPATH/bin:$PATH |
48 |
| - export GO111MODULE=on |
49 |
| - RESOURCE_TYPE="powervs-k8s-conformance" |
50 |
| - source "./hack/boskos.sh" |
51 |
| -
|
52 |
| - make install-deployer-tf |
53 |
| -
|
54 |
| - apt-get update && apt-get install -y ansible |
55 |
| -
|
56 |
| - # Details of IBM S3 storage |
57 |
| - S3_SERVER=s3.us.cloud-object-storage.appdomain.cloud |
58 |
| - BUCKET=k8s-infra-cos-bucket |
59 |
| - DIRECTORY=ci |
60 |
| -
|
61 |
| - # Build and push artifacts to IBM COS |
62 |
| - REPOROOT=../../kubernetes/kubernetes |
63 |
| - kubetest2 tf --build --repo-root $REPOROOT --stage cos://us/$BUCKET/$DIRECTORY --cos-cred-type cos_hmac |
64 |
| - K8S_BUILD_VERSION=`cat $REPOROOT/_output/release-stage/server/linux-ppc64le/kubernetes/version` |
65 |
| -
|
66 |
| - TIMESTAMP=$(date +%s) |
67 |
| - jq --arg key0 'k8s-build-version' --arg value0 $K8S_BUILD_VERSION '. | .[$key0]=$value0' <<<'{}' > $ARTIFACTS/metadata.json |
68 |
| -
|
69 |
| - set -o xtrace |
70 |
| - set +o errexit |
71 |
| - kubetest2 tf --powervs-image-name CentOS-Stream-9 \ |
72 |
| - --powervs-region ${BOSKOS_REGION} --powervs-zone ${BOSKOS_ZONE} \ |
73 |
| - --powervs-service-id ${BOSKOS_RESOURCE_ID} \ |
74 |
| - --powervs-ssh-key k8s-infra-sshkey \ |
75 |
| - --ssh-private-key /etc/secret-volume/ssh-privatekey \ |
76 |
| - --s3-server $S3_SERVER --bucket $BUCKET --directory $DIRECTORY \ |
77 |
| - --extra-vars=k8s_tar_bundles:kubernetes-server-linux-ppc64le.tar.gz \ |
78 |
| - --build-version $K8S_BUILD_VERSION \ |
79 |
| - --release-marker $K8S_BUILD_VERSION \ |
80 |
| - --cluster-name config1-$TIMESTAMP \ |
81 |
| - --workers-count 2 \ |
82 |
| - --up --auto-approve --retry-on-tf-failure 3 \ |
83 |
| - --break-kubetest-on-upfail true \ |
84 |
| - --powervs-memory 32 \ |
85 |
| - --test=ginkgo -- --parallel 10 --use-built-binaries true --focus-regex='\[Conformance\]' --skip-regex='\[Serial\]'; rc1=$? |
86 |
| -
|
87 |
| - export KUBECONFIG="$(pwd)/config1-$TIMESTAMP/kubeconfig" |
88 |
| - export ARTIFACTS=$ARTIFACTS/serial_tests_artifacts |
89 |
| - #Run Serial Conformance tests |
90 |
| - kubetest2 tf --powervs-region ${BOSKOS_REGION} --powervs-zone ${BOSKOS_ZONE} \ |
91 |
| - --powervs-service-id ${BOSKOS_RESOURCE_ID} \ |
92 |
| - --ignore-cluster-dir true \ |
93 |
| - --cluster-name config1-$TIMESTAMP \ |
94 |
| - --down --auto-approve --ignore-destroy-errors \ |
95 |
| - --test=ginkgo -- \ |
96 |
| - --use-built-binaries true \ |
97 |
| - --focus-regex='\[Serial\].*\[Conformance\]'; rc2=$? |
98 |
| - [ -z "${BOSKOS_HOST:-}" ] || release_account >> "$ARTIFACTS/boskos.log" 2>&1 |
99 |
| - if [ $rc1 != 0 ]; then |
100 |
| - echo "ERROR: Non Serial k8s Conformance tests exited with code: $rc1" |
101 |
| - exit $rc1 |
102 |
| - elif [ $rc2 != 0 ]; then |
103 |
| - echo "ERROR: Serial k8s Conformance tests exited with code: $rc2" |
104 |
| - exit $rc2 |
105 |
| - fi |
106 |
| -
|
107 | 2 | - name: periodic-kubernetes-containerd-e2e-node-tests-ppc64le
|
108 | 3 | labels:
|
109 | 4 | preset-golang-build: "true"
|
|
0 commit comments