Skip to content

Commit

Permalink
Some nits
Browse files Browse the repository at this point in the history
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
  • Loading branch information
somtochiama committed Jun 3, 2022
1 parent 6c1cbcc commit 5b76c23
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions docs/spec/v1beta2/buckets.md
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,7 @@ export IDENTITY_RESOURCE_ID="$(az identity show -n ${IDENTITY_NAME} -otsv --quer
```

Create an `AzureIdentity` object that references the identity created above:

```yaml
---
apiVersion: aadpodidentity.k8s.io/v1
Expand All @@ -461,7 +462,8 @@ spec:
type: 0 # user-managed identity
```

Create an `AzureIdentityBinding` object that binds pods with a specific selector with the `AzureIdentity` created.
Create an `AzureIdentityBinding` object that binds pods with a specific selector with the `AzureIdentity` created:

```yaml
apiVersion: "aadpodidentity.k8s.io/v1"
kind: AzureIdentityBinding
Expand All @@ -472,7 +474,7 @@ spec:
selector: ${IDENTITY_NAME}
```

Label the source-controller correctly so that it can match an identity binding.
Label the source-controller correctly so that it can match an identity binding:

```yaml
apiVersion: apps/v1
Expand All @@ -487,7 +489,7 @@ spec:
aadpodidbinding: ${IDENTITY_NAME} # match the AzureIdentity name
```

Then you don't need to reference a secret
If you have set aad-pod-identity up correctly and labeled the source-controller pod, then you don't need to reference a secret.

```yaml
apiVersion: source.toolkit.fluxcd.io/v1beta2
Expand Down

0 comments on commit 5b76c23

Please sign in to comment.