Skip to content

Commit

Permalink
Merge pull request #153 from Spredzy/image_pull_secret
Browse files Browse the repository at this point in the history
image_pull_secret: Allow users to specify an image_pull_secret
  • Loading branch information
chambridge committed Jun 7, 2021
2 parents 70b1388 + 630cb0e commit 7422a62
Show file tree
Hide file tree
Showing 11 changed files with 41 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deploy/crds/pulpproject_v1beta1_pulp_crd.yaml
Expand Up @@ -203,6 +203,9 @@ spec:
- IfNotPresent
- Always
- Never
image_pull_secret:
description: The image pull secret
type: string
affinity:
description: Defines various deployment affinities
properties:
Expand Down
Expand Up @@ -207,6 +207,12 @@ spec:
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- urn:alm:descriptor:com.tectonic.ui:hidden
- displayName: Image pull secret
description: Image pull secret for container images
path: image_pull_secret
x-descriptors:
- urn:alm:descriptor:com.tectonic.ui:advanced
- urn:alm:descriptor:com.tectonic.ui:imagePullSecret
- displayName: Deployment Affinity
description: The deployment affinity
path: affinity
Expand Down
Expand Up @@ -209,6 +209,9 @@ spec:
- IfNotPresent
- Always
- Never
image_pull_secret:
description: The image pull secret
type: string
affinity:
description: Defines various deployment affinities
properties:
Expand Down
1 change: 1 addition & 0 deletions playbook.yml
Expand Up @@ -27,6 +27,7 @@
project: pulp
image: pulp
image_web: pulp-web
image_pull_secret: ""
tag: stable
storage_type: File
file_storage:
Expand Down
4 changes: 4 additions & 0 deletions roles/postgres/templates/postgres.yaml.j2
Expand Up @@ -35,6 +35,10 @@ spec:
app.kubernetes.io/part-of: '{{ deployment_type }}'
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
spec:
{% if image_pull_secret %}
imagePullSecrets:
- name: {{ image_pull_secret }}
{% endif %}
{% if affinity is defined and affinity.node_affinity is defined %}
affinity:
nodeAffinity: {{ affinity.node_affinity }}
Expand Down
4 changes: 4 additions & 0 deletions roles/pulp-api/templates/pulp-api.deployment.yaml.j2
Expand Up @@ -28,6 +28,10 @@ spec:
app.kubernetes.io/part-of: '{{ deployment_type }}'
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
spec:
{% if image_pull_secret %}
imagePullSecrets:
- name: {{ image_pull_secret }}
{% endif %}
{% if affinity is defined and affinity.node_affinity is defined %}
affinity:
nodeAffinity: {{ affinity.node_affinity }}
Expand Down
4 changes: 4 additions & 0 deletions roles/pulp-content/templates/pulp-content.deployment.yaml.j2
Expand Up @@ -28,6 +28,10 @@ spec:
app.kubernetes.io/part-of: '{{ deployment_type }}'
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
spec:
{% if image_pull_secret %}
imagePullSecrets:
- name: {{ image_pull_secret }}
{% endif %}
{% if affinity is defined and affinity.node_affinity is defined %}
affinity:
nodeAffinity: {{ affinity.node_affinity }}
Expand Down
Expand Up @@ -28,6 +28,10 @@ spec:
app.kubernetes.io/part-of: '{{ deployment_type }}'
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
spec:
{% if image_pull_secret %}
imagePullSecrets:
- name: {{ image_pull_secret }}
{% endif %}
{% if affinity is defined and affinity.node_affinity is defined %}
affinity:
nodeAffinity: {{ affinity.node_affinity }}
Expand Down
4 changes: 4 additions & 0 deletions roles/pulp-web/templates/pulp-web.deployment.yaml.j2
Expand Up @@ -28,6 +28,10 @@ spec:
app.kubernetes.io/part-of: '{{ deployment_type }}'
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
spec:
{% if image_pull_secret %}
imagePullSecrets:
- name: {{ image_pull_secret }}
{% endif %}
{% if affinity is defined and affinity.node_affinity is defined %}
affinity:
nodeAffinity: {{ affinity.node_affinity }}
Expand Down
4 changes: 4 additions & 0 deletions roles/pulp-worker/templates/pulp-worker.deployment.yaml.j2
Expand Up @@ -28,6 +28,10 @@ spec:
app.kubernetes.io/part-of: '{{ deployment_type }}'
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
spec:
{% if image_pull_secret %}
imagePullSecrets:
- name: {{ image_pull_secret }}
{% endif %}
{% if affinity is defined and affinity.node_affinity is defined %}
affinity:
nodeAffinity: {{ affinity.node_affinity }}
Expand Down
4 changes: 4 additions & 0 deletions roles/redis/templates/redis.deployment.yaml.j2
Expand Up @@ -28,6 +28,10 @@ spec:
app.kubernetes.io/part-of: '{{ deployment_type }}'
app.kubernetes.io/managed-by: '{{ deployment_type }}-operator'
spec:
{% if image_pull_secret %}
imagePullSecrets:
- name: {{ image_pull_secret }}
{% endif %}
{% if affinity is defined and affinity.node_affinity is defined %}
affinity:
nodeAffinity: {{ affinity.node_affinity }}
Expand Down

0 comments on commit 7422a62

Please sign in to comment.