Skip to content
This repository was archived by the owner on Feb 22, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion stable/gcloud-sqlproxy/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: gcloud-sqlproxy
version: 0.1.1
version: 0.2.0
description: Google Cloud SQL Proxy
keywords:
- google
Expand Down
2 changes: 1 addition & 1 deletion stable/gcloud-sqlproxy/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ settings were not provided.

The SQL server instance can be accessed via port {{ .Values.cloudsql.port }} on the
following DNS name from within your cluster:
- {{ template "fullname" . }}.{{ .Release.Namespace }}
- {{ template "gcloud-sqlproxy.fullname" . }}.{{ .Release.Namespace }}

{{- else -}}

Expand Down
4 changes: 2 additions & 2 deletions stable/gcloud-sqlproxy/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- define "gcloud-sqlproxy.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- define "gcloud-sqlproxy.fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
8 changes: 4 additions & 4 deletions stable/gcloud-sqlproxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ template "fullname" . }}
name: {{ template "gcloud-sqlproxy.fullname" . }}
labels:
app: {{ template "fullname" . }}
app: {{ template "gcloud-sqlproxy.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand All @@ -13,7 +13,7 @@ spec:
template:
metadata:
labels:
app: {{ template "fullname" . }}
app: {{ template "gcloud-sqlproxy.fullname" . }}
spec:
containers:
- name: sqlproxy
Expand All @@ -37,7 +37,7 @@ spec:
volumes:
- name: cloudsql-oauth-credentials
secret:
secretName: {{ template "fullname" . }}
secretName: {{ template "gcloud-sqlproxy.fullname" . }}
- name: ssl-certs
hostPath:
path: /etc/ssl/certs
Expand Down
4 changes: 2 additions & 2 deletions stable/gcloud-sqlproxy/templates/secrets.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ template "fullname" . }}
name: {{ template "gcloud-sqlproxy.fullname" . }}
labels:
app: {{ template "fullname" . }}
app: {{ template "gcloud-sqlproxy.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand Down
6 changes: 3 additions & 3 deletions stable/gcloud-sqlproxy/templates/svc.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "fullname" . }}
name: {{ template "gcloud-sqlproxy.fullname" . }}
labels:
app: {{ template "fullname" . }}
app: {{ template "gcloud-sqlproxy.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
Expand All @@ -14,4 +14,4 @@ spec:
port: {{ .Values.cloudsql.port }}
targetPort: sqlproxy
selector:
app: {{ template "fullname" . }}
app: {{ template "gcloud-sqlproxy.fullname" . }}