fix: Trim digest when applying pinniped manifest; Add ingressroute
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Danny Bessems 2023-08-21 11:59:41 +02:00
parent 87eb5e0dd7
commit b17501ee1d

View File

@ -1 +1,37 @@
#
- name: Trim container image digests
ansible.builtin.lineinfile:
path: "{{ item }}"
regexp: "([ ]+image: (.*))@sha256:.*"
line: "\\1"
state: present
backrefs: yes
loop: "{{ query('ansible.builtin.fileglob', '/opt/metacluster/pinniped/*.yaml') }}"
- name: Install supervisor
kubernetes.core.k8s:
src: /opt/metacluster/pinniped/pinniped-supervisor.yaml
state: present
wait: yes
kubeconfig: "{{ kubeconfig.path }}"
- name: Add ingress for supervisor
kubernetes.core.k8s:
template: "ingressroute.j2"
state: present
kubeconfig: "{{ kubeconfig.path }}"
vars:
_template:
name: pinniped-supervisor-api
namespace: pinniped-supervisor
config: |2
entryPoints:
- web
- websecure
routes:
- kind: Rule
match: Host(`auth.{{ vapp['metacluster.fqdn'] }}`)
services:
- kind: Service
name: pinniped-supervisor-api
namespace: pinniped-supervisor
port: 443