File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
telco-core/configuration/reference-crs/optional/other
kube-compare-reference/hack
source-crs/cluster-tuning/monitoring-configuration Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2727 name: observability-alertmanager-accessor
2828 scheme: https
2929 staticConfigs:
30- - {{ if (lookup "v1" "Namespace" "" "open-cluster-management-addon-observability") }}{{ (regexFind "alertmanager-endpoint(.*)" ((fromSecret " open-cluster-management-addon-observability " "hub-info-secret " "hub-info.yaml") | base64dec)) | replace " alertmanager-endpoint: https://" "" }}{{ end }}
30+ - {{ if (lookup "v1" "Namespace" "" "open-cluster-management-addon-observability") }}{{hub index (lookup "cluster. open-cluster-management.io/v1 " "ManagedCluster " "" .ManagedClusterName).metadata.annotations "acm- alertmanager-route" hub }}{{ end }}
3131 tlsConfig:
3232 ca:
3333 key: service-ca.crt
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ cluster_tuning_monitoring_configuration_ReduceMonitoringFootprint:
331331 - metadata :
332332 name : cluster-monitoring-config
333333 captureGroup_defaults :
334- alertmanager_endpoint : ' {{ `{{ if (lookup "v1" "Namespace" "" "open-cluster-management-addon-observability") }}{{ (regexFind "alertmanager-endpoint(.*)" ((fromSecret " open-cluster-management-addon-observability " "hub-info-secret " "hub-info.yaml") | base64dec)) | replace " alertmanager-endpoint: https://" "" }}{{ end }}` }}'
334+ alertmanager_endpoint : ' {{ `{{ if (lookup "v1" "Namespace" "" "open-cluster-management-addon-observability") }}{{hub index (lookup "cluster. open-cluster-management.io/v1 " "ManagedCluster " "" .ManagedClusterName).metadata.annotations "acm- alertmanager-route" hub }}{{ end }}` }}'
335335 managed_cluster : ' {{ `{{ fromClusterClaim "id.openshift.io" }}` }}'
336336lca_LcaSubscription :
337337 - spec :
Original file line number Diff line number Diff line change 3030 name: observability-alertmanager-accessor
3131 scheme: https
3232 staticConfigs:
33- - {{ if (lookup "v1" "Namespace" "" "open-cluster-management-addon-observability") }}{{ (regexFind "alertmanager-endpoint(.*)" ((fromSecret " open-cluster-management-addon-observability " "hub-info-secret " "hub-info.yaml") | base64dec)) | replace " alertmanager-endpoint: https://" "" }}{{ end }}
33+ - {{ if (lookup "v1" "Namespace" "" "open-cluster-management-addon-observability") }}{{hub index (lookup "cluster. open-cluster-management.io/v1 " "ManagedCluster " "" .ManagedClusterName).metadata.annotations "acm- alertmanager-route" hub }}{{ end }}
3434 tlsConfig:
3535 ca:
3636 key: service-ca.crt
You can’t perform that action at this time.
0 commit comments