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 7a56cd4 commit 6937720
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-gatling/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:55:27.754991+02:00"
version: 1.4.4
digest: sha256:b241bfbb60b24ff401a45d75efeaebfd5242801712bfaf7740f0461df9a50c37
generated: "2023-09-08T09:50:46.11068+02:00"
4 changes: 2 additions & 2 deletions charts/steadybit-extension-gatling/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-gatling
description: Steadybit gatling extension Helm chart for Kubernetes.
version: 1.0.10
version: 1.0.11
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.
4 changes: 2 additions & 2 deletions charts/steadybit-extension-gatling/templates/deployment.yaml
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-gatling
template:
metadata:
annotations:
some-annotation: some-annotation-value
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
some-label: some-label-value
steadybit.com/discovery-disabled: "true"
Expand Down Expand Up @@ -78,11 +80,13 @@ manifest should match snapshot with TLS:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
steadybit.com/discovery-disabled: "true"
spec:
Expand Down Expand Up @@ -154,11 +158,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-gatling
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
steadybit.com/discovery-disabled: "true"
spec:
Expand Down Expand Up @@ -227,11 +233,13 @@ manifest should match snapshot with extra labels:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
steadybit.com/discovery-disabled: "true"
tags.datadoghq.com/service: steadybit-extension
Expand Down Expand Up @@ -293,11 +301,13 @@ manifest should match snapshot with mutual TLS:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
steadybit.com/discovery-disabled: "true"
spec:
Expand Down Expand Up @@ -378,11 +388,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-gatling
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
steadybit.com/discovery-disabled: "true"
spec:
Expand Down Expand Up @@ -449,11 +461,13 @@ manifest should match snapshot without TLS:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
template:
metadata:
annotations: null
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-gatling
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-gatling
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-gatling
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-gatling
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-gatling

0 comments on commit 6937720

Please sign in to comment.