Skip to content

Commit

Permalink
Merge pull request #155 from ClubCedille/feature/merge-omni-acl
Browse files Browse the repository at this point in the history
merge omni acls
  • Loading branch information
Simon-Boyer authored Mar 29, 2024
2 parents e9d1408 + 4711c6c commit d783953
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/apply-omni.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
curl -L -o omnictl https://cedille.omni.siderolabs.io/omnictl/omnictl-linux-amd64
chmod +x omnictl
- run: |
for i in omni/*.yaml; do ./omnictl apply -f "$i"; done
eval-all '. as $item ireduce ({}; . *+ $item )' omni/*.acl.yaml | ./omnictl apply -f -
env:
OMNI_ENDPOINT: ${{vars.OMNI_ENDPOINT}}
OMNI_SERVICE_ACCOUNT_KEY: ${{secrets.OMNI_SERVICE_ACCOUNT_KEY}}
4 changes: 4 additions & 0 deletions omni/base.acl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
"metadata":
"id": "omni-acl"
"namespace": "default"
"type": "AccessPolicies.omni.sidero.dev"
5 changes: 0 additions & 5 deletions omni/compilade.acl.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# MANAGED BY TERRAFORM; DO NOT MODIFY
"metadata":
"id": "compilade-acl"
"namespace": "default"
"type": "AccessPolicies.omni.sidero.dev"
"spec":
"rules":
- "clusters":
Expand Down
4 changes: 0 additions & 4 deletions omni/lamiphil.acl.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# MANAGED BY TERRAFORM; DO NOT MODIFY
"metadata":
"id": "lamiphil-acl"
"namespace": "default"
"type": "AccessPolicies.omni.sidero.dev"
"spec":
"rules":
- "clusters":
Expand Down
5 changes: 0 additions & 5 deletions terraform/modules/user/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ resource "github_repository_file" "omni_acl" {
content = join("\n", [
"# MANAGED BY TERRAFORM; DO NOT MODIFY",
yamlencode({
metadata = {
namespace = "default"
type = "AccessPolicies.omni.sidero.dev"
id = "${var.github_username}-acl"
}
spec = {
rules = [{
users = [var.github_email]
Expand Down

0 comments on commit d783953

Please sign in to comment.