Skip to content

Commit

Permalink
Set default value for image.registry to docker.io
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianeicher committed Mar 22, 2021
1 parent 58c1a0c commit 0279508
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 9 deletions.
3 changes: 1 addition & 2 deletions charts/generic-service/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ You can then add static configuration to your `values.yaml` like this:
```yaml
app:
image:
registry: docker.io
repository: myservice
tag: 1.2.3
```
Expand All @@ -35,7 +34,7 @@ app:
| ----------------------------------------- | -------------------------- | -------------------------------------------------------------------------------------------------------- |
| `name` | Release Name | The name of the service (used for `app.kubernetes.io/name` label) |
| `fullname` | Release Name (+ `name`) | The name of the service instance (used for resource names and `app.kubernetes.io/instance` label) |
| `image.registry` | __required__ | The Registry containing the Docker Image to run (also used as the name of an optional Image Pull Secret) |
| `image.registry` | `docker.io` | The Registry containing the Docker Image to run (also used as the name of an optional Image Pull Secret) |
| `image.repository` | __required__ | The name of the Docker Image image to run (without the Registry) |
| `image.tag` | __required__ | The tag of the Docker Image to run (also used for `app.kubernetes.io/version` label) |
| `image.pullPolicy` | `IfNotPresent` | Set to `Always` to try to pull new versions of the Docker Image |
Expand Down
1 change: 0 additions & 1 deletion charts/generic-service/ci/basic-values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# Minimal test

image:
registry: docker.io
repository: jwilder/whoami
tag: latest
1 change: 0 additions & 1 deletion charts/generic-service/ci/config-values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Config and environment variable test

image:
registry: docker.io
repository: jwilder/whoami
tag: latest

Expand Down
1 change: 0 additions & 1 deletion charts/generic-service/ci/ingress-values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Ingress test

image:
registry: docker.io
repository: jwilder/whoami
tag: latest

Expand Down
1 change: 0 additions & 1 deletion charts/generic-service/ci/name-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ name: test
fullname: my-test

image:
registry: docker.io
repository: jwilder/whoami
tag: latest
1 change: 0 additions & 1 deletion charts/generic-service/ci/persistence-values.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Persistence test

image:
registry: docker.io
repository: jwilder/whoami
tag: latest

Expand Down
2 changes: 1 addition & 1 deletion charts/generic-service/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"properties": {
"registry": {
"type": "string",
"default": "docker.io",
"description": "The Registry containing the Docker Image to run (also used as the name of an optional Image Pull Secret)"
},
"repository": {
Expand All @@ -33,7 +34,6 @@
}
},
"required": [
"registry",
"repository",
"tag"
]
Expand Down
2 changes: 1 addition & 1 deletion charts/generic-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: ''
fullname: ''

image:
# registry: required
registry: docker.io
# repository: required
# tag: latest
pullPolicy: IfNotPresent
Expand Down

0 comments on commit 0279508

Please sign in to comment.