Skip to content

Commit

Permalink
kubeapps: bump chart version to 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kubernetes-bitnami committed Oct 16, 2018
1 parent 78a98b6 commit c0833c4
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 20 deletions.
2 changes: 1 addition & 1 deletion bitnami/kubeapps/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: kubeapps
version: 0.6.1
version: 0.7.0
appVersion: v1.0.0-beta.2
description: Kubeapps is a dashboard for your Kubernetes cluster that makes it easy to deploy and manage applications in your cluster using Helm
icon: https://raw.githubusercontent.com/kubeapps/kubeapps/master/docs/img/logo.png
Expand Down
1 change: 1 addition & 0 deletions bitnami/kubeapps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ apprepository:
EOF
$ helm install --name kubeapps --namespace kubeapps bitnami/kubeapps -f custom-values.yaml
```

### Configuring connection to a custom namespace Tiller instance

By default, Kubeapps connects to the Tiller Service in the `kube-system` namespace, the default install location for Helm.
Expand Down
17 changes: 16 additions & 1 deletion bitnami/kubeapps/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,22 @@ If release name contains chart name it will be used as a full name.
Render image reference
*/}}
{{- define "kubeapps.image" -}}
{{ .registry }}/{{ .repository }}:{{ .tag }}
{{- $image := index . 0 -}}
{{- $global := index . 1 -}}
{{/*
Helm 2.11 supports the assignment of a value to a variable defined in a different scope,
but Helm 2.9 and 2.10 doesn't support it, so we need to implement this if-else logic.
Also, we can't use a single if because lazy evaluation is not an option
*/}}
{{- if $global -}}
{{- if $global.imageRegistry -}}
{{ $global.imageRegistry }}/{{ $image.repository }}:{{ $image.tag }}
{{- else -}}
{{ $image.registry }}/{{ $image.repository }}:{{ $image.tag }}
{{- end -}}
{{- else -}}
{{ $image.registry }}/{{ $image.repository }}:{{ $image.tag }}
{{- end -}}
{{- end -}}

{{/*
Expand Down
4 changes: 2 additions & 2 deletions bitnami/kubeapps/templates/apprepository-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ spec:
serviceAccountName: {{ template "kubeapps.apprepository.fullname" . }}
containers:
- name: controller
image: {{ template "kubeapps.image" .Values.apprepository.image }}
image: {{ template "kubeapps.image" (list .Values.apprepository.image .Values.global) }}
command:
- /apprepository-controller
args:
- --logtostderr
- --repo-sync-image={{ template "kubeapps.image" .Values.apprepository.syncImage }}
- --repo-sync-image={{ template "kubeapps.image" (list .Values.apprepository.syncImage .Values.global) }}
- --namespace={{ .Release.Namespace }}
- --mongo-url={{ template "kubeapps.mongodb.fullname" . }}
- --mongo-secret-name={{ .Values.mongodb.existingSecret }}
Expand Down
6 changes: 3 additions & 3 deletions bitnami/kubeapps/templates/apprepository-jobs-bootstrap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ spec:
spec:
containers:
- name: kubectl
image: {{ template "kubeapps.image" .Values.hooks.image }}
image: {{ template "kubeapps.image" (list .Values.hooks.image .Values.global) }}
command:
- kubectl
- apply
- -f
- apply
- -f
- /tmp/apprepositories/apprepositories.yaml
volumeMounts:
- mountPath: /tmp/apprepositories
Expand Down
4 changes: 2 additions & 2 deletions bitnami/kubeapps/templates/apprepository-jobs-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ spec:
spec:
containers:
- name: kubectl
image: {{ template "kubeapps.image" .Values.hooks.image }}
image: {{ template "kubeapps.image" (list .Values.hooks.image .Values.global) }}
command:
- kubectl
- delete
- apprepositories.kubeapps.com
- -n
- {{ .Release.Namespace }}
- {{ .Release.Namespace }}
- --all
restartPolicy: OnFailure
serviceAccountName: {{ template "kubeapps.apprepository-jobs-cleanup.fullname" . }}
Expand Down
2 changes: 1 addition & 1 deletion bitnami/kubeapps/templates/chartsvc-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
spec:
containers:
- name: chartsvc
image: {{ template "kubeapps.image" .Values.chartsvc.image }}
image: {{ template "kubeapps.image" (list .Values.chartsvc.image .Values.global) }}
command:
- /chartsvc
args:
Expand Down
2 changes: 1 addition & 1 deletion bitnami/kubeapps/templates/dashboard-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
spec:
containers:
- name: dashboard
image: {{ template "kubeapps.image" .Values.dashboard.image }}
image: {{ template "kubeapps.image" (list .Values.dashboard.image .Values.global) }}
livenessProbe:
{{ toYaml .Values.dashboard.livenessProbe | indent 10 }}
readinessProbe:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
spec:
containers:
- name: nginx
image: {{ template "kubeapps.image" .Values.frontend.image }}
image: {{ template "kubeapps.image" (list .Values.frontend.image .Values.global) }}
livenessProbe:
{{ toYaml .Values.frontend.livenessProbe | indent 10 }}
readinessProbe:
Expand Down
2 changes: 1 addition & 1 deletion bitnami/kubeapps/templates/kubeapps-jobs-upgrade.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
spec:
containers:
- name: kubectl
image: {{ template "kubeapps.image" .Values.hooks.image }}
image: {{ template "kubeapps.image" (list .Values.hooks.image .Values.global) }}
command:
- /bin/sh
- -c
Expand Down
2 changes: 1 addition & 1 deletion bitnami/kubeapps/templates/mongodb-jobs-cleanup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spec:
spec:
containers:
- name: kubectl
image: {{ template "kubeapps.image" .Values.hooks.image }}
image: {{ template "kubeapps.image" (list .Values.hooks.image .Values.global) }}
command:
- /bin/sh
args:
Expand Down
4 changes: 2 additions & 2 deletions bitnami/kubeapps/templates/tiller-proxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
serviceAccountName: {{ template "kubeapps.tiller-proxy.fullname" . }}
containers:
- name: proxy
image: {{ template "kubeapps.image" .Values.tillerProxy.image }}
image: {{ template "kubeapps.image" (list .Values.tillerProxy.image .Values.global) }}
command:
- /proxy
args:
Expand Down Expand Up @@ -53,7 +53,7 @@ spec:
{{- if .Values.tillerProxy.tls }}
volumes:
- name: tiller-certs
secret:
secret:
secretName: {{ template "kubeapps.tiller-proxy.fullname" . }}
{{- end }}
{{- with .Values.tillerProxy.nodeSelector }}
Expand Down
18 changes: 14 additions & 4 deletions bitnami/kubeapps/values.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## Global Docker image registry
## Please, note that this will override the image registry for all the images, including dependencies, configured to use the global value
# global:
# imageRegistry:

# The frontend service is the main reverse proxy used to access the Kubeapps UI
# To expose Kubeapps externally either configure the ingress object below or
# set frontend.service.type=LoadBalancer in the frontend configuration.
Expand Down Expand Up @@ -59,8 +64,8 @@ apprepository:
# Image used to perform chart repository syncs
syncImage:
registry: docker.io
repository: kubeapps/chart-repo
tag: v1.0.0-beta.2
repository: quay.io/helmpack/chart-repo
tag: v1.0.0
initialRepos:
- name: stable
url: https://kubernetes-charts.storage.googleapis.com
Expand Down Expand Up @@ -127,8 +132,8 @@ chartsvc:
replicaCount: 2
image:
registry: docker.io
repository: kubeapps/chartsvc
tag: v1.0.0-beta.2
repository: quay.io/helmpack/chartsvc
tag: v1.0.0
service:
port: 8080
# https://github.com/kubeapps/kubeapps/issues/478#issuecomment-422979262
Expand Down Expand Up @@ -190,6 +195,11 @@ dashboard:
tolerations: []
affinity: {}

##
## MongoDB chart configuration
##
## https://github.com/helm/charts/blob/master/stable/mongodb/values.yaml
##
mongodb:
# Kubeapps uses MongoDB as a cache and persistence is not required
persistence:
Expand Down

0 comments on commit c0833c4

Please sign in to comment.