Skip to content

Kubernetes Secret and stringData #394

Answered by stefanprodan
bueti asked this question in Q&A
Discussion options

You must be logged in to vote

The configuration can be a CUE definition that gets converted to YAML, something like:

import "encoding/yaml"

#Config: {
    	cfg: #SomeConfig
}

#Instance: {
	config: #Config

	objects: {
		sa: #Secret & {#config: config}
}

#Secret: corev1.#Secret & {
	#config: #Config
	_cfgYAML: yaml.Marshal(#config.cfg)
}```

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@bueti
Comment options

Answer selected by bueti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants