-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sidecar): allow more than one container per pod
- Loading branch information
Showing
10 changed files
with
169 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
apiVersion: v2 | ||
description: .NET Core Helm Chart | ||
name: dotnet | ||
version: 13.0.1 | ||
version: 13.1.0 | ||
dependencies: | ||
- name: libchart | ||
version: 4.0.1 | ||
version: 4.2.0 | ||
repository: file://../libchart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
apiVersion: v2 | ||
description: golan Helm Chart | ||
name: golang | ||
version: 17.0.1 | ||
version: 17.1.0 | ||
dependencies: | ||
- name: libchart | ||
version: 4.0.1 | ||
version: 4.2.0 | ||
repository: file://../libchart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
apiVersion: v2 | ||
description: Java Helm Chart | ||
name: java | ||
version: 10.0.1 | ||
version: 10.1.0 | ||
dependencies: | ||
- name: libchart | ||
version: 4.0.1 | ||
version: 4.2.0 | ||
repository: file://../libchart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
{{- define "libchart.container" }} | ||
image: "{{ .image.repository }}:{{ .image.tag }}" | ||
imagePullPolicy: Always | ||
{{- if .command }} | ||
command: | ||
{{ toYaml .command | nindent 6 }} | ||
{{- end }} | ||
{{- if .args }} | ||
args: | ||
{{ toYaml .args | nindent 6 }} | ||
{{- end }} | ||
{{- if or (.volumeMounts) (.csi) }} | ||
volumeMounts: | ||
{{- if .volumeMounts }} | ||
{{- toYaml .volumeMounts | nindent 6 }} | ||
{{- end }} | ||
{{- if .csi }} | ||
- name: {{ .csi.name }} | ||
mountPath: {{ .csi.mountPath | quote }} | ||
readOnly: true | ||
{{- end }} | ||
{{- end }} | ||
ports: | ||
{{- if .deployKind }} {{/* a hack to check if we are in the root context or in a sidecar; sidecars are not using the port mapping from the service */}} | ||
{{- "- name: http" | nindent 4 }} | ||
{{- "containerPort: " | nindent 6 }}{{ .service.targetPort | default 8080 }} | ||
protocol: TCP | ||
{{- end }} | ||
{{- if .extraContainerPorts }} | ||
{{ toYaml .extraContainerPorts | nindent 6 }} | ||
{{- end }} | ||
{{- $liveness := default dict .liveness }} | ||
{{- $livenessEnabled := default false $liveness.enabled }} | ||
{{- if and $liveness $livenessEnabled }} | ||
livenessProbe: | ||
httpGet: | ||
path: {{ .liveness.path | default "/" }} | ||
port: {{ .liveness.port | default 8080 }} | ||
initialDelaySeconds: {{ .liveness.delay | default 15 }} | ||
timeoutSeconds: {{ .liveness.timeout | default 15 }} | ||
periodSeconds: {{ .liveness.periodSeconds | default 15 }} | ||
{{- end }} | ||
{{- $readiness := default dict .readiness }} | ||
{{- $readinessEnabled := default false $readiness.enabled }} | ||
{{- if and $readiness $readinessEnabled }} | ||
readinessProbe: | ||
httpGet: | ||
path: {{ .readiness.path | default "/" }} | ||
port: {{ .readiness.port | default 8080 }} | ||
initialDelaySeconds: {{ .readiness.delay | default 15 }} | ||
timeoutSeconds: {{ .readiness.timeout | default 15 }} | ||
periodSeconds: {{ .readiness.periodSeconds | default 15 }} | ||
{{- end }} | ||
env: | ||
{{- if .secrets }} | ||
{{ toYaml .secrets | nindent 6 }} | ||
{{- end }} | ||
{{- if .environment }} | ||
{{ toYaml .environment | nindent 6 }} | ||
{{- end }} | ||
resources: | ||
{{- toYaml .resources | nindent 6 }} | ||
securityContext: | ||
{{- toYaml .securityContext | nindent 6 }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
apiVersion: v2 | ||
description: Node.js Helm Chart | ||
name: nodejs | ||
version: 17.0.1 | ||
version: 17.1.0 | ||
dependencies: | ||
- name: libchart | ||
version: 4.0.1 | ||
version: 4.2.0 | ||
repository: file://../libchart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters