import n8s
# Import required k8s api
import n8s/api/io_k8s_api_core_v1
# Connect to kubernetes
let client = newClient()
# Prepare secret
var secret: Secret
secret.metadata.name = "test"
secret.data["password"] == "mypassword".ByteArray
# Create secret in kubernetes
secret = await client.create(secret)
# Get secret
secret = await client.get(Secret,"test")
# Watch secret for changes
let fs = await client.watch(Secret,"test")
-
Notifications
You must be signed in to change notification settings - Fork 0
Nim kubernetes client
License
wonderix/n8s
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Nim kubernetes client
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published