Skip to content

Commit 6cb2d14

Browse files
committed
refactor
1 parent 52807ae commit 6cb2d14

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

charts/controlplane-operations/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: controlplane-operations
3-
version: 1.0.4
3+
version: 1.0.5
44
description: A set of Plutono dashboards and Prometheus alerting rules combined with playbooks to ensure effective operations of Controlplane clusters.
55
maintainers:
66
- name: Vladimir Videlov (d051408)

charts/controlplane-operations/alerts/controlplane-bond.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ groups:
88
labels:
99
severity: {{ dig "NodeBondDegradedMain" "severity" "warning" .Values.prometheusRules }}
1010
playbook: https://github.com/cobaltcore-dev/controlplane-operations/playbooks/NodeBondDegradedMain.md
11-
{{ include "controlplane-operations.additionalRuleLabels" . | nindent 6 }}
11+
{{ include "controlplane-operations.additionalRuleLabels" . }}
1212
annotations:
1313
description: Bond `{{`{{ $labels.master }}`}}` on `{{`{{ $labels.node }}`}}` is degraded. Imminent network outage for this node.
1414
summary: Bond `{{`{{ $labels.master }}`}}` is degraded. Node network connectivity is not HA. Switch failover or upgrade will cause an outage!
@@ -21,7 +21,7 @@ groups:
2121
labels:
2222
severity: {{ dig "NodeVirtualInterfaceDown" "severity" "warning" .Values.prometheusRules }}
2323
playbook: https://github.com/cobaltcore-dev/controlplane-operations/playbooks/NodeVirtualInterfaceDown.md
24-
{{ include "controlplane-operations.additionalRuleLabels" . | nindent 6 }}
24+
{{ include "controlplane-operations.additionalRuleLabels" . }}
2525
annotations:
2626
description: Interface `{{`{{ $labels.device }}`}}` on `{{`{{ $labels.node }}`}}` is down. Tenant network outage for this node.
2727
summary: Interface `{{`{{ $labels.device }}`}}` is down. Node network connectivity is degraded.

charts/controlplane-operations/alerts/controlplane-node.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ groups:
88
labels:
99
severity: {{ dig "KubernetesNodeBridgeFilterVLANTagged" "severity" "info" .Values.prometheusRules }}
1010
playbook: https://github.com/cobaltcore-dev/controlplane-operations/playbooks/KubernetesNodeBridgeFilterVLANTagged.md
11-
{{ include "controlplane-operations.additionalRuleLabels" . | nindent 6 }}
11+
{{ include "controlplane-operations.additionalRuleLabels" . }}
1212
annotations:
1313
description: VLAN-tagged ARP/IP traffic is filtered by ARPtables/IPtables on `{{`{{ $labels.node }}`}}`. Network datapath threatened!
1414
summary: Bridged VLAN-tagged traffic is filtered by IPtables.

charts/controlplane-operations/alerts/controlplane-pvc.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ groups:
1313
labels:
1414
severity: {{ dig "KubernetesPVCNoSpaceLeft" "severity" "info" .Values.prometheusRules }}
1515
playbook: https://github.com/cobaltcore-dev/controlplane-operations/playbooks/KubernetesPVCNoSpaceLeft.md
16-
{{ include "controlplane-operations.additionalRuleLabels" . | nindent 6 }}
16+
{{ include "controlplane-operations.additionalRuleLabels" . }}
1717
annotations:
1818
description: "The PVC `{{`{{ $labels.namespace }}`}}`/`{{`{{ $labels.persistentvolumeclaim }}`}}` is almost full. Increase or delete files."
1919
summary: "PVC `{{`{{ $labels.namespace }}`}}`/`{{`{{ $labels.persistentvolumeclaim }}`}}` free space is less than 10%."
@@ -26,7 +26,7 @@ groups:
2626
labels:
2727
severity: {{ dig "KubernetesPVCNoSpaceLeft" "severity" "warning" .Values.prometheusRules }}
2828
playbook: https://github.com/cobaltcore-dev/controlplane-operations/playbooks/KubernetesPVCNoSpaceLeft.md
29-
{{ include "controlplane-operations.additionalRuleLabels" . | nindent 6 }}
29+
{{ include "controlplane-operations.additionalRuleLabels" . }}
3030
annotations:
3131
description: "The PVC `{{`{{ $labels.namespace }}`}}`/`{{`{{ $labels.persistentvolumeclaim }}`}}` is full. Programs will stop working if relying upon free storage."
3232
summary: "PVC `{{`{{ $labels.namespace }}`}}`/`{{`{{ $labels.persistentvolumeclaim }}`}}` usage is over 98%."

charts/controlplane-operations/alerts/controlplane-remote.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ groups:
1010
labels:
1111
severity: {{ dig "ArgoraUpdateInError" "severity" "warning" .Values.prometheusRules }}
1212
playbook: https://github.com/cobaltcore-dev/controlplane-operations/playbooks/ArgoraUpdateInError.md
13-
{{ include "controlplane-operations.additionalRuleLabels" . | nindent 6 }}
13+
{{ include "controlplane-operations.additionalRuleLabels" . }}
1414
annotations:
1515
description: "Argora Update CR status is in Error state for more than 1 minute."
1616
summary: "Update CR in Error state."

charts/controlplane-operations/plugindefinition.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ kind: PluginDefinition
33
metadata:
44
name: controlplane-operations
55
spec:
6-
version: 1.0.4
6+
version: 1.0.5
77
displayName: Controlplane operations bundle
88
description: Operations bundle for Controlane clusters
99
docMarkDownUrl: https://raw.githubusercontent.com/cloudoperators/controlplane-operations/main/README.md
1010
icon: https://raw.githubusercontent.com/cloudoperators/controlplane-operations/main/charts/controlplane-operations/kubernetes-logo.png
1111
helmChart:
1212
name: controlplane-operations
1313
repository: oci://ghcr.io/cloudoperators/controlplane-operations/charts
14-
version: 1.0.4
14+
version: 1.0.5
1515
options:
1616
- name: prometheusRules.create
1717
description: Create Prometheus rules

charts/controlplane-operations/templates/_helpers.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ plugin: {{ $root.Release.Name }}
2222

2323
{{- define "controlplane-operations.additionalRuleLabels" }}
2424
{{- if .Values.prometheusRules.additionalRuleLabels }}
25-
{{- toYaml .Values.prometheusRules.additionalRuleLabels }}
25+
{{- toYaml .Values.prometheusRules.additionalRuleLabels | nindent 6 }}
2626
{{- end }}
2727
{{- if .Values.global.commonLabels }}
2828
{{ tpl (toYaml .Values.global.commonLabels) . }}

0 commit comments

Comments
 (0)