Sanitizing Kubernetes resources into strings
See original GitHub issue/kind feature
Description:
Some Kubernetes resources such as V1EnvVar
for container environment variables only accept string, so we need to let the SDK to sanitize these variables into proper strings before dumping it to Tekton YAML.
The Kubernetes API docs defines what types are supported under the pod spec. https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.18/
/good-first-issue
Additional information: [Miscellaneous information that will assist in solving the issue.]
Issue Analytics
- State:
- Created 3 years ago
- Comments:11 (9 by maintainers)
Top Results From Across the Web
Resource Management for Pods and Containers - Kubernetes
When you specify the resource request for containers in a Pod, the kube-scheduler uses this information to decide which node to place the...
Read more >How to Manage Secrets in Kubernetes - A Complete Guide
When creating a Secret, you specify the data and/or stringData fields. The values for all the data field keys must be base64-encoded strings....
Read more >Manage Kubernetes Resources via Terraform
You can use the Terraform Kubernetes provider to interact with resources ... "hashicorp/kubernetes" } } } variable "host" { type = string }...
Read more >Use Go Templating in Kubernetes Manifests - Harness.io Docs
Quotation Marks. The following example puts quotations around whatever string is in the something value. · Verbatim. Use indent and toYaml ...
Read more >The Kubernetes executor for GitLab Runner
A table of key=value pairs in the format of string=string . This is the list of annotations to be added to each build...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes. For your initial PR, you can put your helper functions/modules under this file. https://github.com/kubeflow/kfp-tekton/blob/master/sdk/python/kfp_tekton/compiler/_k8s_helper.py
For #342, I want to offload some functions from big data passing since it’s growing too big, and hence you are seeing some issues popping up for artifact passing. You can address this in a follow-up PR if you’re interested.
thanks @jizg, here is the sdk setup https://github.com/kubeflow/kfp-tekton/tree/master/sdk