Skip to content

Commit

Permalink
Fix up permissions in chart
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnGarbutt committed Mar 11, 2024
1 parent f807e5c commit 312f4cb
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion charts/operator/templates/clusterrole-edit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ metadata:
rbac.authorization.k8s.io/aggregate-to-view: "true"
rules:
# Grant access to the azimuth-schedule objects
- apiGroups: ["schedule.azimuth.stackhpc.com"]
- apiGroups: ["scheduling.azimuth.stackhpc.com"]
resources: ["*"]
verbs: ["*"]
2 changes: 1 addition & 1 deletion charts/operator/templates/clusterrole-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rules:
resources: ["events"]
verbs: ["create"]
# Required by azimuth-schedule
- apiGroups: ["schedule.azimuth.stackhpc.com"]
- apiGroups: ["scheduling.azimuth.stackhpc.com"]
resources: ["*"]
verbs: ["*"]
- apiGroups: ["caas.azimuth.stackhpc.com"]
Expand Down
2 changes: 1 addition & 1 deletion charts/operator/templates/clusterrole-view.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ metadata:
rbac.authorization.k8s.io/aggregate-to-view: "true"
rules:
# Grant access to the azimuth-schedule objects
- apiGroups: ["schedule.azimuth.stackhpc.com"]
- apiGroups: ["scheduling.azimuth.stackhpc.com"]
resources: ["*"]
verbs: ["get", "list", "watch"]
7 changes: 2 additions & 5 deletions tools/functional_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ helm upgrade azimuth-schedule-operator ./charts/operator \
--install \
--wait \
--timeout 10m \
--set-string image.tag=${GITHUB_SHA::7} \
--set-string config.ansibleRunnerImage.tag=${GITHUB_SHA::7} \
--set-string ara.image.tag=${GITHUB_SHA::7} \
--set-string config.consulUrl=fakeconsul
--set-string image.tag=${GITHUB_SHA::7}

until [ `kubectl get crds | grep schedule | wc -l` -gt 1 ]; do echo "wait for crds"; sleep 5; done
kubectl get crds

kubectl apply -f $SCRIPT_DIR/test_schedule.yaml
# until kubectl wait --for=jsonpath='{.status.phase}'=Available clustertype quick-test; do echo "wait for status to appear"; sleep 5; done
kubectl get schedule caas-cluster -o yaml
kubectl get schedule caas-cluster -o yaml

0 comments on commit 312f4cb

Please sign in to comment.