Skip to content

Commit

Permalink
fix: fixed matchLabels for deployments/services
Browse files Browse the repository at this point in the history
  • Loading branch information
ReuDa committed Sep 8, 2023
1 parent f7c62d2 commit 1c52b64
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 7 deletions.
6 changes: 3 additions & 3 deletions charts/steadybit-extension-prometheus/Chart.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
dependencies:
- name: extensionlib
repository: https://steadybit.github.io/helm-charts
version: 1.4.3
digest: sha256:8ea2d95f282d0e0e19ead08ff44fdca06a18c130c45f251dd87b1e5256341288
generated: "2023-08-10T07:58:53.629241+02:00"
version: 1.4.4
digest: sha256:b241bfbb60b24ff401a45d75efeaebfd5242801712bfaf7740f0461df9a50c37
generated: "2023-09-08T09:51:05.121182+02:00"
4 changes: 2 additions & 2 deletions charts/steadybit-extension-prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-prometheus
description: Steadybit Prometheus extension Helm chart for Kubernetes.
version: 1.4.16
version: 1.4.17
appVersion: latest
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand All @@ -21,5 +21,5 @@ annotations:
url: https://hub.steadybit.com
dependencies:
- name: extensionlib
version: ^1.4.3
version: ^1.4.4
repository: https://steadybit.github.io/helm-charts
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: {{ include "extensionlib.names.name" . }}
{{- include "extensionlib.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
app.kubernetes.io/name: {{ include "extensionlib.names.name" . }}
{{- include "extensionlib.selectorLabels" . | nindent 8 }}
{{- include "extensionlib.labels" (list .) | nindent 8 }}
{{- range $key, $value := .Values.extraLabels }}
{{ $key }}: {{ $value }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ manifest should match snapshot using podAnnotations and Labels:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations:
some-annotation: some-annotation-value
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
some-label: some-label-value
steadybit.com/discovery-disabled: "true"
Expand Down Expand Up @@ -74,11 +76,13 @@ manifest should match snapshot with TLS:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
steadybit.com/discovery-disabled: "true"
spec:
Expand Down Expand Up @@ -146,11 +150,13 @@ manifest should match snapshot with extra env vars:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
steadybit.com/discovery-disabled: "true"
spec:
Expand Down Expand Up @@ -215,11 +221,13 @@ manifest should match snapshot with extra labels:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
steadybit.com/discovery-disabled: "true"
tags.datadoghq.com/service: steadybit-extension
Expand Down Expand Up @@ -277,11 +285,13 @@ manifest should match snapshot with mutual TLS:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
steadybit.com/discovery-disabled: "true"
spec:
Expand Down Expand Up @@ -358,11 +368,13 @@ manifest should match snapshot with mutual TLS using containerPaths:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
steadybit.com/discovery-disabled: "true"
spec:
Expand Down Expand Up @@ -425,11 +437,13 @@ manifest should match snapshot without TLS:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
steadybit.com/discovery-disabled: "true"
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ manifest should match snapshot with TLS:
protocol: TCP
targetPort: 8087
selector:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
manifest should match snapshot with mutual TLS:
1: |
Expand All @@ -33,6 +34,7 @@ manifest should match snapshot with mutual TLS:
protocol: TCP
targetPort: 8087
selector:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
manifest should match snapshot with mutual TLS using containerPaths:
1: |
Expand All @@ -51,6 +53,7 @@ manifest should match snapshot with mutual TLS using containerPaths:
protocol: TCP
targetPort: 8087
selector:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
manifest should match snapshot without TLS:
1: |
Expand All @@ -69,4 +72,5 @@ manifest should match snapshot without TLS:
protocol: TCP
targetPort: 8087
selector:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus

0 comments on commit 1c52b64

Please sign in to comment.