We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c65156c + db0c68d commit c3b7580Copy full SHA for c3b7580
3 files changed
config/manager/kustomization.yaml
@@ -6,4 +6,4 @@ kind: Kustomization
6
images:
7
- name: controller
8
newName: ghcr.io/snapp-incubator/argocd-complementary-operator
9
- newTag: 0.5.2
+ newTag: 0.5.3
internal/controller/common_unit_test.go
@@ -374,6 +374,9 @@ func TestCreateAppProjStructure(t *testing.T) {
374
expectedPolicies := []string{
375
"p, proj:team-x:team-x-sync, applications, get, team-x/*, allow",
376
"p, proj:team-x:team-x-sync, applications, sync, team-x/*, allow",
377
+ "p, proj:team-x:team-x-sync, applications, action/apps/Deployment/restart, team-x/*, allow",
378
+ "p, proj:team-x:team-x-sync, applications, action/apps/StatefulSet/restart, team-x/*, allow",
379
+ "p, proj:team-x:team-x-sync, applications, action/apps/DaemonSet/restart, team-x/*, allow",
380
"p, proj:team-x:team-x-sync, repositories, get, team-x/*, allow",
381
"p, proj:team-x:team-x-sync, logs, get, team-x/*, allow",
382
}
internal/controller/controller_common.go
@@ -173,6 +173,9 @@ func createAppProj(team string) *argov1alpha1.AppProject {
173
Policies: []string{
174
"p, proj:" + team + ":" + team + "-sync, applications, get, " + team + "/*, allow",
175
"p, proj:" + team + ":" + team + "-sync, applications, sync, " + team + "/*, allow",
176
+ "p, proj:" + team + ":" + team + "-sync, applications, action/apps/Deployment/restart, " + team + "/*, allow",
177
+ "p, proj:" + team + ":" + team + "-sync, applications, action/apps/StatefulSet/restart, " + team + "/*, allow",
178
+ "p, proj:" + team + ":" + team + "-sync, applications, action/apps/DaemonSet/restart, " + team + "/*, allow",
179
"p, proj:" + team + ":" + team + "-sync, repositories, get, " + team + "/*, allow",
180
"p, proj:" + team + ":" + team + "-sync, logs, get, " + team + "/*, allow",
181
},
0 commit comments