Add scoped LLDAP identity provisioner
This commit is contained in:
parent
86eed20012
commit
ba07dd2acb
7 changed files with 377 additions and 0 deletions
18
identity-provisioner/copy-client-secret.py
Normal file
18
identity-provisioner/copy-client-secret.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
"""Copy only the provisioner token into a namespace-local client Secret."""
|
||||
|
||||
import json
|
||||
import sys
|
||||
|
||||
|
||||
source = json.load(sys.stdin)
|
||||
target = {
|
||||
"apiVersion": "v1",
|
||||
"kind": "Secret",
|
||||
"metadata": {
|
||||
"name": "identity-provisioner-client",
|
||||
"namespace": "user-engine",
|
||||
},
|
||||
"type": "Opaque",
|
||||
"data": {"token": source["data"]["token"]},
|
||||
}
|
||||
json.dump(target, sys.stdout)
|
||||
Loading…
Add table
Add a link
Reference in a new issue