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,17 @@ 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_LIMIT: "4"
SCANNER_CPU_REQUEST: 500m
SCANNER_MEM_LIMIT: 4Gi
SCANNER_MEM_REQUEST: 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 @@ -6,5 +6,6 @@ chain:
- ref: ipi-conf-aws
- ref: ipi-conf-aws-byo-ipv4-pool-public
- ref: ipi-install-monitoringpvc
- ref: ipi-install-monitoring-uwm
documentation: |-
The IPI configure step chain generates the install-config.yaml file based on the cluster profile and optional input files.
15 changes: 15 additions & 0 deletions ci-operator/step-registry/ipi/install/monitoring-uwm/OWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
approvers:
- danielmellado
- jan--f
- machine424
- marioferh
- simonpasquier
- slashpai
options: {}
reviewers:
- danielmellado
- jan--f
- machine424
- marioferh
- simonpasquier
- slashpai
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
set -euo pipefail

if [[ "${ENABLE_USER_WORKLOAD_MONITORING}" != "true" ]]; then
echo "ENABLE_USER_WORKLOAD_MONITORING is not 'true', nothing to do."
exit 0
fi

CONFIG="${SHARED_DIR}/manifest_cluster-monitoring-config.yaml"
PATCH="${SHARED_DIR}/cluster-monitoring-config.yaml.uwm-patch"

if ! test -e "${CONFIG}"; then
cat > "${CONFIG}" << EOF
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-monitoring-config
namespace: openshift-monitoring
data:
config.yaml:
EOF
fi

cat > "${PATCH}" << EOF
enableUserWorkload: true
EOF

CONFIG_CONTENTS="$(yq-go r "${CONFIG}" 'data."config.yaml"')"
CONFIG_CONTENTS="$(echo "${CONFIG_CONTENTS}" | yq-go m - "${PATCH}")"
yq-go w --style folded -i "${CONFIG}" 'data."config.yaml"' "${CONFIG_CONTENTS}"

cat > "${SHARED_DIR}/manifest_user-workload-monitoring-config.yaml" << EOF
apiVersion: v1
kind: ConfigMap
metadata:
name: user-workload-monitoring-config
namespace: openshift-user-workload-monitoring
data:
config.yaml: |
alertmanager:
enabled: true
EOF
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"path": "ipi/install/monitoring-uwm/ipi-install-monitoring-uwm-ref.yaml",
"owners": {
"approvers": [
"danielmellado",
"jan--f",
"machine424",
"marioferh",
"simonpasquier",
"slashpai"
],
"reviewers": [
"danielmellado",
"jan--f",
"machine424",
"marioferh",
"simonpasquier",
"slashpai"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
ref:
as: ipi-install-monitoring-uwm
from_image:
namespace: ocp
name: "4.22"
tag: upi-installer
commands: ipi-install-monitoring-uwm-commands.sh
resources:
requests:
cpu: 100m
memory: 100Mi
env:
- name: ENABLE_USER_WORKLOAD_MONITORING
default: "false"
documentation: |-
Enable user workload monitoring:
* "false" (default) - do not enable user workload monitoring, making this step a no-op.
* "true" - enable user workload monitoring and user workload alertmanager.
documentation: |-
The IPI install monitoring-uwm step configures cluster-monitoring-operator to enable user workload monitoring and user workload alertmanager. It patches cluster-monitoring-config and creates user-workload-monitoring-config as install-time manifests.
22 changes: 6 additions & 16 deletions ci-operator/step-registry/ipi/install/monitoringpvc/OWNERS
Original file line number Diff line number Diff line change
@@ -1,25 +1,15 @@
approvers:
- arajkumar
- bison
- dgrisonnet
- fpetkovski
- danielmellado
- jan--f
- philipgough
- prashbnair
- raptorsun
- machine424
- marioferh
- simonpasquier
- slashpai
- sthaha
options: {}
reviewers:
- arajkumar
- bison
- dgrisonnet
- fpetkovski
- danielmellado
- jan--f
- philipgough
- prashbnair
- raptorsun
- machine424
- marioferh
- simonpasquier
- slashpai
- sthaha
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,20 @@
"path": "ipi/install/monitoringpvc/ipi-install-monitoringpvc-ref.yaml",
"owners": {
"approvers": [
"arajkumar",
"bison",
"dgrisonnet",
"fpetkovski",
"danielmellado",
"jan--f",
"philipgough",
"prashbnair",
"raptorsun",
"machine424",
"marioferh",
"simonpasquier",
"slashpai",
"sthaha"
"slashpai"
],
"reviewers": [
"arajkumar",
"bison",
"dgrisonnet",
"fpetkovski",
"danielmellado",
"jan--f",
"philipgough",
"prashbnair",
"raptorsun",
"machine424",
"marioferh",
"simonpasquier",
"slashpai",
"sthaha"
"slashpai"
]
}
}