Skip to content

Commit

Permalink
fix: Add net policy rbac and remove auth from sentinel script (#1383) (
Browse files Browse the repository at this point in the history
…#1385)

* Add missing networkpolicy rbac for operator-manager



* Fix sentinel liveness script



---------

Signed-off-by: Siddhesh Ghadi <[email protected]>
Co-authored-by: Siddhesh Ghadi <[email protected]>
  • Loading branch information
gcp-cherry-pick-bot[bot] and svghadi authored Jun 4, 2024
1 parent bc233a4 commit bc536d6
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
1 change: 0 additions & 1 deletion build/redis/sentinel_liveness.sh.tpl
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
response=$(
redis-cli \
-a "${AUTH}" --no-auth-warning \
-h localhost \
-p 26379 \
{{- if eq .UseTLS "true"}}
Expand Down
12 changes: 12 additions & 0 deletions bundle/manifests/argocd-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,18 @@ spec:
- ingresses
verbs:
- '*'
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- oauth.openshift.io
resources:
Expand Down
12 changes: 12 additions & 0 deletions config/rbac/role.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,18 @@ rules:
- ingresses
verbs:
- '*'
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- oauth.openshift.io
resources:
Expand Down
1 change: 1 addition & 0 deletions controllers/argocd/argocd_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ var ActiveInstanceMap = make(map[string]string)
//+kubebuilder:rbac:groups=batch,resources=cronjobs;jobs,verbs=*
//+kubebuilder:rbac:groups=config.openshift.io,resources=clusterversions,verbs=get;list;watch
//+kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses,verbs=*
//+kubebuilder:rbac:groups=networking.k8s.io,resources=networkpolicies,verbs=create;delete;get;list;patch;update;watch;
//+kubebuilder:rbac:groups=monitoring.coreos.com,resources=prometheuses;prometheusrules;servicemonitors,verbs=*
//+kubebuilder:rbac:groups=route.openshift.io,resources=routes;routes/custom-host,verbs=*
//+kubebuilder:rbac:groups=argoproj.io,resources=applications;appprojects,verbs=*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1799,6 +1799,18 @@ spec:
- ingresses
verbs:
- '*'
- apiGroups:
- networking.k8s.io
resources:
- networkpolicies
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- oauth.openshift.io
resources:
Expand Down

0 comments on commit bc536d6

Please sign in to comment.