diff --git a/docs/usage/Targets.md b/docs/usage/Targets.md index 23e77e678..1d4edb4a3 100644 --- a/docs/usage/Targets.md +++ b/docs/usage/Targets.md @@ -221,7 +221,6 @@ On the resource cluster you define a Service Account like the following: ```yaml apiVersion: v1 - kind: ServiceAccount metadata: name: # e.g. test-service-account @@ -232,6 +231,7 @@ On the target cluster (not the resource cluster!) you define the cluster role bi service account on the resource cluster, e.g. as follows: ```yaml +apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: @@ -253,7 +253,6 @@ And now it is time to define an OIDC Target on the resource cluster: ```yaml apiVersion: landscaper.gardener.cloud/v1alpha1 - kind: Target metadata: name: @@ -261,14 +260,15 @@ metadata: spec: config: - audience: - - - caData: LS... # ca data of the target cluster - server: # https://api.... - serviceAccount: - name: - namespace: # might be different from the Target namespace - expirationSeconds: # optional, defaults to 86400 = 60 * 60 * 24 + oidcConfig: + audience: + - + caData: LS... # ca data of the target cluster + server: # https://api.... + serviceAccount: + name: + namespace: # might be different from the Target namespace + expirationSeconds: # optional, defaults to 86400 = 60 * 60 * 24 type: landscaper.gardener.cloud/kubernetes-cluster ```