Fix problems when enabling eks platform patch

This commit is contained in:
Prem Sichanugrist
2022-03-10 13:44:08 +09:00
parent 9cf6111562
commit 257031ec49
2 changed files with 7 additions and 2 deletions

View File

@@ -77,9 +77,13 @@
apiVersion: 'monitoring.coreos.com/v1', apiVersion: 'monitoring.coreos.com/v1',
kind: 'PrometheusRule', kind: 'PrometheusRule',
metadata: { metadata: {
labels: $.prometheus._config.commonLabels + $.prometheus._config.mixin.ruleLabels, labels: {
'app.kubernetes.io/name': 'prometheus-vpc-cni-rules',
'app.kubernetes.io/component': 'prometheus',
'app.kubernetes.io/part-of': 'kube-prometheus',
},
name: 'aws-vpc-cni-rules', name: 'aws-vpc-cni-rules',
namespace: $.prometheus._config.namespace, namespace: $.values.prometheus.namespace,
}, },
spec: { spec: {
groups: [ groups: [

View File

@@ -16,6 +16,7 @@ local platformPatch(p) = if p != null && std.objectHas(platforms, p) then platfo
{ {
// initialize the object to prevent "Indexed object has no field" lint errors // initialize the object to prevent "Indexed object has no field" lint errors
local p = { local p = {
values+:: $.values,
alertmanager: {}, alertmanager: {},
blackboxExporter: {}, blackboxExporter: {},
grafana: {}, grafana: {},