Skip to content

Commit

Permalink
rosa hcp upgrade to 4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
xinredhat authored and Roming22 committed Dec 4, 2023
1 parent 6735c1e commit 7b37455
Show file tree
Hide file tree
Showing 13 changed files with 29 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: test-pipeline-service-upgrade-ocp-412
name: test-pipeline-service-upgrade-ocp-414
annotations:
pipelinesascode.tekton.dev/on-event: "[pull_request, push]"
pipelinesascode.tekton.dev/on-target-branch: "[refs/heads/*]"
Expand Down
2 changes: 1 addition & 1 deletion .tekton/tasks/deploy-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
params:
- name: ocp_version
description: ocp cluster version that you want to provision
default: "4.12.36"
default: "4.14.3"
- name: region
description: ocp cluster region where you want to provision
default: "us-east-1"
Expand Down
40 changes: 0 additions & 40 deletions .tekton/test-pipeline-service-deployment-ocp-413.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apiVersion: tekton.dev/v1beta1
kind: PipelineRun
metadata:
name: test-pipeline-service-deployment-ocp-412
name: test-pipeline-service-deployment-ocp-414
annotations:
pipelinesascode.tekton.dev/on-event: "[pull_request, push]"
pipelinesascode.tekton.dev/on-target-branch: "[refs/heads/*]"
Expand All @@ -20,7 +20,7 @@ spec:
name: test-pipeline-service-deployment
params:
- name: ocp_version
value: "4.12.36"
value: "4.14.3"
- name: repo_url
value: "{{ repo_url }}"
- name: revision
Expand Down
1 change: 1 addition & 0 deletions ci/images/static-checks/content/config/checkov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ skip-check:
# openshift scc / security addresses these check by mutating pod under the covers
# with pods getting assigned the restricted scc unless explicitly allowed otherwise
- CKV_K8S_20 # no allowPrivilegeEscalation
- CKV_K8S_21 # the default namespace should not be used
- CKV_K8S_22 # read only FS
- CKV_K8S_23 # admission of root containers
- CKV_K8S_25 # we are not adding capabilities, running under restricted-scc
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ rules:
- monitoring.coreos.com
resources:
- prometheusrules
- servicemonitors
verbs:
- get
- list
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
argocd.argoproj.io/sync-wave: "0"
spec:
exposeServices:
minio: true
minio: false
features:
bucketDNS: false
domains: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ spec:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- CreateNamespace=false
# workaround to make working both minio: newer and old 4.5.4
- Validate=false
retry:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resources:
patches:
- path: tekton-results/minio-create-bucket.yaml
- path: tekton-results/minio-tls.yaml
- path: tekton-results/postgres.yaml

# Skip applying the Tekton operands while the Tekton operator is being installed.
# See more information about this option, here:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ resources:
patches:
- path: minio-create-bucket.yaml
- path: minio-tls.yaml
- path: postgres.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: tekton-results-api
namespace: tekton-results
annotations:
argocd.argoproj.io/sync-wave: "0"
spec:
template:
spec:
containers:
- name: api
env:
- name: DB_SSLMODE
value: "disable"
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ apiVersion: v1
kind: Namespace
metadata:
name: tekton-results
labels:
argocd.argoproj.io/managed-by: openshift-gitops
3 changes: 1 addition & 2 deletions operator/test/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,8 @@ test_results() {
QUERY_URL="https://$RESULT_ROUTE/apis/results.tekton.dev/v1alpha2/parents/${LOG_PATH}"
QUERY_CMD[6]="${QUERY_URL}"
LOGS_RESULT=$("${QUERY_CMD[@]}" 2>/dev/null)
LOGS_OUTPUT=$(echo "$LOGS_RESULT" | jq -r ".result.data | @base64d")

if ! echo "$LOGS_OUTPUT" | grep -qF "PipelineRun name from params:" ; then
if ! echo "$LOGS_RESULT" | grep -qF "PipelineRun name from params:" ; then
echo "[ERROR] Unable to retrieve logs output."
printf "[ERROR] Log record: %s \n" "${LOGS_RESULT}"
exit 1
Expand Down

0 comments on commit 7b37455

Please sign in to comment.