damp-lion-88352
10/20/2023, 3:36 PMflytectl demo start
and use
kubectl edit secret flyte-sandbox-config-secret -n flyte
apiVersion: v1
data:
012-database-secrets.yaml: ZGF0YWJhc2U6CiAgcG9zdGdyZXM6CiAgICBwYXNzd29yZDogInBvc3RncmVzIgo=
013-storage-secrets.yaml: c3RvcmFnZToKICBzdG93OgogICAgY29uZmlnOgogICAgICBhY2Nlc3Nfa2V5X2lkOiAibWluaW8iCiAgICAgIHNlY3JldF9rZXk6ICJtaW5pb3N0b3JhZ2UiCg==
bearer_token: <BASE64_ENCODED_TWITTER_BEARER_TOKEN>
consumer_key: <BASE64_ENCODED_TWITTER_CONSUMER_KEY>
consumer_secret: <BASE64_ENCODED_TWITTER_CONSUMER_SECRET>
access_token: <BASE64_ENCODED_TWITTER_ACCESS_TOKEN>
access_token_secret: <BASE64_ENCODED_TWITTER_ACCESS_TOKEN_SECRET>
to add 5 secrets from bearer_token
to access_token_secret
However, when I tried to retrieve the secret, it fails.
Here is the error message.
Can anyone help me?
I will update the docs for secret setting to help others!
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/flytekit/exceptions/scopes.py", line 206, in user_entry_point
return wrapped(*args, **kwargs)
File "/root/test.py", line 5, in t1
return flytekit.current_context().secrets.get("BEARER_TOKEN")
File "/usr/local/lib/python3.9/site-packages/flytekit/core/context_manager.py", line 365, in get
raise ValueError(
Message:
Unable to find secret for key None in group BEARER_TOKEN in Env Var:_FSEC_BEARER_TOKEN and FilePath: /etc/secrets/bearer_token
User error.
abundant-laptop-64153
10/20/2023, 3:39 PMflyte
), but would need to be in <flyte-project>-<flyte-domain>
cold-train-21872
10/20/2023, 8:28 PMtall-lock-23197
damp-lion-88352
10/24/2023, 7:05 AMdamp-lion-88352
10/24/2023, 7:05 AMtall-lock-23197
tall-lock-23197
damp-lion-88352
10/24/2023, 8:55 AMdamp-lion-88352
10/24/2023, 12:21 PM