github.com/oam-dev/kubevela@v1.9.11/docs/examples/config/dex-connector/README.md (about)

     1  # How to config a dex connector
     2  
     3  * Step 1: Make sure there is a dex-connector template
     4  
     5  ```bash
     6  $ vela config-template list -A
     7  NAMESPACE       NAME                    ALIAS                                   SCOPE   SENSITIVE       CREATED-TIME                 
     8  vela-system     dex-connector           Dex Connector                           system  false           2022-10-12 23:48:05 +0800 CST
     9  vela-system     helm-repository         Helm Repository                         project false           2022-10-14 12:04:58 +0800 CST
    10  vela-system     image-registry          Image Registry                          project false           2022-10-13 15:39:37 +0800 CST
    11  
    12  # View the document of the properties
    13  $ vela config-template show dex-connector
    14  ```
    15  
    16  If not exist, please enable the dex addon firstly.
    17  
    18  * Step 2: Create a config
    19  
    20  ```bash
    21  # Create a connector config
    22  $ vela config create github-oauth --template dex-connector type=github github.clientID=*** github.clientSecret=*** github.redirectURI=***
    23  ```
    24  
    25  Write a yaml file to create the config.
    26  
    27  ```bash
    28  $ cat>github.yaml<<EOF
    29  
    30  github:
    31    clientID: ***
    32    clientSecret: ***
    33    redirectURI: ***
    34  EOF
    35  
    36  $ vela config create github-oauth --template dex-connector type=github -f github.yaml
    37  ```