-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[kubernetes_platform] Error calling kubernetes.use_secret_as_env and use_secret_as_volume with secret name as parameter #10914
Comments
As a workaround, we add hard-coded names of CM/Secrets in pipelines, so moving to a new CM/Secret requires updating/compilation and deployment of a pipeline. |
/assign @DharmitD |
@diegolovison and I tested out the first example with kfp sdk version 2.2.0 and kfp-kubernetes version 1.0.0. We noticed that the environment variable setting is incorrect in the example, find details here. With that correction, we were able to successfully run the first example and spin up a Pipeline and a run. Second scenario is the one that is failing, this is the error observed on attempting to complle the second example: Will investigate this error further and debug it. |
proof of concept for supporting parameter inputs in kfp-kubernetes. We've added support first to secret.py. Ref: kubeflow#10534 Ref: kubeflow#10914
Created a solution in this PR to update @gregsheremeta and I further investigated and realized that the attempt to pass in a secret name as a parameter must be to have the secret name dynamically specified at runtime, and not just have it hardcoded in the DSL compile every time. This would require an additional backend driver code change, we've implemented the driver + SDK code change in a PoC PR. In this PoC, we have defined a string representation for secret name -
This We've covered multiple test cases on how secret name could be specified in the We will present this PoC in the upcoming KFP community meeting. |
I think we've also partially implemented #10534. Note that @Tomcli suggests
so we might want to go from |
We talked about this in the KFP community call today, and @chensun suggested an alternative approach to using templating. He's going to post an example here (thanks Chen!) |
Signed-off-by: Constantin M Adam <[email protected]>
Signed-off-by: Constantin M Adam <[email protected]>
We get the following error running the program from the example with the change of passing the secret name as a parameter:
Environment
2.2.0
Steps to reproduce
run the following example:
It also happens when running the following program:
Expected result
not produce an error
Materials and Reference
Impacted by this bug? Give it a 👍.
The text was updated successfully, but these errors were encountered: