Skip to content

Commit

Permalink
[GHA] Update go-monorepo chart
Browse files Browse the repository at this point in the history
  • Loading branch information
krzwiatrzyk committed Aug 13, 2024
1 parent 416b878 commit 1ddabab
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/go-monorepo/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: v2
name: go-monorepo
version: 0.0.12
version: 0.0.13
24 changes: 24 additions & 0 deletions charts/go-monorepo/templates/gateway/httproute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{{ if .Values.ingress.enabled }}
{{ if eq .Values.ingress.type "kong" }}
kind: HTTPRoute
apiVersion: gateway.networking.k8s.io/v1beta1
metadata:
name: {{ .Release.Name }}
spec:
parentRefs:
- group: gateway.networking.k8s.io
kind: Gateway
name: kong
namespace: kong-gateway-operator
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: {{ .Release.Name }}
port: {{ .Values.port }}
hostnames:
- "{{ .Values.name }}.{{ .Values.environment }}.windkube.com"
{{ end }}
{{ end }}
5 changes: 5 additions & 0 deletions charts/go-monorepo/templates/lib/containers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@
{{ if .Values.env }}
env: {{ .Values.env | toYaml | nindent 2 }}
{{ end }}
{{ if .Values.port }}
ports:
- containerPort: {{ .Values.port }}
name: http
{{ end }}
{{ end }}
1 change: 0 additions & 1 deletion charts/go-monorepo/templates/rabbitmq/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ metadata:
name: {{ .Release.Name }}
data:
username: {{ .Values.rabbitmq.user.username | b64enc }}
password: {{ .Values.rabbitmq.user.password | b64enc }}
{{ end }}
{{ end }}
{{ end }}
14 changes: 14 additions & 0 deletions charts/go-monorepo/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{{ if .Values.port }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}
spec:
ports:
- port: {{ .Values.port }}
targetPort: {{ .Values.port }}
protocol: TCP
name: http
selector:
app: {{ .Release.Name }}
{{ end }}
6 changes: 6 additions & 0 deletions charts/go-monorepo/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ args: []
secrets:
enabled: true

# port: 8088

ingress:
enabled: false
type: kong

# Those maps to configMap
envs: {}
# KEY: VALUE
Expand Down

0 comments on commit 1ddabab

Please sign in to comment.