Skip to content

Commit

Permalink
Update docs for plugin secrets management (#4732)
Browse files Browse the repository at this point in the history
Signed-off-by: Yee Hing Tong <[email protected]>
  • Loading branch information
wild-endeavor authored Jan 16, 2024
1 parent 03e94e9 commit 0c8dc61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
13 changes: 6 additions & 7 deletions docs/deployment/plugins/webapi/databricks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -288,32 +288,31 @@ Add the Databricks access token to FlytePropeller:
.. group-tab:: Helm chart

Create an external secret as follows:
Create a secret as follows (or add to it if it already exists from other plugins):

.. code-block:: bash
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
name: flyte-binary-client-secrets-external-secret
name: flyte-binary-external-services
namespace: flyte
type: Opaque
stringData:
FLYTE_DATABRICKS_API_TOKEN: <ACCESS_TOKEN>
EOF
Reference the newly created secret in
``.Values.configuration.auth.clientSecretsExternalSecretRef``
``.Values.configuration.inlineSecretRef``
in your YAML file as follows:
.. code-block:: yaml
:emphasize-lines: 3
:emphasize-lines: 2
configuration:
auth:
clientSecretsExternalSecretRef: flyte-binary-client-secrets-external-secret
inlineSecretRef: flyte-binary-external-services
Replace ``<ACCESS_TOKEN>`` with your access token.
.. group-tab:: Flyte core
Expand Down
13 changes: 6 additions & 7 deletions docs/deployment/plugins/webapi/snowflake.rst
Original file line number Diff line number Diff line change
Expand Up @@ -154,32 +154,31 @@ Then, add the Snowflake JWT token to FlytePropeller.
.. group-tab:: Helm chart

Create an external secret as follows:
Create a secret as follows (or add to it if it already exists from other plugins):

.. code-block:: bash
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
name: flyte-binary-client-secrets-external-secret
name: flyte-binary-external-services
namespace: flyte
type: Opaque
stringData:
FLYTE_SNOWFLAKE_CLIENT_TOKEN: <JWT_TOKEN>
EOF
Reference the newly created secret in
``.Values.configuration.auth.clientSecretsExternalSecretRef``
``.Values.configuration.inlineSecretRef``
in your YAML file as follows:
.. code-block:: yaml
:emphasize-lines: 3
:emphasize-lines: 2
configuration:
auth:
clientSecretsExternalSecretRef: flyte-binary-client-secrets-external-secret
inlineSecretRef: flyte-binary-external-services
Replace ``<JWT_TOKEN>`` with your JWT token.
.. group-tab:: Flyte core
Expand Down

0 comments on commit 0c8dc61

Please sign in to comment.