Skip to content

Commit f2253a1

Browse files
committed
CORS-3699: Create new tech preview job for user provisioned DNS installs (Aws)
1 parent 143ef39 commit f2253a1

8 files changed

+270
-0
lines changed

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

+11
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,17 @@ tests:
376376
cluster_profile: aws
377377
workflow: openshift-e2e-aws-proxy
378378
timeout: 6h0m0s
379+
- always_run: false
380+
as: e2e-aws-ovn-user-provisioned-dns
381+
optional: true
382+
steps:
383+
cluster_profile: aws
384+
env:
385+
AWS_INSTALL_USE_MINIMAL_PERMISSIONS: "yes"
386+
FEATURE_SET: TechPreviewNoUpgrade
387+
USER_PROVISIONED_DNS: "yes"
388+
workflow: openshift-e2e-aws
389+
timeout: 6h0m0s
379390
- always_run: false
380391
as: e2e-aws-upi-proxy
381392
optional: true

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

+11
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,17 @@ tests:
377377
cluster_profile: aws
378378
workflow: openshift-e2e-aws-proxy
379379
timeout: 6h0m0s
380+
- always_run: false
381+
as: e2e-aws-ovn-user-provisioned-dns
382+
optional: true
383+
steps:
384+
cluster_profile: aws
385+
env:
386+
AWS_INSTALL_USE_MINIMAL_PERMISSIONS: "yes"
387+
FEATURE_SET: TechPreviewNoUpgrade
388+
USER_PROVISIONED_DNS: "yes"
389+
workflow: openshift-e2e-aws
390+
timeout: 6h0m0s
380391
- always_run: false
381392
as: e2e-aws-upi-proxy
382393
optional: true

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

+11
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,17 @@ tests:
383383
cluster_profile: aws
384384
workflow: openshift-e2e-aws-upi-proxy
385385
timeout: 6h0m0s
386+
- always_run: false
387+
as: e2e-aws-ovn-user-provisioned-dns
388+
optional: true
389+
steps:
390+
cluster_profile: aws
391+
env:
392+
AWS_INSTALL_USE_MINIMAL_PERMISSIONS: "yes"
393+
FEATURE_SET: TechPreviewNoUpgrade
394+
USER_PROVISIONED_DNS: "yes"
395+
workflow: openshift-e2e-aws
396+
timeout: 6h0m0s
386397
- as: e2e-aws-ovn-shared-vpc-custom-security-groups
387398
optional: true
388399
run_if_changed: aws

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

+74
Original file line numberDiff line numberDiff line change
@@ -4833,6 +4833,80 @@ presubmits:
48334833
secret:
48344834
secretName: result-aggregator
48354835
trigger: (?m)^/test( | .* )e2e-aws-ovn-upi,?($|\s.*)
4836+
- agent: kubernetes
4837+
always_run: false
4838+
branches:
4839+
- ^release-4\.18$
4840+
- ^release-4\.18-
4841+
context: ci/prow/e2e-aws-ovn-user-provisioned-dns
4842+
decorate: true
4843+
decoration_config:
4844+
timeout: 6h0m0s
4845+
labels:
4846+
ci-operator.openshift.io/cloud: aws
4847+
ci-operator.openshift.io/cloud-cluster-profile: aws
4848+
ci.openshift.io/generator: prowgen
4849+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
4850+
name: pull-ci-openshift-installer-release-4.18-e2e-aws-ovn-user-provisioned-dns
4851+
optional: true
4852+
rerun_command: /test e2e-aws-ovn-user-provisioned-dns
4853+
spec:
4854+
containers:
4855+
- args:
4856+
- --gcs-upload-secret=/secrets/gcs/service-account.json
4857+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
4858+
- --lease-server-credentials-file=/etc/boskos/credentials
4859+
- --report-credentials-file=/etc/report/credentials
4860+
- --secret-dir=/secrets/ci-pull-credentials
4861+
- --target=e2e-aws-ovn-user-provisioned-dns
4862+
command:
4863+
- ci-operator
4864+
image: ci-operator:latest
4865+
imagePullPolicy: Always
4866+
name: ""
4867+
resources:
4868+
requests:
4869+
cpu: 10m
4870+
volumeMounts:
4871+
- mountPath: /etc/boskos
4872+
name: boskos
4873+
readOnly: true
4874+
- mountPath: /secrets/ci-pull-credentials
4875+
name: ci-pull-credentials
4876+
readOnly: true
4877+
- mountPath: /secrets/gcs
4878+
name: gcs-credentials
4879+
readOnly: true
4880+
- mountPath: /secrets/manifest-tool
4881+
name: manifest-tool-local-pusher
4882+
readOnly: true
4883+
- mountPath: /etc/pull-secret
4884+
name: pull-secret
4885+
readOnly: true
4886+
- mountPath: /etc/report
4887+
name: result-aggregator
4888+
readOnly: true
4889+
serviceAccountName: ci-operator
4890+
volumes:
4891+
- name: boskos
4892+
secret:
4893+
items:
4894+
- key: credentials
4895+
path: credentials
4896+
secretName: boskos-credentials
4897+
- name: ci-pull-credentials
4898+
secret:
4899+
secretName: ci-pull-credentials
4900+
- name: manifest-tool-local-pusher
4901+
secret:
4902+
secretName: manifest-tool-local-pusher
4903+
- name: pull-secret
4904+
secret:
4905+
secretName: registry-pull-credentials
4906+
- name: result-aggregator
4907+
secret:
4908+
secretName: result-aggregator
4909+
trigger: (?m)^/test( | .* )e2e-aws-ovn-user-provisioned-dns,?($|\s.*)
48364910
- agent: kubernetes
48374911
always_run: false
48384912
branches:

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

