Skip to content

Commit

Permalink
Update hack/ version of embedded-resources
Browse files Browse the repository at this point in the history
Updated scripts to use more-portable `/usr/bin/env bash`. Was necessary
to run the scripts from nixos (no /bin/bash).

Signed-off-by: Bradon Kanyid (rattboi) <[email protected]>
  • Loading branch information
rattboi committed May 14, 2024
1 parent beb67b1 commit b0941a9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions hack/argo-cd/argocd-cm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ metadata:
name: argocd-cm
data:
application.resourceTrackingMethod: annotation
kustomize.buildOptions: --enable-helm
resource.exclusions: |
- kinds:
- ProviderConfigUsage
Expand Down
2 changes: 1 addition & 1 deletion hack/argo-cd/generate-manifests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

INSTALL_YAML="pkg/controllers/localbuild/resources/argo/install.yaml"
INGRESS_YAML="pkg/controllers/localbuild/resources/argo/ingress.yaml"
Expand Down
4 changes: 2 additions & 2 deletions hack/embedded-resources.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

DIRECTORIES='argo-cd gitea ingress-nginx'

Expand All @@ -8,4 +8,4 @@ for dir in $DIRECTORIES; do
echo "error running script: ./hack/$dir/generate-manifests.sh"
exit 1
fi
done
done
2 changes: 1 addition & 1 deletion hack/gitea/generate-manifests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash
set -e

INSTALL_YAML="pkg/controllers/localbuild/resources/gitea/k8s/install.yaml"
Expand Down
2 changes: 1 addition & 1 deletion hack/ingress-nginx/generate-manifests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/usr/bin/env bash

INSTALL_YAML="pkg/controllers/localbuild/resources/nginx/k8s/ingress-nginx.yaml"
NGINX_DIR="./hack/ingress-nginx"
Expand Down

0 comments on commit b0941a9

Please sign in to comment.