Skip to content

Commit 8df3853

Browse files
committed
CORS-3699: Create new tech preview job for user provisioned DNS installs (Aws)
1 parent 48414f6 commit 8df3853

6 files changed

+196
-0
lines changed

ci-operator/config/openshift/installer/openshift-installer-master.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,16 @@ tests:
380380
cluster_profile: aws
381381
workflow: openshift-e2e-aws-upi-proxy
382382
timeout: 6h0m0s
383+
- always_run: false
384+
as: e2e-aws-user-provisioned-dns
385+
optional: true
386+
steps:
387+
cluster_profile: aws
388+
env:
389+
FEATURE_SET: TechPreviewNoUpgrade
390+
USER_PROVISIONED_DNS: "yes"
391+
workflow: openshift-e2e-aws
392+
timeout: 6h0m0s
383393
- as: e2e-aws-ovn-shared-vpc-custom-security-groups
384394
optional: true
385395
run_if_changed: aws

ci-operator/config/openshift/installer/openshift-installer-release-4.18.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,16 @@ tests:
374374
cluster_profile: aws
375375
workflow: openshift-e2e-aws-proxy
376376
timeout: 6h0m0s
377+
- always_run: false
378+
as: e2e-aws-user-provisioned-dns
379+
optional: true
380+
steps:
381+
cluster_profile: aws
382+
env:
383+
FEATURE_SET: TechPreviewNoUpgrade
384+
USER_PROVISIONED_DNS: "yes"
385+
workflow: openshift-e2e-aws
386+
timeout: 6h0m0s
377387
- always_run: false
378388
as: e2e-aws-upi-proxy
379389
optional: true

ci-operator/jobs/openshift/installer/openshift-installer-master-presubmits.yaml

+81
Original file line numberDiff line numberDiff line change
@@ -5210,6 +5210,87 @@ presubmits:
52105210
secret:
52115211
secretName: result-aggregator
52125212
trigger: (?m)^/test( | .* )e2e-aws-upi-proxy,?($|\s.*)
5213+
- agent: kubernetes
5214+
always_run: false
5215+
branches:
5216+
- ^master$
5217+
- ^master-
5218+
cluster: build05
5219+
context: ci/prow/e2e-aws-user-provisioned-dns
5220+
decorate: true
5221+
decoration_config:
5222+
timeout: 6h0m0s
5223+
labels:
5224+
ci-operator.openshift.io/cloud: aws
5225+
ci-operator.openshift.io/cloud-cluster-profile: aws
5226+
ci.openshift.io/generator: prowgen
5227+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
5228+
name: pull-ci-openshift-installer-master-e2e-aws-user-provisioned-dns
5229+
optional: true
5230+
rerun_command: /test e2e-aws-user-provisioned-dns
5231+
spec:
5232+
containers:
5233+
- args:
5234+
- --gcs-upload-secret=/secrets/gcs/service-account.json
5235+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
5236+
- --lease-server-credentials-file=/etc/boskos/credentials
5237+
- --report-credentials-file=/etc/report/credentials
5238+
- --secret-dir=/secrets/ci-pull-credentials
5239+
- --secret-dir=/usr/local/e2e-aws-user-provisioned-dns-cluster-profile
5240+
- --target=e2e-aws-user-provisioned-dns
5241+
command:
5242+
- ci-operator
5243+
image: ci-operator:latest
5244+
imagePullPolicy: Always
5245+
name: ""
5246+
resources:
5247+
requests:
5248+
cpu: 10m
5249+
volumeMounts:
5250+
- mountPath: /etc/boskos
5251+
name: boskos
5252+
readOnly: true
5253+
- mountPath: /secrets/ci-pull-credentials
5254+
name: ci-pull-credentials
5255+
readOnly: true
5256+
- mountPath: /usr/local/e2e-aws-user-provisioned-dns-cluster-profile
5257+
name: cluster-profile
5258+
- mountPath: /secrets/gcs
5259+
name: gcs-credentials
5260+
readOnly: true
5261+
- mountPath: /secrets/manifest-tool
5262+
name: manifest-tool-local-pusher
5263+
readOnly: true
5264+
- mountPath: /etc/pull-secret
5265+
name: pull-secret
5266+
readOnly: true
5267+
- mountPath: /etc/report
5268+
name: result-aggregator
5269+
readOnly: true
5270+
serviceAccountName: ci-operator
5271+
volumes:
5272+
- name: boskos
5273+
secret:
5274+
items:
5275+
- key: credentials
5276+
path: credentials
5277+
secretName: boskos-credentials
5278+
- name: ci-pull-credentials
5279+
secret:
5280+
secretName: ci-pull-credentials
5281+
- name: cluster-profile
5282+
secret:
5283+
secretName: cluster-secrets-aws
5284+
- name: manifest-tool-local-pusher
5285+
secret:
5286+
secretName: manifest-tool-local-pusher
5287+
- name: pull-secret
5288+
secret:
5289+
secretName: registry-pull-credentials
5290+
- name: result-aggregator
5291+
secret:
5292+
secretName: result-aggregator
5293+
trigger: (?m)^/test( | .* )e2e-aws-user-provisioned-dns,?($|\s.*)
52135294
- agent: kubernetes
52145295
always_run: false
52155296
branches:

