Skip to content

Commit

Permalink
Add note on configuring provider service accounts
Browse files Browse the repository at this point in the history
Signed-off-by: Hasan Turken <turkenh@gmail.com>
  • Loading branch information
turkenh committed Sep 11, 2024
1 parent 5dbfab8 commit c380f74
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions content/master/concepts/providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,20 @@ spec:
name: my-service-account
```

{{<hint "important" >}}
Setting the `serviceAccountTemplate.metadata.name` field will override the
the name of service account created by the package manager and used in the
provider deployment. The package manager will own that service account and
will be fighting to take ownership if there are other owners. A common mistake
is configuring the same service account for multiple packages in this way
which ends up frequent reconciliation loops and loads on the API server.

If you just want to use an existing service account, you should instead only
set the `deploymentTemplate.spec.template.spec.serviceAccountName` field.
Crossplane will then use the existing service account without taking the ownership
and still take care of binding the necessary permissions.
{{</hint >}}

### Provider configuration

The `ProviderConfig` determines settings the Provider uses communicating to the
Expand Down

0 comments on commit c380f74

Please sign in to comment.