question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Tomclicommented, Oct 23, 2020

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.

1reaction
Tomclicommented, Oct 21, 2020
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found