Skip to content

Commit

Permalink
deploy.sh to go code to fix gosec related issues
Browse files Browse the repository at this point in the history
Signed-off-by: Max Rantil <[email protected]>
  • Loading branch information
Max Rantil committed Mar 22, 2024
1 parent 06f7d39 commit 0e73b3b
Show file tree
Hide file tree
Showing 6 changed files with 687 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Kustomizations for Baremetal Operator

This folder contains kustomizations for the Baremetal Operator. They have
traditionally been used through the [deploy.sh](../tools/deploy.sh) script,
been used through the [deploy.go](../tools/deploy.go) program,
which takes care of generating the necessary config for basic-auth and TLS.
However, a more GitOps friendly way would be to create your own static overlay.
Check the `overlays/e2e` for an example that is used in the e2e tests.
Expand Down
4 changes: 3 additions & 1 deletion docs/deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ for you.
Then run :

```sh
./tools/deploy.sh [-b -i -t -n -k]
go build -o tools/deploy tools/deploy.go
./tools/deploy [-h] [-b] [-i] [-t] [-n] [-k]
```

- `-h`: show help message
- `-b`: deploy BMO
- `-i`: deploy Ironic
- `-t`: deploy with TLS enabled
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ require (
github.com/stretchr/testify v1.9.0
go.etcd.io/etcd/client/pkg/v3 v3.5.12
go.uber.org/zap v1.27.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.28.5
k8s.io/apimachinery v0.28.5
k8s.io/client-go v0.28.5
Expand Down Expand Up @@ -70,7 +71,6 @@ require (
google.golang.org/protobuf v1.32.0 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/apiextensions-apiserver v0.28.3 // indirect
k8s.io/kube-openapi v0.0.0-20230717233707-2695361300d9 // indirect
sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
Expand Down
2 changes: 1 addition & 1 deletion ironic-deployment/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Kustomizations for Ironic

This folder contains kustomizations for Ironic. They are mainly used
through the [deploy.sh](../tools/deploy.sh) script, which takes care of
through the [deploy.go](../tools/deploy.go) program, which takes care of
generating the necessary config for basic-auth and TLS.

- **base** - This is the kustomize base that we start from.
Expand Down
Loading

0 comments on commit 0e73b3b

Please sign in to comment.