From 39f88bbf528ae1f13b053ae6d93f06a917a2cb29 Mon Sep 17 00:00:00 2001 From: Trong Huu Nguyen Date: Sat, 2 Nov 2024 11:45:37 +0100 Subject: [PATCH] chore: remove unused hacks --- hack/clients.yaml | 33 --------------------------------- hack/get-secrets.sh | 9 --------- 2 files changed, 42 deletions(-) delete mode 100644 hack/clients.yaml delete mode 100755 hack/get-secrets.sh diff --git a/hack/clients.yaml b/hack/clients.yaml deleted file mode 100644 index b012e35..0000000 --- a/hack/clients.yaml +++ /dev/null @@ -1,33 +0,0 @@ ---- -apiVersion: nais.io/v1 -kind: MaskinportenClient -metadata: - name: texas-client - namespace: nais-system -spec: - scopes: - consumes: - - name: "nav:test/api" - secretName: texas-client-maskinporten ---- -apiVersion: nais.io/v1 -kind: Jwker -metadata: - name: texas-client - namespace: nais-system -spec: - accessPolicy: - inbound: - rules: - - application: texas-client - secretName: texas-client-tokenx ---- -apiVersion: nais.io/v1 -kind: AzureAdApplication -metadata: - name: texas-client - namespace: nais-system -spec: - allowAllUsers: true - tenant: nav.no - secretName: texas-client-entra diff --git a/hack/get-secrets.sh b/hack/get-secrets.sh deleted file mode 100755 index a43b067..0000000 --- a/hack/get-secrets.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash - -if [ -f ".env" ] ; then - rm ".env" -fi - -kubectl get secret $(kubectl get azureapp texas-client --template='{{.spec.secretName}}') -o json | jq -r '.data | map_values(@base64d) | keys[] as $k | "\($k)=\(.[$k])"' >> .env -kubectl get secret $(kubectl get jwker texas-client --template='{{.spec.secretName}}') -o json | jq -r '.data | map_values(@base64d) | keys[] as $k | "\($k)=\(.[$k])"' >> .env -kubectl get secret $(kubectl get maskinportenclient texas-client --template='{{.spec.secretName}}') -o json | jq -r '.data | map_values(@base64d) | keys[] as $k | "\($k)=\(.[$k])"' >> .env