+74
Original file line numberDiff line numberDiff line change
@@ -4831,6 +4831,80 @@ presubmits:
48314831
secret:
48324832
secretName: result-aggregator
48334833
trigger: (?m)^/test( | .* )e2e-aws-ovn-upi,?($|\s.*)
4834+
- agent: kubernetes
4835+
always_run: false
4836+
branches:
4837+
- ^release-4\.19$
4838+
- ^release-4\.19-
4839+
context: ci/prow/e2e-aws-ovn-user-provisioned-dns
4840+
decorate: true
4841+
decoration_config:
4842+
timeout: 6h0m0s
4843+
labels:
4844+
ci-operator.openshift.io/cloud: aws
4845+
ci-operator.openshift.io/cloud-cluster-profile: aws
4846+
ci.openshift.io/generator: prowgen
4847+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
4848+
name: pull-ci-openshift-installer-release-4.19-e2e-aws-ovn-user-provisioned-dns
4849+
optional: true
4850+
rerun_command: /test e2e-aws-ovn-user-provisioned-dns
4851+
spec:
4852+
containers:
4853+
- args:
4854+
- --gcs-upload-secret=/secrets/gcs/service-account.json
4855+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
4856+
- --lease-server-credentials-file=/etc/boskos/credentials
4857+
- --report-credentials-file=/etc/report/credentials
4858+
- --secret-dir=/secrets/ci-pull-credentials
4859+
- --target=e2e-aws-ovn-user-provisioned-dns
4860+
command:
4861+
- ci-operator
4862+
image: ci-operator:latest
4863+
imagePullPolicy: Always
4864+
name: ""
4865+
resources:
4866+
requests:
4867+
cpu: 10m
4868+
volumeMounts:
4869+
- mountPath: /etc/boskos
4870+
name: boskos
4871+
readOnly: true
4872+
- mountPath: /secrets/ci-pull-credentials
4873+
name: ci-pull-credentials
4874+
readOnly: true
4875+
- mountPath: /secrets/gcs
4876+
name: gcs-credentials
4877+
readOnly: true
4878+
- mountPath: /secrets/manifest-tool
4879+
name: manifest-tool-local-pusher
4880+
readOnly: true
4881+
- mountPath: /etc/pull-secret
4882+
name: pull-secret
4883+
readOnly: true
4884+
- mountPath: /etc/report
4885+
name: result-aggregator
4886+
readOnly: true
4887+
serviceAccountName: ci-operator
4888+
volumes:
4889+
- name: boskos
4890+
secret:
4891+
items:
4892+
- key: credentials
4893+
path: credentials
4894+
secretName: boskos-credentials
4895+
- name: ci-pull-credentials
4896+
secret:
4897+
secretName: ci-pull-credentials
4898+
- name: manifest-tool-local-pusher
4899+
secret:
4900+
secretName: manifest-tool-local-pusher
4901+
- name: pull-secret
4902+
secret:
4903+
secretName: registry-pull-credentials
4904+
- name: result-aggregator
4905+
secret:
4906+
secretName: result-aggregator
4907+
trigger: (?m)^/test( | .* )e2e-aws-ovn-user-provisioned-dns,?($|\s.*)
48344908
- agent: kubernetes
48354909
always_run: false
48364910
branches:

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

