Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updating start args and creating directories necessary for pulp #20

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion roles/pulp-api/templates/pulp-api.deployment.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ spec:
image: "{{ _image }}"
imagePullPolicy: "{{ image_pull_policy }}"
# We set args, not command, so as to not override the entrypoint script
args: ["pulp-api"]
args:
- start-api
rooftopcellist marked this conversation as resolved.
Show resolved Hide resolved
lifecycle:
postStart:
exec:
command: ["/bin/bash", "-c", "mkdir -p /var/lib/pulp/{assets,media,tmp}"]
env:
- name: POSTGRES_SERVICE_HOST
value: "{{ postgres_host }}"
Expand Down
7 changes: 6 additions & 1 deletion roles/pulp-content/templates/pulp-content.deployment.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,12 @@ spec:
image: "{{ _image }}"
imagePullPolicy: "{{ image_pull_policy }}"
# We set args, not command, so as to not override the entrypoint script
args: ["pulp-content"]
args:
- start-content-app
rooftopcellist marked this conversation as resolved.
Show resolved Hide resolved
lifecycle:
postStart:
exec:
command: ["/bin/bash", "-c", "mkdir -p /var/lib/pulp/{assets,media,tmp}"]
{% if content.resource_requirements is defined %}
resources: {{ content.resource_requirements }}
{% endif %}
Expand Down
Loading