Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ base_images:
name: hypershift-operator
namespace: hypershift
tag: latest
tls-scanner-tool:
name: tls-scanner
namespace: tls-scanner
tag: tls-scanner-tool
build_root:
from_repository: true
images:
Expand Down Expand Up @@ -106,8 +110,15 @@ tests:
steps:
cluster_profile: openshift-org-aws
env:
ENABLE_USER_WORKLOAD_MONITORING: "true"
PQC_CHECK: "true"
SCAN_NAMESPACE: openshift-monitoring,openshift-user-workload-monitoring
SCANNER_CPU: 500m
SCANNER_MEMORY: 1Gi
TELEMETRY_ENABLED: "true"
TLS_PROFILE_TYPE: Intermediate
test:
- ref: tls-scanner-run
- as: test
cli: latest
commands: make test-e2e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ prometheusK8s:
storage: ${STORAGE}
EOF

if [[ "${ENABLE_USER_WORKLOAD_MONITORING}" == "true" ]]; then
cat >> "${PATCH}" << EOF
enableUserWorkload: true
EOF
fi

CONFIG_CONTENTS="$(echo "${CONFIG_CONTENTS}" | yq-go m - "${PATCH}")"
yq-go w --style folded -i "${CONFIG}" 'data."config.yaml"' "${CONFIG_CONTENTS}"
cat "${CONFIG}"
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,11 @@ ref:
Enable persistent monitoring:
* "false" - do not enable persistent monitoring, making this step a no-op.
* "true" (default) - enable persistent monitoring.
- name: ENABLE_USER_WORKLOAD_MONITORING
default: "false"
documentation: |-
Enable user workload monitoring:
* "false" (default) - do not enable user workload monitoring.
* "true" - add enableUserWorkload: true to cluster-monitoring-config.
documentation: |-
The IPI install monitoringpvc step configures cluster-monitoring operator to save prometheus data in a persistent storage. This would ensure metrics are kept during upgrades.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ spec:
cpu: "${scanner_cpu}"
memory: ${scanner_memory}
limits:
cpu: "${scanner_cpu}"
cpu: "4"
memory: ${scanner_memory}
securityContext:
${SECURITY_CONTEXT_YAML}
Expand Down