Merge pull request #1675 from sikachu/fix-eks-platform

Fix problems when enabling eks platform patch
This commit is contained in:
Philip Gough
2022-04-14 12:49:30 +01:00
committed by GitHub
2 changed files with 7 additions and 2 deletions

View File

@@ -77,9 +77,13 @@
apiVersion: 'monitoring.coreos.com/v1',
kind: 'PrometheusRule',
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',
namespace: $.prometheus._config.namespace,
namespace: $.values.prometheus.namespace,
},
spec: {
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
local p = {
values+:: $.values,
alertmanager: {},
blackboxExporter: {},
grafana: {},