Skip to content

Commit 50e0eaa

Browse files
authored
Merge pull request #147 from pfnet/readme-multi-pricipal
Add to README about multiple principals
2 parents fbdbec9 + fc39c85 commit 50e0eaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The controller creates and refreshes short-lived credentials for container regis
88

99
![Overview](./docs/overview.png)
1010

11-
Image pull secrets provisioner watches Kubernetes ServiceAccounts and performs the following operations.
11+
Image pull secrets provisioner watches Kubernetes ServiceAccounts and performs the following operations for each principal.
1212

1313
1. Creates a ServiceAccount's token
1414
- The token is a signed JWT
@@ -100,6 +100,7 @@ rules:
100100
# Email address of the Google service account to which the Kubernetes ServiceAccount will impersonate
101101
imagepullsecrets.preferred.jp/googlecloud-service-account-email: [email protected]
102102
```
103+
- Principal annotations (`aws-role-arn` and `googlecloud-service-account-email`) can specify multiple principals separated by commas. Multiple image pull secrets will be provisioned for the ServiceAccount, one for each principal.
103104
3. Use the ServiceAccount for a pod by setting pod's `.spec.serviceAccountName` field
104105
```yaml
105106
apiVersion: v1

0 commit comments

Comments
 (0)