Skip to content

Commit

Permalink
added sample service-account authentication secret
Browse files Browse the repository at this point in the history
Signed-off-by: dislbenn <[email protected]>
  • Loading branch information
dislbenn committed Aug 15, 2024
1 parent bdc662a commit e245124
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/samples/ocm-api-secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

apiVersion: v1
data:
auth_method: offline-token
ocmAPIToken: ENCRYPTED_TOKEN
kind: Secret
metadata:
Expand Down
15 changes: 15 additions & 0 deletions config/samples/ocm-api-serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright Contributors to the Open Cluster Management project

apiVersion: v1
data:
auth_method: service-account
client_id: ENCRYPTED_CLIENT_ID
client_secret: ENCRYPTED_CLIENT_SECRET
kind: Secret
metadata:
labels:
cluster.open-cluster-management.io/credentials: ''
cluster.open-cluster-management.io/type: rhocm
name: ocm-api-service-account
namespace: NAMESPACE
type: Opaque

0 comments on commit e245124

Please sign in to comment.