Skip to content

Commit

Permalink
chore: set operator-watch-namespace with flag in kustomize
Browse files Browse the repository at this point in the history
  • Loading branch information
H777K committed Nov 20, 2023
1 parent 74d4693 commit 6947524
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export GARM_OPERATOR_VERSION=<garm-operator-version>
export GARM_SERVER_URL=<garm-server-url>
export GARM_SERVER_USERNAME=<garm-server-username>
export GARM_SERVER_PASSWORD=<garm-server-password>
export OPERATOR_WATCH_NAMESPACE=<operator-watch-namespace>
curl -L https://github.com/mercedes-benz/garm-operator/releases/download/${GARM_OPERATOR_VERSION}/garm-operator-all.yaml | envsubst | kubectl apply -f -
```

Expand Down
5 changes: 1 addition & 4 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,11 @@ spec:
- --garm-server=$GARM_SERVER_URL
- --garm-username=$GARM_SERVER_USERNAME
- --garm-password=$GARM_SERVER_PASSWORD
- --operator-watch-namespace=$OPERATOR_WATCH_NAMESPACE
image: controller:latest
env:
- name: OPERATOR_CREATE_WEBHOOK
value: "true"
- name: OPERATOR_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
name: manager
securityContext:
allowPrivilegeEscalation: false
Expand Down

0 comments on commit 6947524

Please sign in to comment.