Skip to content

Commit

Permalink
Manage image name in kustomization.yaml
Browse files Browse the repository at this point in the history
This way we only need to change it in one place, instead of for each
container in the netbox deployment.
  • Loading branch information
larsks committed Oct 28, 2021
1 parent 71934a3 commit 6c40311
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 3 additions & 3 deletions netbox/base/deployments/netbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ spec:
spec:
containers:
- name: netbox
image: quay.io/netboxcommunity/netbox:v3.0-ldap
image: netbox
envFrom: &envFrom
- configMapRef:
name: netbox-config
Expand All @@ -39,13 +39,13 @@ spec:
initialDelaySeconds: 1
periodSeconds: 10
- name: netbox-worker
image: quay.io/netboxcommunity/netbox:v3.0-ldap
image: netbox
command:
- sh
- -c
- '/opt/netbox/venv/bin/python3 /opt/netbox/netbox/manage.py rqworker'
envFrom: *envFrom
- name: netbox-housekeeping
image: quay.io/netboxcommunity/netbox:v3.0-ldap
image: netbox
command: ["/opt/netbox/housekeeping.sh"]
envFrom: *envFrom
5 changes: 5 additions & 0 deletions netbox/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,8 @@ configMapGenerator:
- name: netbox-config
envs:
- netbox-config.env

images:
- name: netbox
newName: quay.io/netboxcommunity/netbox
newTag: v3.0-ldap

0 comments on commit 6c40311

Please sign in to comment.