Skip to content

Commit

Permalink
image pull policy always
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgamero committed Sep 19, 2023
1 parent 61a1dbd commit bb28985
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion template/deployments/helm/charts/production.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
image:
repository: "{{APPNAME}}"
pullPolicy: IfNotPresent
pullPolicy: Always
tag: "latest"
service:
annotations: {}
Expand Down
2 changes: 1 addition & 1 deletion template/deployments/helm/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ containerPort: {{PORT}}
image:
repository: {{IMAGENAME}}
tag: {{IMAGETAG}}
pullPolicy: IfNotPresent
pullPolicy: Always


imagePullSecrets: []
Expand Down
6 changes: 3 additions & 3 deletions template/dockerfiles/python/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ ENV PORT {{PORT}}
EXPOSE {{PORT}}
WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
COPY requirements.tx[t] ./
RUN [ -f requirements.txt ] && pip install --no-cache-dir -r requirements.txt

COPY . .

ENTRYPOINT ["python"]
CMD ["{{ENTRYPOINT}}"]
CMD ["{{ENTRYPOINT}}"]
2 changes: 1 addition & 1 deletion test/templates/helm/charts/production.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
image:
repository: "test"
pullPolicy: IfNotPresent
pullPolicy: Always
tag: "latest"
service:
annotations: {}
Expand Down
2 changes: 1 addition & 1 deletion test/templates/helm/charts/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ containerPort: 8080

image:
repository: test
pullPolicy: IfNotPresent
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "latest"

Expand Down
4 changes: 2 additions & 2 deletions test/templates/helm_prod_values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
image:
repository: "prodImage"
pullPolicy: IfNotPresent
tag: "latest"
pullPolicy: Always
tag: "latest"

0 comments on commit bb28985

Please sign in to comment.