diff --git a/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-main.yaml b/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-main.yaml index 4cbb61ce1ad64..02225b288c124 100644 --- a/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-main.yaml +++ b/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-main.yaml @@ -7,6 +7,10 @@ base_images: name: "5.0" namespace: ocp tag: must-gather + tls-scanner-tool: + name: tls-scanner + namespace: tls-scanner + tag: tls-scanner-tool build_root: from_repository: true images: @@ -88,6 +92,73 @@ tests: cpu: 100m memory: 200Mi workflow: optional-operators-ci-aws +- always_run: false + as: tls-scan + optional: true + steps: + cluster_profile: openshift-org-aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-ptp + OO_PACKAGE: ptp-operator + OO_TARGET_NAMESPACES: '!install' + PQC_CHECK: "true" + SCAN_NAMESPACE: openshift-ptp + SCANNER_CPU: "2" + TLS_13_ENABLE_TLS_ADHERENCE: "true" + TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents + test: + - ref: tls-13 + - as: wait-ptp-tls-restart + cli: latest + commands: | + echo "Waiting for PTP operator to restart after TLS profile change..." + oc rollout status deployment ptp-operator -n openshift-ptp --timeout=300s + oc rollout status daemonset linuxptp-daemon -n openshift-ptp --timeout=400s + echo "PTP operator and daemon restarted with new TLS profile" + oc get pods -n openshift-ptp + from: cli + resources: + requests: + cpu: 100m + memory: 200Mi + - ref: tls-scanner-run + workflow: optional-operators-ci-aws +- as: tls-scan-periodic + cron: 0 3 * * 5 + steps: + cluster_profile: openshift-org-aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-ptp + OO_PACKAGE: ptp-operator + OO_TARGET_NAMESPACES: '!install' + PQC_CHECK: "true" + SCAN_NAMESPACE: openshift-ptp + SCANNER_CPU: "2" + TLS_13_ENABLE_TLS_ADHERENCE: "true" + TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents + test: + - ref: tls-13 + - as: wait-ptp-tls-restart + cli: latest + commands: | + echo "Waiting for PTP operator to restart after TLS profile change..." + oc rollout status deployment ptp-operator -n openshift-ptp --timeout=300s + oc rollout status daemonset linuxptp-daemon -n openshift-ptp --timeout=400s + echo "PTP operator and daemon restarted with new TLS profile" + oc get pods -n openshift-ptp + from: cli + resources: + requests: + cpu: 100m + memory: 200Mi + - ref: tls-scanner-run + workflow: optional-operators-ci-aws - as: security optional: true skip_if_only_changed: ^test/|^hack/|^scripts/|^bin/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|LICENSE)$ diff --git a/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-4.22.yaml b/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-4.22.yaml index a18c11a1b3699..14aee6a19cabc 100644 --- a/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-4.22.yaml +++ b/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-4.22.yaml @@ -7,6 +7,10 @@ base_images: name: "4.22" namespace: ocp tag: must-gather + tls-scanner-tool: + name: tls-scanner + namespace: tls-scanner + tag: tls-scanner-tool build_root: from_repository: true images: @@ -88,6 +92,73 @@ tests: cpu: 100m memory: 200Mi workflow: optional-operators-ci-aws +- always_run: false + as: tls-scan + optional: true + steps: + cluster_profile: openshift-org-aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-ptp + OO_PACKAGE: ptp-operator + OO_TARGET_NAMESPACES: '!install' + PQC_CHECK: "true" + SCAN_NAMESPACE: openshift-ptp + SCANNER_CPU: "2" + TLS_13_ENABLE_TLS_ADHERENCE: "true" + TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents + test: + - ref: tls-13 + - as: wait-ptp-tls-restart + cli: latest + commands: | + echo "Waiting for PTP operator to restart after TLS profile change..." + oc rollout status deployment ptp-operator -n openshift-ptp --timeout=300s + oc rollout status daemonset linuxptp-daemon -n openshift-ptp --timeout=400s + echo "PTP operator and daemon restarted with new TLS profile" + oc get pods -n openshift-ptp + from: cli + resources: + requests: + cpu: 100m + memory: 200Mi + - ref: tls-scanner-run + workflow: optional-operators-ci-aws +- as: tls-scan-periodic + cron: 0 3 * * 1 + steps: + cluster_profile: openshift-org-aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-ptp + OO_PACKAGE: ptp-operator + OO_TARGET_NAMESPACES: '!install' + PQC_CHECK: "true" + SCAN_NAMESPACE: openshift-ptp + SCANNER_CPU: "2" + TLS_13_ENABLE_TLS_ADHERENCE: "true" + TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents + test: + - ref: tls-13 + - as: wait-ptp-tls-restart + cli: latest + commands: | + echo "Waiting for PTP operator to restart after TLS profile change..." + oc rollout status deployment ptp-operator -n openshift-ptp --timeout=300s + oc rollout status daemonset linuxptp-daemon -n openshift-ptp --timeout=400s + echo "PTP operator and daemon restarted with new TLS profile" + oc get pods -n openshift-ptp + from: cli + resources: + requests: + cpu: 100m + memory: 200Mi + - ref: tls-scanner-run + workflow: optional-operators-ci-aws - as: security optional: true skip_if_only_changed: ^test/|^hack/|^scripts/|^bin/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|LICENSE)$ diff --git a/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-4.23.yaml b/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-4.23.yaml index cbf4edf2997a8..715d56ae72b05 100644 --- a/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-4.23.yaml +++ b/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-4.23.yaml @@ -7,6 +7,10 @@ base_images: name: "4.23" namespace: ocp tag: must-gather + tls-scanner-tool: + name: tls-scanner + namespace: tls-scanner + tag: tls-scanner-tool build_root: from_repository: true images: @@ -88,6 +92,73 @@ tests: cpu: 100m memory: 200Mi workflow: optional-operators-ci-aws +- always_run: false + as: tls-scan + optional: true + steps: + cluster_profile: openshift-org-aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-ptp + OO_PACKAGE: ptp-operator + OO_TARGET_NAMESPACES: '!install' + PQC_CHECK: "true" + SCAN_NAMESPACE: openshift-ptp + SCANNER_CPU: "2" + TLS_13_ENABLE_TLS_ADHERENCE: "true" + TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents + test: + - ref: tls-13 + - as: wait-ptp-tls-restart + cli: latest + commands: | + echo "Waiting for PTP operator to restart after TLS profile change..." + oc rollout status deployment ptp-operator -n openshift-ptp --timeout=300s + oc rollout status daemonset linuxptp-daemon -n openshift-ptp --timeout=400s + echo "PTP operator and daemon restarted with new TLS profile" + oc get pods -n openshift-ptp + from: cli + resources: + requests: + cpu: 100m + memory: 200Mi + - ref: tls-scanner-run + workflow: optional-operators-ci-aws +- as: tls-scan-periodic + cron: 0 3 * * 2 + steps: + cluster_profile: openshift-org-aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-ptp + OO_PACKAGE: ptp-operator + OO_TARGET_NAMESPACES: '!install' + PQC_CHECK: "true" + SCAN_NAMESPACE: openshift-ptp + SCANNER_CPU: "2" + TLS_13_ENABLE_TLS_ADHERENCE: "true" + TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents + test: + - ref: tls-13 + - as: wait-ptp-tls-restart + cli: latest + commands: | + echo "Waiting for PTP operator to restart after TLS profile change..." + oc rollout status deployment ptp-operator -n openshift-ptp --timeout=300s + oc rollout status daemonset linuxptp-daemon -n openshift-ptp --timeout=400s + echo "PTP operator and daemon restarted with new TLS profile" + oc get pods -n openshift-ptp + from: cli + resources: + requests: + cpu: 100m + memory: 200Mi + - ref: tls-scanner-run + workflow: optional-operators-ci-aws - as: security optional: true skip_if_only_changed: ^test/|^hack/|^scripts/|^bin/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|LICENSE)$ diff --git a/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-5.0.yaml b/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-5.0.yaml index bb58b4777e084..b3207515f6a23 100644 --- a/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-5.0.yaml +++ b/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-5.0.yaml @@ -7,6 +7,10 @@ base_images: name: "5.0" namespace: ocp tag: must-gather + tls-scanner-tool: + name: tls-scanner + namespace: tls-scanner + tag: tls-scanner-tool build_root: from_repository: true images: @@ -90,6 +94,73 @@ tests: cpu: 100m memory: 200Mi workflow: optional-operators-ci-aws +- always_run: false + as: tls-scan + optional: true + steps: + cluster_profile: openshift-org-aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-ptp + OO_PACKAGE: ptp-operator + OO_TARGET_NAMESPACES: '!install' + PQC_CHECK: "true" + SCAN_NAMESPACE: openshift-ptp + SCANNER_CPU: "2" + TLS_13_ENABLE_TLS_ADHERENCE: "true" + TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents + test: + - ref: tls-13 + - as: wait-ptp-tls-restart + cli: latest + commands: | + echo "Waiting for PTP operator to restart after TLS profile change..." + oc rollout status deployment ptp-operator -n openshift-ptp --timeout=300s + oc rollout status daemonset linuxptp-daemon -n openshift-ptp --timeout=400s + echo "PTP operator and daemon restarted with new TLS profile" + oc get pods -n openshift-ptp + from: cli + resources: + requests: + cpu: 100m + memory: 200Mi + - ref: tls-scanner-run + workflow: optional-operators-ci-aws +- as: tls-scan-periodic + cron: 0 3 * * 3 + steps: + cluster_profile: openshift-org-aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-ptp + OO_PACKAGE: ptp-operator + OO_TARGET_NAMESPACES: '!install' + PQC_CHECK: "true" + SCAN_NAMESPACE: openshift-ptp + SCANNER_CPU: "2" + TLS_13_ENABLE_TLS_ADHERENCE: "true" + TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents + test: + - ref: tls-13 + - as: wait-ptp-tls-restart + cli: latest + commands: | + echo "Waiting for PTP operator to restart after TLS profile change..." + oc rollout status deployment ptp-operator -n openshift-ptp --timeout=300s + oc rollout status daemonset linuxptp-daemon -n openshift-ptp --timeout=400s + echo "PTP operator and daemon restarted with new TLS profile" + oc get pods -n openshift-ptp + from: cli + resources: + requests: + cpu: 100m + memory: 200Mi + - ref: tls-scanner-run + workflow: optional-operators-ci-aws - as: security optional: true skip_if_only_changed: ^test/|^hack/|^scripts/|^bin/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|LICENSE)$ diff --git a/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-5.1.yaml b/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-5.1.yaml index fe0cb0521b4ad..564b8da795904 100644 --- a/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-5.1.yaml +++ b/ci-operator/config/openshift/ptp-operator/openshift-ptp-operator-release-5.1.yaml @@ -7,6 +7,10 @@ base_images: name: "5.1" namespace: ocp tag: must-gather + tls-scanner-tool: + name: tls-scanner + namespace: tls-scanner + tag: tls-scanner-tool build_root: from_repository: true images: @@ -88,6 +92,73 @@ tests: cpu: 100m memory: 200Mi workflow: optional-operators-ci-aws +- always_run: false + as: tls-scan + optional: true + steps: + cluster_profile: openshift-org-aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-ptp + OO_PACKAGE: ptp-operator + OO_TARGET_NAMESPACES: '!install' + PQC_CHECK: "true" + SCAN_NAMESPACE: openshift-ptp + SCANNER_CPU: "2" + TLS_13_ENABLE_TLS_ADHERENCE: "true" + TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents + test: + - ref: tls-13 + - as: wait-ptp-tls-restart + cli: latest + commands: | + echo "Waiting for PTP operator to restart after TLS profile change..." + oc rollout status deployment ptp-operator -n openshift-ptp --timeout=300s + oc rollout status daemonset linuxptp-daemon -n openshift-ptp --timeout=400s + echo "PTP operator and daemon restarted with new TLS profile" + oc get pods -n openshift-ptp + from: cli + resources: + requests: + cpu: 100m + memory: 200Mi + - ref: tls-scanner-run + workflow: optional-operators-ci-aws +- as: tls-scan-periodic + cron: 0 3 * * 4 + steps: + cluster_profile: openshift-org-aws + dependencies: + OO_INDEX: ci-index + env: + OO_CHANNEL: alpha + OO_INSTALL_NAMESPACE: openshift-ptp + OO_PACKAGE: ptp-operator + OO_TARGET_NAMESPACES: '!install' + PQC_CHECK: "true" + SCAN_NAMESPACE: openshift-ptp + SCANNER_CPU: "2" + TLS_13_ENABLE_TLS_ADHERENCE: "true" + TLS_13_TLS_ADHERENCE_POLICY: StrictAllComponents + test: + - ref: tls-13 + - as: wait-ptp-tls-restart + cli: latest + commands: | + echo "Waiting for PTP operator to restart after TLS profile change..." + oc rollout status deployment ptp-operator -n openshift-ptp --timeout=300s + oc rollout status daemonset linuxptp-daemon -n openshift-ptp --timeout=400s + echo "PTP operator and daemon restarted with new TLS profile" + oc get pods -n openshift-ptp + from: cli + resources: + requests: + cpu: 100m + memory: 200Mi + - ref: tls-scanner-run + workflow: optional-operators-ci-aws - as: security optional: true skip_if_only_changed: ^test/|^hack/|^scripts/|^bin/|\.md$|^(?:.*/)?(?:\.gitignore|OWNERS|LICENSE)$ diff --git a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-main-periodics.yaml b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-main-periodics.yaml new file mode 100644 index 0000000000000..aecde27a2b93e --- /dev/null +++ b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-main-periodics.yaml @@ -0,0 +1,86 @@ +periodics: +- agent: kubernetes + cluster: build05 + cron: 0 3 * * 5 + decorate: true + decoration_config: + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + extra_refs: + - base_ref: main + org: openshift + repo: ptp-operator + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: periodic-ci-openshift-ptp-operator-main-tls-scan-periodic + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=tls-scan-periodic + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator diff --git a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-main-presubmits.yaml b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-main-presubmits.yaml index a39eb7061ef47..3081e614375ef 100644 --- a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-main-presubmits.yaml +++ b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-main-presubmits.yaml @@ -562,6 +562,91 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )security,?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - ^main$ + - ^main- + cluster: build06 + context: ci/prow/tls-scan + decorate: true + decoration_config: + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-ptp-operator-main-tls-scan + optional: true + rerun_command: /test tls-scan + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=tls-scan + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )tls-scan,?($|\s.*) - agent: kubernetes always_run: true branches: diff --git a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.22-periodics.yaml b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.22-periodics.yaml new file mode 100644 index 0000000000000..60c52e716fb7c --- /dev/null +++ b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.22-periodics.yaml @@ -0,0 +1,86 @@ +periodics: +- agent: kubernetes + cluster: build05 + cron: 0 3 * * 1 + decorate: true + decoration_config: + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + extra_refs: + - base_ref: release-4.22 + org: openshift + repo: ptp-operator + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: periodic-ci-openshift-ptp-operator-release-4.22-tls-scan-periodic + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=tls-scan-periodic + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator diff --git a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.22-presubmits.yaml b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.22-presubmits.yaml index 54e843258ca3e..3f49725f4a80d 100644 --- a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.22-presubmits.yaml +++ b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.22-presubmits.yaml @@ -562,6 +562,91 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )security,?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - ^release-4\.22$ + - ^release-4\.22- + cluster: build06 + context: ci/prow/tls-scan + decorate: true + decoration_config: + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-ptp-operator-release-4.22-tls-scan + optional: true + rerun_command: /test tls-scan + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=tls-scan + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )tls-scan,?($|\s.*) - agent: kubernetes always_run: true branches: diff --git a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.23-periodics.yaml b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.23-periodics.yaml new file mode 100644 index 0000000000000..ad2ab0ef62a9d --- /dev/null +++ b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.23-periodics.yaml @@ -0,0 +1,86 @@ +periodics: +- agent: kubernetes + cluster: build05 + cron: 0 3 * * 2 + decorate: true + decoration_config: + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + extra_refs: + - base_ref: release-4.23 + org: openshift + repo: ptp-operator + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: periodic-ci-openshift-ptp-operator-release-4.23-tls-scan-periodic + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=tls-scan-periodic + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator diff --git a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.23-presubmits.yaml b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.23-presubmits.yaml index 9efb89ea2c19b..bf8f9a05b08a2 100644 --- a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.23-presubmits.yaml +++ b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-4.23-presubmits.yaml @@ -562,6 +562,91 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )security,?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - ^release-4\.23$ + - ^release-4\.23- + cluster: build06 + context: ci/prow/tls-scan + decorate: true + decoration_config: + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-ptp-operator-release-4.23-tls-scan + optional: true + rerun_command: /test tls-scan + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=tls-scan + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )tls-scan,?($|\s.*) - agent: kubernetes always_run: true branches: diff --git a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.0-periodics.yaml b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.0-periodics.yaml new file mode 100644 index 0000000000000..566f1bcb215d9 --- /dev/null +++ b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.0-periodics.yaml @@ -0,0 +1,86 @@ +periodics: +- agent: kubernetes + cluster: build03 + cron: 0 3 * * 3 + decorate: true + decoration_config: + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + extra_refs: + - base_ref: release-5.0 + org: openshift + repo: ptp-operator + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: periodic-ci-openshift-ptp-operator-release-5.0-tls-scan-periodic + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=tls-scan-periodic + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator diff --git a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.0-presubmits.yaml b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.0-presubmits.yaml index af0efb51e12ec..c0071fce2b007 100644 --- a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.0-presubmits.yaml +++ b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.0-presubmits.yaml @@ -561,6 +561,91 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )security,?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - ^release-5\.0$ + - ^release-5\.0- + cluster: build05 + context: ci/prow/tls-scan + decorate: true + decoration_config: + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-ptp-operator-release-5.0-tls-scan + optional: true + rerun_command: /test tls-scan + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=tls-scan + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )tls-scan,?($|\s.*) - agent: kubernetes always_run: true branches: diff --git a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.1-periodics.yaml b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.1-periodics.yaml new file mode 100644 index 0000000000000..2948c33b39c6e --- /dev/null +++ b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.1-periodics.yaml @@ -0,0 +1,86 @@ +periodics: +- agent: kubernetes + cluster: build03 + cron: 0 3 * * 4 + decorate: true + decoration_config: + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + extra_refs: + - base_ref: release-5.1 + org: openshift + repo: ptp-operator + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: periodic-ci-openshift-ptp-operator-release-5.1-tls-scan-periodic + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=tls-scan-periodic + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator diff --git a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.1-presubmits.yaml b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.1-presubmits.yaml index d2fe4cb4ac6f0..fa75a1546903e 100644 --- a/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.1-presubmits.yaml +++ b/ci-operator/jobs/openshift/ptp-operator/openshift-ptp-operator-release-5.1-presubmits.yaml @@ -562,6 +562,91 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )security,?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - ^release-5\.1$ + - ^release-5\.1- + cluster: build05 + context: ci/prow/tls-scan + decorate: true + decoration_config: + sparse_checkout_files: + - .ci-operator.yaml + - Dockerfile.ocp + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: openshift-org-aws + ci.openshift.io/generator: prowgen + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-openshift-ptp-operator-release-5.1-tls-scan + optional: true + rerun_command: /test tls-scan + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=tls-scan + command: + - ci-operator + env: + - name: HTTP_SERVER_IP + valueFrom: + fieldRef: + fieldPath: status.podIP + image: quay-proxy.ci.openshift.org/openshift/ci:ci_ci-operator_latest + imagePullPolicy: Always + name: "" + ports: + - containerPort: 8080 + name: http + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )tls-scan,?($|\s.*) - agent: kubernetes always_run: true branches: