Skip to content

Commit

Permalink
Merge pull request #334 from alecmerdler/fix-objectstorage
Browse files Browse the repository at this point in the history
Add RBAC Permission for Jobs
  • Loading branch information
alecmerdler authored Oct 21, 2020
2 parents edba5e8 + b39211c commit 080558d
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ spec:
- kind: ReplicaSet
- kind: Pod
- kind: Secret
- Kind: Job
- kind: ConfigMap
- kind: PersistentVolumeClaim
- kind: Ingress
Expand Down Expand Up @@ -190,6 +191,12 @@ spec:
- objectbucketclaims
verbs:
- '*'
- apiGroups:
- batch
resources:
- jobs
verbs:
- '*'
serviceAccountName: quay-operator
strategy: deployment
installModes:
Expand Down
13 changes: 7 additions & 6 deletions pkg/kustomize/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,12 +167,13 @@ func FieldGroupFor(component string, quay *v1.QuayRegistry) (shared.FieldGroup,
"local_us": {
Name: "RadosGWStorage",
Args: &shared.DistributedStorageArgs{
Hostname: hostname,
IsSecure: true,
Port: 443,
BucketName: bucketName,
AccessKey: accessKey,
SecretKey: secretKey,
Hostname: hostname,
IsSecure: true,
Port: 443,
BucketName: bucketName,
AccessKey: accessKey,
SecretKey: secretKey,
StoragePath: "/datastorage/registry",
},
},
},
Expand Down
13 changes: 7 additions & 6 deletions pkg/kustomize/secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,13 @@ var fieldGroupForTests = []struct {
"local_us": {
Name: "RadosGWStorage",
Args: &shared.DistributedStorageArgs{
AccessKey: "abc123",
BucketName: "quay-datastore",
Hostname: "s3.noobaa.svc",
IsSecure: true,
Port: 443,
SecretKey: "super-secret",
AccessKey: "abc123",
BucketName: "quay-datastore",
Hostname: "s3.noobaa.svc",
IsSecure: true,
Port: 443,
SecretKey: "super-secret",
StoragePath: "/datastorage/registry",
},
},
},
Expand Down

0 comments on commit 080558d

Please sign in to comment.