Skip to content

Commit

Permalink
Upgrade Kubernetes API version and remove the mutable label for upgrade
Browse files Browse the repository at this point in the history
1. Upgrade the Kubernetes API versions to the latest stable ones
2. Remove the mutable label for helm release upgrade, related issue: helm/charts#7680

Signed-off-by: Wenkai Yin <yinw@vmware.com>
  • Loading branch information
ywk253100 authored and scottrigby committed Mar 7, 2019
1 parent e8066c9 commit e8b826a
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
{{- define "harbor.labels" -}}
heritage: {{ .Release.Service }}
release: {{ .Release.Name }}
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
chart: {{ .Chart.Name }}
app: "{{ template "harbor.name" . }}"
{{- end -}}

Expand Down
2 changes: 1 addition & 1 deletion templates/adminserver/adminserver-dpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ template "harbor.fullname" . }}-adminserver"
Expand Down
2 changes: 1 addition & 1 deletion templates/chartmuseum/chartmuseum-dpl.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.chartmuseum.enabled }}
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ template "harbor.fullname" . }}-chartmuseum"
Expand Down
2 changes: 1 addition & 1 deletion templates/clair/clair-dpl.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if .Values.clair.enabled }}
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "harbor.fullname" . }}-clair
Expand Down
6 changes: 5 additions & 1 deletion templates/core/core-dpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "harbor.core" . }}
Expand All @@ -7,6 +7,10 @@ metadata:
component: core
spec:
replicas: {{ .Values.core.replicas }}
selector:
matchLabels:
{{ include "harbor.matchLabels" . | indent 6 }}
component: core
template:
metadata:
labels:
Expand Down
2 changes: 1 addition & 1 deletion templates/database/database-ss.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if eq .Values.database.type "internal" -}}
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: "{{ template "harbor.fullname" . }}-database"
Expand Down
2 changes: 1 addition & 1 deletion templates/jobservice/jobservice-dpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ template "harbor.fullname" . }}-jobservice"
Expand Down
2 changes: 1 addition & 1 deletion templates/notary/notary-server.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if .Values.notary.enabled }}
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "harbor.fullname" . }}-notary-server
Expand Down
2 changes: 1 addition & 1 deletion templates/notary/notary-signer.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ if .Values.notary.enabled }}
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "harbor.fullname" . }}-notary-signer
Expand Down
6 changes: 5 additions & 1 deletion templates/portal/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ template "harbor.portal" . }}"
Expand All @@ -7,6 +7,10 @@ metadata:
component: portal
spec:
replicas: {{ .Values.portal.replicas }}
selector:
matchLabels:
{{ include "harbor.matchLabels" . | indent 6 }}
component: portal
template:
metadata:
labels:
Expand Down
2 changes: 1 addition & 1 deletion templates/redis/statefulset.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if eq .Values.redis.type "internal" -}}
apiVersion: apps/v1beta2
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: {{ template "harbor.redis" . }}
Expand Down
2 changes: 1 addition & 1 deletion templates/registry/registry-dpl.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: "{{ template "harbor.fullname" . }}-registry"
Expand Down

0 comments on commit e8b826a

Please sign in to comment.