Skip to content
This repository has been archived by the owner on Jun 26, 2024. It is now read-only.

Commit

Permalink
adding support of using charts as library for certain components (#164)
Browse files Browse the repository at this point in the history
* adding support of using charts as library for certain components

* update .trivyignore
  • Loading branch information
ravisingal authored Jun 2, 2023
1 parent 4630839 commit 3538a1e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .trivyignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# openssl
CVE-2023-0464 exp:2023-05-01
CVE-2023-0464 exp:2023-08-01
2 changes: 2 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if eq .Values.chartType "application" }}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -105,3 +106,4 @@ spec:
securityContext:
{{- toYaml . | nindent 8}}
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion helm/templates/hpa.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if .Values.hpa.enabled }}
{{- if and .Values.hpa.enabled (eq .Values.chartType "application") }}
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
Expand Down
2 changes: 2 additions & 0 deletions helm/templates/logconfig.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if eq .Values.chartType "application" }}
apiVersion: v1
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -39,3 +40,4 @@ data:
{{- if .Values.logConfig.appender.rolling.enabled }}
rootLogger.appenderRef.rolling.ref = ROLLING_FILE
{{- end }}
{{- end }}
4 changes: 2 additions & 2 deletions helm/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Chart.Name }}
name: {{ .Values.service.name }}
labels:
release: {{ .Release.Name }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: {{ .Values.containerPortName }}
targetPort: {{ .Values.containerPort }}
name: {{ .Values.containerPortName }}-{{ .Chart.Name }}
selector:
{{- toYaml .Values.serviceSelectorLabels | nindent 4 }}
3 changes: 3 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
replicaCount: 1
maxUnavailable: 0

chartType: application

image:
repository: hypertrace/gateway-service
pullPolicy: IfNotPresent
Expand All @@ -18,6 +20,7 @@ containerPortName: grpc
env: []

service:
name: gateway-service
type: ClusterIP
port: 50071
adminPort: 50072
Expand Down

0 comments on commit 3538a1e

Please sign in to comment.