generator-acr.yaml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. apiVersion: generators.external-secrets.io/v1alpha1
  2. kind: ACRAccessToken
  3. spec:
  4. tenantId: 11111111-2222-3333-4444-111111111111
  5. registry: example.azurecr.io
  6. # optional; scope token down to a single repository/action
  7. # if set, it will generate an access token instead of an refresh token.
  8. scope: "repository:foo:pull,push"
  9. # Specify Azure cloud type, defaults to PublicCloud.
  10. # This is used for authenticating with Azure Active Directory.
  11. # available options: PublicCloud, USGovernmentCloud, ChinaCloud, GermanCloud
  12. environmentType: "PublicCloud"
  13. # choose one authentication method
  14. auth:
  15. # option 1: point to a secret that contains a client-id and client-secret
  16. servicePrincipal:
  17. secretRef:
  18. clientSecret:
  19. name: az-secret
  20. key: clientsecret
  21. clientId:
  22. name: az-secret
  23. key: clientid
  24. # option 2:
  25. managedIdentity:
  26. identityId: "xxxxx"
  27. # option 3:
  28. workloadIdentity:
  29. # note: you can reference service accounts across namespaces.
  30. serviceAccountRef:
  31. name: "my-service-account"
  32. audiences: []