Skip to content

Commit

Permalink
refactor: Remove roles & bindings (out-of-date PSPs)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Christie committed Dec 3, 2024
1 parent a301135 commit 6ac6e91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 39 deletions.
24 changes: 10 additions & 14 deletions roles/fragalysis-stack/tasks/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,6 @@
loop:
- namespace
- serviceaccount
- role
- rolebinding-stack-sa

- name: Relax {{ stack_namespace }} 'default' service account (for cert-manager)
k8s:
definition: "{{ lookup('template', 'rolebinding-default-sa.yaml.j2') }}"
wait: yes

# Deploy a database?
# Yes if the user hasn't set an explicit host
Expand All @@ -58,12 +51,15 @@
import_tasks: deploy-database.yaml
when: database_host|string|length == 0

# Now (optionally) deploy the stack

- name: Deploy redis
import_tasks: deploy-redis.yaml
when: not stack_skip_deploy|bool
# Now (optionally) deploy redis and the stack

- name: Deploy the stack
import_tasks: deploy-stack.yaml
when: not stack_skip_deploy|bool
block:

- name: Deploy redis

Check failure on line 59 in roles/fragalysis-stack/tasks/deploy.yaml

View workflow job for this annotation

GitHub Actions / build (3.11)

59:5 [indentation] wrong indentation: expected 2 but found 4
import_tasks: deploy-redis.yaml

- name: Deploy the stack
import_tasks: deploy-stack.yaml

when: not stack_skip_deploy | bool
11 changes: 0 additions & 11 deletions roles/fragalysis-stack/templates/role.yaml.j2

This file was deleted.

14 changes: 0 additions & 14 deletions roles/fragalysis-stack/templates/rolebinding-stack-sa.yaml.j2

This file was deleted.

0 comments on commit 6ac6e91

Please sign in to comment.