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

build(deps): bump urllib3 from 2.2.1 to 2.2.2 #2

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

56 changes: 43 additions & 13 deletions rcds/backends/k8s/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% import '_helpers.jinja' as helpers with context %}
{% set has_healthcheck = container.config.healthcheck is defined and container.config.healthcheck.enabled %}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -20,40 +21,69 @@ spec:
{{ helpers.container_labels() | indent(8) }}
spec:
containers:
- name: {{ container.name }}
image: {{ container.config.image }}
{% if container.config.ports %}
- name: challenge
image: {{ container.config.challenge.image }}
{% if container.config.challenge.ports %}
ports:
{% for port in container.config.ports %}
{% for port in container.config.challenge.ports %}
- containerPort: {{ port }}
name: port-{{ port }}
{% endfor %}
{% endif %}
{% if container.config.environment %}
{% if container.config.challenge.environment %}
env:
{% for name, value in container.config.environment.items() %}
{% for name, value in container.config.challenge.environment.items() %}
- name: {{ name }}
value: {{ value | quote }}
{% endfor %}
{% endif %}
{% if container.config.resources %}
{% if container.config.challenge.resources %}
resources:
{{ container.config.resources | yaml(12) }}
{{ container.config.challenge.resources | yaml(12) }}
{% endif %}
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: {{ container.config.readOnlyRootFilesystem }}
{% if container.config.tmpfsMounts | first is defined %}
readOnlyRootFilesystem: {{ container.config.challenge.readOnlyRootFilesystem }}
{% if container.config.challenge.tmpfsMounts | first is defined %}
volumeMounts:
{% for tmpfsMount in container.config.tmpfsMounts %}
{% for tmpfsMount in container.config.challenge.tmpfsMounts %}
- name: {{ tmpfsMount }}
mountPath: {{ tmpfsMount }}
{% endfor %}
{% endif %}
{% if container.config.tmpfsMounts | first is defined %}
{% if has_healthcheck %}
livenessProbe:
httpGet:
path: /healthz
port: 45281
initialDelaySeconds: 45
timeoutSeconds: 3
periodSeconds: 30
readinessProbe:
httpGet:
path: /healthz
port: 45281
initialDelaySeconds: 5
timeoutSeconds: 3
periodSeconds: 5
{% endif %}
{% if has_healthcheck %}
- name: healthcheck
image: {{ container.config.healthcheck.image }}
resources:
limits:
cpu: 1000m
requests:
cpu: 50m
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: false
{% endif %}
{% if container.config.challenge.tmpfsMounts | first is defined %}
volumes:
{% for tmpfsMount in container.config.tmpfsMounts %}
{% for tmpfsMount in container.config.challenge.tmpfsMounts %}
- name: {{ tmpfsMount }}
emptyDir:
medium: Memory
Expand Down
4 changes: 2 additions & 2 deletions rcds/backends/k8s/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% import '_helpers.jinja' as helpers with context %}
{% if container.config.ports %}
{% if container.config.challenge.ports %}
apiVersion: v1
kind: Service
metadata:
Expand All @@ -18,7 +18,7 @@ spec:
{{ helpers.common_labels() | indent(4) }}
{{ helpers.container_labels() | indent(4) }}
ports:
{% for port in container.config.ports %}
{% for port in container.config.challenge.ports %}
- port: {{ port }}
targetPort: {{ port }}
name: port-{{ port }}
Expand Down
Loading