Created
September 13, 2021 23:42
-
-
Save larsks/accf4d4faf9dc32f96c3c4e010bc63bb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kubernetes import client, config | |
from openshift import DynamicClient | |
config.load_incluster_config() | |
v1 = client.CoreV1Api() | |
mynode = v1.read_node(os.environ['NODE_NAME']) | |
print(mynode) | |
secrets = v1.list_namespaced_secrets('lars-sandbox') | |
print(secrets) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment