Skip to content

Commit

Permalink
Clean up server-side apply issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DebakelOrakel committed Dec 23, 2024
1 parent 8dc084e commit 6530a39
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 8 deletions.
6 changes: 5 additions & 1 deletion component/alertrules.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,11 @@ local dropInfoRules =
};

local prometheus_rules(name, groups, baseURL) = kube._Object('monitoring.coreos.com/v1', 'PrometheusRule', name) {
metadata+: {
metadata: {
labels: {
name: name,
},
name: name,
namespace: params.namespace,
},
spec: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
annotations: {}
labels:
name: syn-collector-rules
name: syn-collector-rules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
annotations: {}
labels:
name: syn-loki-logging-rules
name: syn-loki-logging-rules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
annotations: {}
labels:
name: syn-collector-rules
name: syn-collector-rules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
annotations: {}
labels:
name: syn-collector-rules
name: syn-collector-rules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
annotations: {}
labels:
name: syn-loki-logging-rules
name: syn-loki-logging-rules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
annotations: {}
labels:
name: syn-collector-rules
name: syn-collector-rules
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
annotations: {}
labels:
name: syn-loki-logging-rules
name: syn-loki-logging-rules
Expand Down
4 changes: 4 additions & 0 deletions tests/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ parameters:
channel: 'stable'

clusterLogForwarder:
filters:
my-filter:
openshiftLabels:
cluster_id: ${cluster:name}
inputs:
my-apps:
application:
Expand Down

0 comments on commit 6530a39

Please sign in to comment.