Skip to content

Commit

Permalink
feat: add appProtocol for service meshes (#847)
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Kruggel authored Aug 3, 2024
1 parent e01bfce commit 19cc5e6
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/charts/bamboo/templates/service-jmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
ports:
- port: {{ .Values.monitoring.jmxExporterPort}}
targetPort: jmx
appProtocol: http
name: jmx
selector:
{{- include "common.labels.selectorLabels" . | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions src/main/charts/bitbucket/templates/service-jmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
ports:
- port: {{ .Values.monitoring.jmxExporterPort}}
targetPort: jmx
appProtocol: http
name: jmx
- port: 9998
targetPort: 9998
Expand Down
1 change: 1 addition & 0 deletions src/main/charts/bitbucket/templates/service-mesh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ spec:
{{- if .Values.monitoring.exposeJmxMetrics}}
- port: {{ .Values.monitoring.jmxExporterPort}}
targetPort: jmx
appProtocol: http
name: jmx
{{- end }}
selector:
Expand Down
1 change: 1 addition & 0 deletions src/main/charts/confluence/templates/service-jmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
ports:
- port: {{ .Values.monitoring.jmxExporterPort}}
targetPort: jmx
appProtocol: http
name: jmx
selector:
{{- include "common.labels.selectorLabels" . | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions src/main/charts/crowd/templates/service-jmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
ports:
- port: {{ .Values.monitoring.jmxExporterPort}}
targetPort: jmx
appProtocol: http
name: jmx
selector:
{{- include "common.labels.selectorLabels" . | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions src/main/charts/jira/templates/service-jmx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
ports:
- port: {{ .Values.monitoring.jmxExporterPort}}
targetPort: jmx
appProtocol: http
name: jmx
selector:
{{- include "common.labels.selectorLabels" . | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/expected_helm_output/bamboo/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,7 @@ spec:
ports:
- port: 9999
targetPort: jmx
appProtocol: http
name: jmx
selector:
app.kubernetes.io/name: bamboo
Expand Down
4 changes: 4 additions & 0 deletions src/test/resources/expected_helm_output/bitbucket/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ spec:
ports:
- port: 9999
targetPort: jmx
appProtocol: http
name: jmx
- port: 9998
targetPort: 9998
Expand Down Expand Up @@ -469,6 +470,7 @@ spec:
name: mesh
- port: 9999
targetPort: jmx
appProtocol: http
name: jmx
selector:
statefulset.kubernetes.io/pod-name: unittest-bitbucket-mesh-0
Expand All @@ -494,6 +496,7 @@ spec:
name: mesh
- port: 9999
targetPort: jmx
appProtocol: http
name: jmx
selector:
statefulset.kubernetes.io/pod-name: unittest-bitbucket-mesh-1
Expand All @@ -519,6 +522,7 @@ spec:
name: mesh
- port: 9999
targetPort: jmx
appProtocol: http
name: jmx
selector:
statefulset.kubernetes.io/pod-name: unittest-bitbucket-mesh-2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,7 @@ spec:
ports:
- port: 9999
targetPort: jmx
appProtocol: http
name: jmx
selector:
app.kubernetes.io/name: confluence
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/expected_helm_output/crowd/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@ spec:
ports:
- port: 9999
targetPort: jmx
appProtocol: http
name: jmx
selector:
app.kubernetes.io/name: crowd
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/expected_helm_output/jira/output.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@ spec:
ports:
- port: 9999
targetPort: jmx
appProtocol: http
name: jmx
selector:
app.kubernetes.io/name: jira
Expand Down

0 comments on commit 19cc5e6

Please sign in to comment.