+74
Original file line numberDiff line numberDiff line change
@@ -4833,6 +4833,80 @@ presubmits:
48334833
secret:
48344834
secretName: result-aggregator
48354835
trigger: (?m)^/test( | .* )e2e-aws-ovn-upi,?($|\s.*)
4836+
- agent: kubernetes
4837+
always_run: false
4838+
branches:
4839+
- ^release-4\.20$
4840+
- ^release-4\.20-
4841+
context: ci/prow/e2e-aws-ovn-user-provisioned-dns
4842+
decorate: true
4843+
decoration_config:
4844+
timeout: 6h0m0s
4845+
labels:
4846+
ci-operator.openshift.io/cloud: aws
4847+
ci-operator.openshift.io/cloud-cluster-profile: aws
4848+
ci.openshift.io/generator: prowgen
4849+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
4850+
name: pull-ci-openshift-installer-release-4.20-e2e-aws-ovn-user-provisioned-dns
4851+
optional: true
4852+
rerun_command: /test e2e-aws-ovn-user-provisioned-dns
4853+
spec:
4854+
containers:
4855+
- args:
4856+
- --gcs-upload-secret=/secrets/gcs/service-account.json
4857+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
4858+
- --lease-server-credentials-file=/etc/boskos/credentials
4859+
- --report-credentials-file=/etc/report/credentials
4860+
- --secret-dir=/secrets/ci-pull-credentials
4861+
- --target=e2e-aws-ovn-user-provisioned-dns
4862+
command:
4863+
- ci-operator
4864+
image: ci-operator:latest
4865+
imagePullPolicy: Always
4866+
name: ""
4867+
resources:
4868+
requests:
4869+
cpu: 10m
4870+
volumeMounts:
4871+
- mountPath: /etc/boskos
4872+
name: boskos
4873+
readOnly: true
4874+
- mountPath: /secrets/ci-pull-credentials
4875+
name: ci-pull-credentials
4876+
readOnly: true
4877+
- mountPath: /secrets/gcs
4878+
name: gcs-credentials
4879+
readOnly: true
4880+
- mountPath: /secrets/manifest-tool
4881+
name: manifest-tool-local-pusher
4882+
readOnly: true
4883+
- mountPath: /etc/pull-secret
4884+
name: pull-secret
4885+
readOnly: true
4886+
- mountPath: /etc/report
4887+
name: result-aggregator
4888+
readOnly: true
4889+
serviceAccountName: ci-operator
4890+
volumes:
4891+
- name: boskos
4892+
secret:
4893+
items:
4894+
- key: credentials
4895+
path: credentials
4896+
secretName: boskos-credentials
4897+
- name: ci-pull-credentials
4898+
secret:
4899+
secretName: ci-pull-credentials
4900+
- name: manifest-tool-local-pusher
4901+
secret:
4902+
secretName: manifest-tool-local-pusher
4903+
- name: pull-secret
4904+
secret:
4905+
secretName: registry-pull-credentials
4906+
- name: result-aggregator
4907+
secret:
4908+
secretName: result-aggregator
4909+
trigger: (?m)^/test( | .* )e2e-aws-ovn-user-provisioned-dns,?($|\s.*)
48364910
- agent: kubernetes
48374911
always_run: false
48384912
branches:

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

+10
Original file line numberDiff line numberDiff line change
@@ -375,3 +375,13 @@ platform:
375375
EOF
376376
yq-go m -a -x -i "${CONFIG}" "${patch_bootstrap_ignition}"
377377
fi
378+
379+
if [[ "${USER_PROVISIONED_DNS}" == "yes" ]]; then
380+
patch_user_provisioned_dns="${SHARED_DIR}/install-config-user-provisioned-dns.yaml.patch"
381+
cat > "${patch_user_provisioned_dns}" << EOF
382+
platform:
383+
aws:
384+
userProvisionedDNS: Enabled
385+
EOF
386+
yq-go m -a -x -i "${CONFIG}" "${patch_user_provisioned_dns}"
387+
fi

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

+5
Original file line numberDiff line numberDiff line change
@@ -96,5 +96,10 @@ ref:
9696
default: ""
9797
documentation: |-
9898
Allow users to make S3 deletion optional
99+
- name: USER_PROVISIONED_DNS
100+
default: "no"
101+
documentation: |-
102+
Allow users to select the user provisioned dns option for AWS installations during configuration. Valid options are "yes" and "no". When "yes", the
103+
configuration will enable the user provisioned dns option through the install configuration file.
99104
documentation: |-
100105
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)