Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
3f9721b
initial checkin
Dec 12, 2025
f4630bc
Merge branch 'main' of github.com:ibm-mas/gitops into mascore11128
Dec 15, 2025
321c784
using clusterissuer
Dec 17, 2025
5d234b2
Merge branch 'main' of github.com:ibm-mas/gitops into mascore11128
Dec 17, 2025
1be5dad
reorder
Dec 17, 2025
99190ce
update path
Dec 17, 2025
0686103
update path
Dec 17, 2025
8a5297a
update certificate
Dec 17, 2025
02c9dfe
update
Dec 17, 2025
8015be3
update
Dec 17, 2025
2873074
update var
Dec 17, 2025
e6929ff
update cluster id
Dec 17, 2025
ea6ef16
update
Dec 17, 2025
3807572
fix typo
Dec 17, 2025
be46a88
update api version
Dec 17, 2025
04756fe
comment lets encrypt
Dec 18, 2025
16d9141
Testing with self sign
Dec 18, 2025
9dc4b61
update for selfsigned
Dec 18, 2025
faed616
udpate route name
Dec 19, 2025
e96ca59
update https in route
Dec 19, 2025
fdf3a4b
update
Dec 19, 2025
f12eb7c
update host for testing
Dec 19, 2025
a03e176
testing
Dec 19, 2025
2f58b0c
update
Dec 19, 2025
79c9e79
update
Dec 19, 2025
fecc240
using tls certs and key
Dec 19, 2025
d70a50c
update key and crt
Dec 19, 2025
ad74563
update values
Dec 19, 2025
eec05ee
update values
Dec 19, 2025
7257170
update
Dec 19, 2025
e3e131b
update
Dec 23, 2025
5b91018
update
Dec 23, 2025
2bb711d
update
Dec 23, 2025
feb7de0
update with separate app for public route
Jan 6, 2026
ed10922
update sync wave
Jan 6, 2026
6bd751e
update role
Jan 6, 2026
a5e5181
update with secrets
Jan 7, 2026
0021d3c
update
Jan 7, 2026
e3c6023
update
Jan 7, 2026
8230753
without ca cert
Jan 7, 2026
908ecef
[minor] Ensure DRO is exposed through a route
Jan 9, 2026
5c6398e
Merge branch 'main' into mascore11128
mnivedithaa Jan 19, 2026
05781d6
Merge branch 'main' into mascore11128
mnivedithaa Jan 21, 2026
8eff834
Merge branch 'main' of github.com:ibm-mas/gitops into mascore11128
Feb 11, 2026
23233b8
Merge branch 'mascore11128' of github.com:ibm-mas/gitops into mascore…
Feb 11, 2026
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 @@ -10,7 +10,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
annotations:
argocd.argoproj.io/sync-wave: "030"
argocd.argoproj.io/sync-wave: "020"
name: "cert-manager-webhook-ibm-cis"
namespace: "{{ $cert_manager_namespace }}"
labels:
Expand All @@ -27,7 +27,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
annotations:
argocd.argoproj.io/sync-wave: "031"
argocd.argoproj.io/sync-wave: "021"
namespace: "{{ $cert_manager_namespace }}"
name: "cert-manager-webhook-ibm-cis"
labels:
Expand All @@ -51,7 +51,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
annotations:
argocd.argoproj.io/sync-wave: "030"
argocd.argoproj.io/sync-wave: "020"
name: "cert-manager-webhook-ibm-cis"
namespace: "{{ $cert_manager_namespace }}"
labels:
Expand All @@ -75,7 +75,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
annotations:
argocd.argoproj.io/sync-wave: "031"
argocd.argoproj.io/sync-wave: "021"
name: "cert-manager-webhook-ibm-cis:webhook-authentication-reader"
namespace: kube-system
labels:
Expand All @@ -100,7 +100,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
argocd.argoproj.io/sync-wave: "031"
argocd.argoproj.io/sync-wave: "021"
name: "cert-manager-webhook-ibm-cis:auth-delegator"
labels:
app: "cert-manager-webhook-ibm-cis"
Expand All @@ -123,7 +123,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
argocd.argoproj.io/sync-wave: "030"
argocd.argoproj.io/sync-wave: "020"
name: "cert-manager-webhook-ibm-cis:domain-solver"
labels:
app: "cert-manager-webhook-ibm-cis"
Expand All @@ -143,7 +143,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
argocd.argoproj.io/sync-wave: "031"
argocd.argoproj.io/sync-wave: "021"
name: "cert-manager-webhook-ibm-cis:domain-solver"
labels:
app: "cert-manager-webhook-ibm-cis"
Expand All @@ -165,7 +165,7 @@ kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
annotations:
argocd.argoproj.io/sync-wave: "031"
argocd.argoproj.io/sync-wave: "021"
labels:
app: "cert-manager-webhook-ibm-cis"
name: 'system:openshift:scc:anyuid'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
annotations:
argocd.argoproj.io/sync-wave: "032"
argocd.argoproj.io/sync-wave: "022"
name: "cert-manager-webhook-ibm-cis-self-signed-issuer"
namespace: "{{ $cert_manager_namespace }}"
labels:
Expand All @@ -26,7 +26,7 @@ apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
annotations:
argocd.argoproj.io/sync-wave: "033"
argocd.argoproj.io/sync-wave: "023"
name: "cert-manager-webhook-ibm-cis-root-ca-certificate"
namespace: "{{ $cert_manager_namespace }}"
labels:
Expand All @@ -48,7 +48,7 @@ apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
annotations:
argocd.argoproj.io/sync-wave: "033"
argocd.argoproj.io/sync-wave: "023"
name: "cert-manager-webhook-ibm-cis-root-ca-issuer"
namespace: "{{ $cert_manager_namespace }}"
labels:
Expand All @@ -66,7 +66,7 @@ apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
annotations:
argocd.argoproj.io/sync-wave: "034"
argocd.argoproj.io/sync-wave: "024"
name: "cert-manager-webhook-ibm-cis-serving-cert"
namespace: "{{ $cert_manager_namespace }}"
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
argocd.argoproj.io/sync-wave: "035"
argocd.argoproj.io/sync-wave: "025"
name: "cert-manager-webhook-ibm-cis"
namespace: "{{ $cert_manager_namespace }}"
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
annotations:
argocd.argoproj.io/sync-wave: "036"
argocd.argoproj.io/sync-wave: "026"
cert-manager.io/inject-ca-from: "{{ $cert_manager_namespace }}/cert-manager-webhook-ibm-cis-serving-cert"
name: "v1alpha1.{{ $cis_apiservice_group_name }}"
namespace: "{{ $cert_manager_namespace }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ apiVersion: v1
kind: Service
metadata:
annotations:
argocd.argoproj.io/sync-wave: "036"
argocd.argoproj.io/sync-wave: "026"
name: "cert-manager-webhook-ibm-cis"
namespace: "{{ $cert_manager_namespace }}"
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ apiVersion: v1
kind: Secret
metadata:
annotations:
argocd.argoproj.io/sync-wave: "030"
argocd.argoproj.io/sync-wave: "020"
name: cis-api-key
namespace: "{{ $cert_manager_namespace }}"
{{- if .Values.custom_labels }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ kind: Route
apiVersion: route.openshift.io/v1
metadata:
annotations:
argocd.argoproj.io/sync-wave: "038"
argocd.argoproj.io/sync-wave: "028"
name: cis-proxy-route
namespace: "{{ $cert_manager_namespace }}"
{{- if .Values.custom_labels }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: ibm-mas-operator-group
namespace: "{{ .Values.dro_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "021"
argocd.argoproj.io/sync-wave: "031"
{{- if .Values.custom_labels }}
labels:
{{ .Values.custom_labels | toYaml | indent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: redhat-marketplace-pull-secret
namespace: "{{ .Values.dro_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "021"
argocd.argoproj.io/sync-wave: "031"
{{- if .Values.custom_labels }}
labels:
{{ .Values.custom_labels | toYaml | indent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: ibm-metrics-operator
namespace: "{{ .Values.dro_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "022"
argocd.argoproj.io/sync-wave: "032"
labels:
app.kubernetes.io/name: imo
{{- if .Values.custom_labels }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
name: ibm-data-reporter-operator
namespace: "{{ .Values.dro_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "022"
argocd.argoproj.io/sync-wave: "032"
labels:
app.kubernetes.io/name: dro
{{- if .Values.custom_labels }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: marketplaceconfig
namespace: "{{ .Values.dro_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "024"
argocd.argoproj.io/sync-wave: "034"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
{{- if .Values.custom_labels }}
labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: metric-state-view-binding
annotations:
argocd.argoproj.io/sync-wave: "025"
argocd.argoproj.io/sync-wave: "035"
{{- if .Values.custom_labels }}
labels:
{{ .Values.custom_labels | toYaml | indent 4 }}
Expand Down Expand Up @@ -34,7 +34,7 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: reporter-cluster-monitoring-binding
annotations:
argocd.argoproj.io/sync-wave: "025"
argocd.argoproj.io/sync-wave: "035"
{{- if .Values.custom_labels }}
labels:
{{ .Values.custom_labels | toYaml | indent 4 }}
Expand Down Expand Up @@ -62,7 +62,7 @@ apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: manager-cluster-monitoring-binding
annotations:
argocd.argoproj.io/sync-wave: "025"
argocd.argoproj.io/sync-wave: "035"
{{- if .Values.custom_labels }}
labels:
{{ .Values.custom_labels | toYaml | indent 4 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Increment this value whenever you make a change to an immutable field of the Job
E.g. passing in a new environment variable.
Included in $_job_hash (see below).
*/}}
{{- $_job_version := "v3" }}
{{- $_job_version := "v4" }}

{{- /*
10 char hash appended to the job name taking into account $_job_config_values, $_job_version and $_cli_image_digest
Expand Down Expand Up @@ -102,7 +102,7 @@ metadata:
name: {{ $role_name }}
namespace: {{ $ns }}
annotations:
argocd.argoproj.io/sync-wave: "026"
argocd.argoproj.io/sync-wave: "036"
{{- if .Values.custom_labels }}
labels:
{{ .Values.custom_labels | toYaml | indent 4 }}
Expand All @@ -112,8 +112,10 @@ rules:
- get
apiGroups:
- route.openshift.io
- cert-manager.io
resources:
- routes
- certificates


---
Expand All @@ -123,7 +125,7 @@ metadata:
name: {{ $rb_name }}
namespace: {{ $ns }}
annotations:
argocd.argoproj.io/sync-wave: "027"
argocd.argoproj.io/sync-wave: "037"
{{- if .Values.custom_labels }}
labels:
{{ .Values.custom_labels | toYaml | indent 4 }}
Expand All @@ -144,7 +146,7 @@ metadata:
name: {{ $_job_name }}
namespace: {{ $ns }}
annotations:
argocd.argoproj.io/sync-wave: "028"
argocd.argoproj.io/sync-wave: "038"
labels:
mas.ibm.com/job-cleanup-group: {{ $_job_cleanup_group }}
{{- if .Values.custom_labels }}
Expand Down Expand Up @@ -181,11 +183,15 @@ spec:
# Hard-coded for now:
- name: AVP_TYPE
value: "aws"
- name: DRO_PUBLIC_DOMAIN
value: {{ .Values.dro_public_domain }}
volumeMounts:
- name: aws
mountPath: /etc/mas/creds/aws
- name: ibm-data-reporter-operator-api-token
mountPath: /etc/mas/creds/ibm-data-reporter-operator-api-token
- name: dro-tls-secret
mountPath: /etc/mas/creds/dro-tls-secret
command:
- /bin/sh
- -c
Expand Down Expand Up @@ -252,6 +258,25 @@ spec:
exit 1
fi

if [[ -n "${DRO_PUBLIC_DOMAIN}" ]]; then
wait_for_resource "certificate" "dro-client-certificate" "${DRO_NAMESPACE}"
export DRO_CLIENT_TLS_CA_CRT=$(cat /etc/mas/creds/dro-tls-secret/ca.crt | base64 -w0)
if [[ -z "${DRO_CLIENT_TLS_CA_CRT}" ]]; then
echo "Failed to fetch ca.crt"
exit 1
fi
export DRO_CLIENT_TLS_TLS_CRT=$(cat /etc/mas/creds/dro-tls-secret/tls.crt | base64 -w0)
if [[ -z "${DRO_CLIENT_TLS_TLS_CRT}" ]]; then
echo "Failed to fetch tls.crt"
exit 1
fi
export DRO_CLIENT_TLS_TLS_KEY=$(cat /etc/mas/creds/dro-tls-secret/tls.key | base64 -w0)
if [[ -z "${DRO_CLIENT_TLS_TLS_KEY}" ]]; then
echo "Failed to fetch tls.key"
exit 1
fi
fi


# aws configure set aws_access_key_id $SM_AWS_ACCESS_KEY_ID
# aws configure set aws_secret_access_key $SM_AWS_SECRET_ACCESS_KEY
Expand All @@ -263,7 +288,7 @@ spec:
# aws secretsmanager create-secret --name ${SECRET_NAME} --secret-string "${SECRET_VALUE}"
SECRET_NAME_DRO=${ACCOUNT_ID}/${CLUSTER_ID}/dro
TAGS="[{\"Key\": \"source\", \"Value\": \"postsync-ibm-dro-update-sm-job\"}, {\"Key\": \"account\", \"Value\": \"${ACCOUNT_ID}\"}, {\"Key\": \"cluster\", \"Value\": \"${CLUSTER_ID}\"}]"
sm_update_secret $SECRET_NAME_DRO "{\"dro_api_token\": \"$DRO_API_TOKEN\", \"dro_url\": \"$DRO_URL\" }" "${TAGS}"
sm_update_secret $SECRET_NAME_DRO "{\"dro_api_token\": \"$DRO_API_TOKEN\", \"dro_url\": \"$DRO_URL\", \"dro_client_tls_ca_crt_b64\": \"$DRO_CLIENT_TLS_CA_CRT\", \"dro_client_tls_tls_crt_b64\": \"$DRO_CLIENT_TLS_TLS_CRT\", \"dro_client_tls_tls_key_b64\": \"$DRO_CLIENT_TLS_TLS_KEY\" }" "${TAGS}"


restartPolicy: Never
Expand All @@ -282,6 +307,11 @@ spec:
secretName: ibm-data-reporter-operator-api-token
defaultMode: 420
optional: false
- name: dro-tls-secret
secret:
secretName: dro-tls-secret
defaultMode: 420
optional: false
backoffLimit: 4
{{- end }}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
name: dest-header-map-secret
namespace: "{{ .Values.dro_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "029"
argocd.argoproj.io/sync-wave: "039"
type: Opaque
stringData:
accept: application/json
Expand All @@ -18,7 +18,7 @@ metadata:
name: auth-header-map-secret
namespace: "{{ .Values.dro_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "029"
argocd.argoproj.io/sync-wave: "039"
type: Opaque
stringData:
accept: application/json
Expand All @@ -30,7 +30,7 @@ metadata:
name: auth-body-data-secret
namespace: "{{ .Values.dro_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "029"
argocd.argoproj.io/sync-wave: "039"
type: Opaque
stringData:
bodydata: |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
name: kazaam-configmap
namespace: "{{ .Values.dro_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "029"
argocd.argoproj.io/sync-wave: "039"
data:
kazaam.json: |
[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
name: datareporterconfig
namespace: "{{ .Values.dro_namespace }}"
annotations:
argocd.argoproj.io/sync-wave: "030"
argocd.argoproj.io/sync-wave: "040"
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
spec:
confirmDelivery: false
Expand Down
Loading
Loading