-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7a48fa
commit ec29853
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
eks-anywhere-common/Addons/Partner/dynatrace/dynatrace-operator/external-secrets.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: dynatrace-external-secret | ||
namespace: dynatrace | ||
spec: | ||
refreshInterval: 1m | ||
secretStoreRef: | ||
name: eksa-secret-store #The secret store name we have just created. | ||
kind: ClusterSecretStore | ||
target: | ||
name: dt-secret # Secret name in k8s | ||
dataFrom: | ||
- extract: | ||
# we expect an external secret in the following format | ||
# {"apiToken":"sometoken","dataIngestToken":"anothertoken"} | ||
key: dt-tokens-secret | ||
--- | ||
apiVersion: external-secrets.io/v1beta1 | ||
kind: ExternalSecret | ||
metadata: | ||
name: dynatrace-apiurl-external-secret | ||
namespace: flux-system | ||
spec: | ||
refreshInterval: 1m | ||
secretStoreRef: | ||
name: eksa-secret-store #The secret store name we have just created. | ||
kind: ClusterSecretStore | ||
target: | ||
name: dynatrace-apiurl # Secret name in k8s | ||
data: | ||
- secretKey: apiurl | ||
remoteRef: | ||
key: dynatrace-apiurl |