refactor image repo setting of gogs (#5827)

This commit is contained in:
cheyang
2018-06-01 09:07:14 -07:00
committed by k8s-ci-robot
parent 6995d5d033
commit 1aede1787c
4 changed files with 10 additions and 9 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
apiVersion: v1
description: 'Gogs: Go Git Service'
name: gogs
version: 0.5.3
version: 0.6.0
appVersion: 0.11.29
home: https://gogs.io/
icon: https://gogs.io/img/favicon.ico
+3 -3
View File
@@ -43,9 +43,9 @@ chart and their default values.
| Parameter | Description | Default |
| ----------------------- | ---------------------------------- | ---------------------------------------------------------- |
| `imageRepository` | Gogs image | `gogs/gogs` |
| `imageTag` | Gogs image version | `0.11.29` |
| `imagePullPolicy` | Gogs image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` |
| `image.repository` | Gogs image | `gogs/gogs` |
| `image.tag` | Gogs image tag | `0.11.29` |
| `image.pullPolicy` | Gogs image pull policy | `Always` if `imageTag` is `latest`, else `IfNotPresent` |
| `postgresql.install` | Weather or not to install PostgreSQL dependency | `true` |
| `postgresql.postgresHost` | PostgreSQL host (if `postgresql.install == false`) | `nil` |
| `postgresql.postgresUser` | PostgreSQL User to create | `gogs` |
+2 -2
View File
@@ -18,8 +18,8 @@ spec:
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
imagePullPolicy: {{ .Values.imagePullPolicy }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: 3000
- containerPort: 22
+4 -3
View File
@@ -9,9 +9,10 @@ serviceType: NodePort
replicaCount: 1
image: gogs/gogs
imageTag: 0.11.29
imagePullPolicy: IfNotPresent
image:
repository: gogs/gogs
tag: 0.11.29
pullPolicy: IfNotPresent
service:
## Override the components name (defaults to service).