Skip to content

Commit

Permalink
Drop unused webhook-server-secret
Browse files Browse the repository at this point in the history
Signed-off-by: Arik Hadas <[email protected]>
  • Loading branch information
ahadas committed Feb 19, 2024
1 parent 9e95492 commit 931ef39
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 26 deletions.
5 changes: 0 additions & 5 deletions operator/roles/forkliftcontroller/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,6 @@
state: present
definition: "{{ lookup('template', 'configmap-trusted-ca.yml.j2') }}"

- name: "Setup the webhook secret"
k8s:
state: present
definition: "{{ lookup('template', 'secret-webhook-server-secret.yml.j2') }}"

- name: "Setup controller config map"
k8s:
state : present
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ spec:
- name: API_TLS_CA
value: /var/run/secrets/{{ inventory_tls_secret_name }}/ca.crt
{% endif %}
- name: SECRET_NAME
value: webhook-server-secret
{% if controller_log_level is defined and controller_log_level is number %}
- name: LOG_LEVEL
value: "{{ controller_log_level }}"
Expand Down Expand Up @@ -107,10 +105,6 @@ spec:
name: {{ controller_configmap_name }}
image: {{ controller_image_fqin }}
imagePullPolicy: {{ image_pull_policy }}
ports:
- containerPort: 9876
name: webhook-server
protocol: TCP
resources:
limits:
cpu: {{ controller_container_limits_cpu }}
Expand All @@ -119,9 +113,6 @@ spec:
cpu: {{ controller_container_requests_cpu }}
memory: {{ controller_container_requests_memory }}
volumeMounts:
- mountPath: /tmp/cert
name: cert
readOnly: true
- mountPath: {{ profiler_volume_path }}
name: profiler
{% if k8s_cluster|bool %}
Expand Down Expand Up @@ -150,8 +141,6 @@ spec:
value: /var/run/secrets/{{ inventory_tls_secret_name }}/tls.key
- name: METRICS_PORT
value: '8082'
- name: SECRET_NAME
value: webhook-server-secret
- name: OVA_PROVIDER_SERVER_IMAGE
value: {{ ova_provider_server_fqin }}
{% if feature_validation|bool %}
Expand Down Expand Up @@ -208,10 +197,6 @@ spec:
{% endif %}
terminationGracePeriodSeconds: 10
volumes:
- name: cert
secret:
defaultMode: 420
secretName: webhook-server-secret
- name: {{ inventory_tls_secret_name }}
secret:
defaultMode: 420
Expand Down

This file was deleted.

0 comments on commit 931ef39

Please sign in to comment.