ci-operator/jobs/openshift/installer/openshift-installer-release-4.18-presubmits.yaml

+81
Original file line numberDiff line numberDiff line change
@@ -5208,6 +5208,87 @@ presubmits:
52085208
secret:
52095209
secretName: result-aggregator
52105210
trigger: (?m)^/test( | .* )e2e-aws-upi-proxy,?($|\s.*)
5211+
- agent: kubernetes
5212+
always_run: false
5213+
branches:
5214+
- ^release-4\.18$
5215+
- ^release-4\.18-
5216+
cluster: build09
5217+
context: ci/prow/e2e-aws-user-provisioned-dns
5218+
decorate: true
5219+
decoration_config:
5220+
timeout: 6h0m0s
5221+
labels:
5222+
ci-operator.openshift.io/cloud: aws
5223+
ci-operator.openshift.io/cloud-cluster-profile: aws
5224+
ci.openshift.io/generator: prowgen
5225+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
5226+
name: pull-ci-openshift-installer-release-4.18-e2e-aws-user-provisioned-dns
5227+
optional: true
5228+
rerun_command: /test e2e-aws-user-provisioned-dns
5229+
spec:
5230+
containers:
5231+
- args:
5232+
- --gcs-upload-secret=/secrets/gcs/service-account.json
5233+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
5234+
- --lease-server-credentials-file=/etc/boskos/credentials
5235+
- --report-credentials-file=/etc/report/credentials
5236+
- --secret-dir=/secrets/ci-pull-credentials
5237+
- --secret-dir=/usr/local/e2e-aws-user-provisioned-dns-cluster-profile
5238+
- --target=e2e-aws-user-provisioned-dns
5239+
command:
5240+
- ci-operator
5241+
image: ci-operator:latest
5242+
imagePullPolicy: Always
5243+
name: ""
5244+
resources:
5245+
requests:
5246+
cpu: 10m
5247+
volumeMounts:
5248+
- mountPath: /etc/boskos
5249+
name: boskos
5250+
readOnly: true
5251+
- mountPath: /secrets/ci-pull-credentials
5252+
name: ci-pull-credentials
5253+
readOnly: true
5254+
- mountPath: /usr/local/e2e-aws-user-provisioned-dns-cluster-profile
5255+
name: cluster-profile
5256+
- mountPath: /secrets/gcs
5257+
name: gcs-credentials
5258+
readOnly: true
5259+
- mountPath: /secrets/manifest-tool
5260+
name: manifest-tool-local-pusher
5261+
readOnly: true
5262+
- mountPath: /etc/pull-secret
5263+
name: pull-secret
5264+
readOnly: true
5265+
- mountPath: /etc/report
5266+
name: result-aggregator
5267+
readOnly: true
5268+
serviceAccountName: ci-operator
5269+
volumes:
5270+
- name: boskos
5271+
secret:
5272+
items:
5273+
- key: credentials
5274+
path: credentials
5275+
secretName: boskos-credentials
5276+
- name: ci-pull-credentials
5277+
secret:
5278+
secretName: ci-pull-credentials
5279+
- name: cluster-profile
5280+
secret:
5281+
secretName: cluster-secrets-aws
5282+
- name: manifest-tool-local-pusher
5283+
secret:
5284+
secretName: manifest-tool-local-pusher
5285+
- name: pull-secret
5286+
secret:
5287+
secretName: registry-pull-credentials
5288+
- name: result-aggregator
5289+
secret:
5290+
secretName: result-aggregator
5291+
trigger: (?m)^/test( | .* )e2e-aws-user-provisioned-dns,?($|\s.*)
52115292
- agent: kubernetes
52125293
always_run: false
52135294
branches:

ci-operator/step-registry/ipi/conf/aws/ipi-conf-aws-commands.sh

+10
Original file line numberDiff line numberDiff line change
@@ -380,3 +380,13 @@ platform:
380380
EOF
381381
yq-go m -a -x -i "${CONFIG}" "${patch_bootstrap_ignition}"
382382
fi
383+
384+
if [[ "${USER_PROVISIONED_DNS}" == "yes" ]]; then
385+
patch_user_provisioned_dns="${SHARED_DIR}/install-config-user-provisioned-dns.yaml.patch"
386+
cat > "${patch_user_provisioned_dns}" << EOF
387+
platform:
388+
aws:
389+
userProvisionedDNS: Enabled
390+
EOF
391+
yq-go m -a -x -i "${CONFIG}" "${patch_user_provisioned_dns}"
392+
fi

ci-operator/step-registry/ipi/conf/aws/ipi-conf-aws-ref.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,9 @@ ref:
9696
default: ""
9797
documentation: |-
9898
Allow users to make S3 deletion optional
99+
- name: USER_PROVISIONED_DNS
100+
default: ""
101+
documentation: |-
102+
Allow users to select the user provisioned dns option for AWS installations during configuration.
99103
documentation: |-
100104
The IPI AWS configure step generates the AWS-specific install-config.yaml contents based on the cluster profile and optional input files.

0 commit comments

Comments
 (0)