Skip to content

Commit

Permalink
update chart versions and change all instances of mssql.name to mssql…
Browse files Browse the repository at this point in the history
….fullname (#27)
  • Loading branch information
prom3theu5 authored Jul 21, 2023
1 parent 979a49f commit fe5a5b8
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 28 deletions.
2 changes: 1 addition & 1 deletion charts/mssqlserver-2019/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ maintainers:
name: mssqlserver-2019
sources:
- https://hub.docker.com/_/microsoft-mssql-server
version: "1.2.2"
version: "1.2.3"
4 changes: 2 additions & 2 deletions charts/mssqlserver-2019/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ License Terms: https://go.microsoft.com/fwlink/?linkid=857698
Docker Hub Resource: https://hub.docker.com/_/microsoft-mssql-server

Edition for this installation: {{ .Values.edition.value }}
SQL Server Name: {{ template "mssql.name" . }}.{{ .Release.Namespace }}
SQL Server Name: {{ template "mssql.fullname" . }}.{{ .Release.Namespace }}
Port: {{ .Values.service.port }}
Collation: {{ .Values.collation }}

Expand All @@ -18,7 +18,7 @@ $ printf $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "
2. You can test that SQL Server is available by the service port with with the following set of command:
(Note: You will be prompted for the SA password, use the password generated in Step 1)
$ kubectl run mssqlcli --image=mcr.microsoft.com/mssql-tools -ti --restart=Never --rm=true -- /bin/bash
$ sqlcmd -S {{ template "mssql.name" . }}.{{ .Release.Namespace }},{{ .Values.service.port }} -U sa
$ sqlcmd -S {{ template "mssql.fullname" . }}.{{ .Release.Namespace }},{{ .Values.service.port }} -U sa
$ Password: <Enter Password for SA>

2. Connection Library Information
Expand Down
4 changes: 0 additions & 4 deletions charts/mssqlserver-2019/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "mssql.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).
Expand Down
6 changes: 3 additions & 3 deletions charts/mssqlserver-2019/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: {{ template "mssql.fullname" . }}
labels:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand All @@ -18,12 +18,12 @@ spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
release: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
release: {{ .Release.Name }}
{{- if .Values.pod.labels }}
{{ toYaml .Values.pod.labels | indent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/mssqlserver-2019/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Secret
metadata:
name: {{ template "mssql.fullname" . }}-secret
labels:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
6 changes: 3 additions & 3 deletions charts/mssqlserver-2019/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "mssql.name" . }}
name: {{ template "mssql.fullname" . }}
labels:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand All @@ -30,5 +30,5 @@ spec:
targetPort: mssql
protocol: TCP
selector:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
release: {{ .Release.Name }}
2 changes: 1 addition & 1 deletion charts/mssqlserver-2022/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ maintainers:
name: mssqlserver-2022
sources:
- https://hub.docker.com/_/microsoft-mssql-server
version: "1.2.2"
version: "1.2.3"
4 changes: 2 additions & 2 deletions charts/mssqlserver-2022/templates/NOTES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ License Terms: https://go.microsoft.com/fwlink/?linkid=857698
Docker Hub Resource: https://hub.docker.com/_/microsoft-mssql-server

Edition for this installation: {{ .Values.edition.value }}
SQL Server Name: {{ template "mssql.name" . }}.{{ .Release.Namespace }}
SQL Server Name: {{ template "mssql.fullname" . }}.{{ .Release.Namespace }}
Port: {{ .Values.service.port }}
Collation: {{ .Values.collation }}

Expand All @@ -18,7 +18,7 @@ $ printf $(kubectl get secret --namespace {{ .Release.Namespace }} {{ template "
2. You can test that SQL Server is available by the service port with with the following set of command:
(Note: You will be prompted for the SA password, use the password generated in Step 1)
$ kubectl run mssqlcli --image=mcr.microsoft.com/mssql-tools -ti --restart=Never --rm=true -- /bin/bash
$ sqlcmd -S {{ template "mssql.name" . }}.{{ .Release.Namespace }},{{ .Values.service.port }} -U sa
$ sqlcmd -S {{ template "mssql.fullname" . }}.{{ .Release.Namespace }},{{ .Values.service.port }} -U sa
$ Password: <Enter Password for SA>

2. Connection Library Information
Expand Down
4 changes: 0 additions & 4 deletions charts/mssqlserver-2022/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "mssql.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).
Expand Down
6 changes: 3 additions & 3 deletions charts/mssqlserver-2022/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: {{ template "mssql.fullname" . }}
labels:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand All @@ -18,12 +18,12 @@ spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
release: {{ .Release.Name }}
template:
metadata:
labels:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
release: {{ .Release.Name }}
{{- if .Values.pod.labels }}
{{ toYaml .Values.pod.labels | indent 8 }}
Expand Down
2 changes: 1 addition & 1 deletion charts/mssqlserver-2022/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Secret
metadata:
name: {{ template "mssql.fullname" . }}-secret
labels:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand Down
6 changes: 3 additions & 3 deletions charts/mssqlserver-2022/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "mssql.name" . }}
name: {{ template "mssql.fullname" . }}
labels:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
Expand All @@ -30,5 +30,5 @@ spec:
targetPort: mssql
protocol: TCP
selector:
app: {{ template "mssql.name" . }}
app: {{ template "mssql.fullname" . }}
release: {{ .Release.Name }}

0 comments on commit fe5a5b8

Please sign in to comment.