Skip to content
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

[Bug] [TASK_K8S] Unable to select k8s namespace #16745

Closed
2 of 3 tasks
youzif opened this issue Oct 28, 2024 · 8 comments
Closed
2 of 3 tasks

[Bug] [TASK_K8S] Unable to select k8s namespace #16745

youzif opened this issue Oct 28, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@youzif
Copy link

youzif commented Oct 28, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

Hi bro.
When I want to use k8s as a workflow, I find that there is no namespace to choose from. Does this mean that I cannot choose which k8s cluster or namespace to run this task in?

The picture below is a screenshot of my ds
image

The picture below is a screenshot of the ds official document
image

and Here are some error reports for tasks:
image

Version

3.2.2

Replenish

Cluster and namespace have been configured in DS
image
image

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@youzif youzif added bug Something isn't working Waiting for reply Waiting for reply labels Oct 28, 2024
@SbloodyS
Copy link
Member

PTAL, Thanks. @Gallardot

@SbloodyS SbloodyS added need to verify and removed Waiting for reply Waiting for reply labels Oct 28, 2024
@e7868a

This comment was marked as outdated.

@youzif
Copy link
Author

youzif commented Nov 6, 2024

I encountered the same issue while setting up a test environment with version 3.2.2. Initially, when I had not created any clusters or namespaces in DS, there was an option to select a namespace when creating a new workflow. However, after creating clusters and namespaces in DS, the namespace option disappeared when creating a new workflow.

did you find any solution?

@youzif
Copy link
Author

youzif commented Nov 6, 2024

According to the task execution, in fact, the namespace is not obtained.
image

image

@youzif
Copy link
Author

youzif commented Nov 6, 2024

@Gallardot could you provide some help?

@e7868a
Copy link

e7868a commented Nov 8, 2024

I discovered the reason in the code. To create a K8S-type task, you need to create a K8S-type data source within the "Datasource" section, rather than using the "K8S Namespace manage" option under "Security". However, in the UI code for version 3.2.2 (#16214), the K8S-type data source option has been removed, so it's not possible to create a K8S-type data source in this version.

@youzif
Copy link
Author

youzif commented Nov 11, 2024

I discovered the reason in the code. To create a K8S-type task, you need to create a K8S-type data source within the "Datasource" section, rather than using the "K8S Namespace manage" option under "Security". However, in the UI code for version 3.2.2 (#16214), the K8S-type data source option has been removed, so it's not possible to create a K8S-type data source in this version.

I think you are right, looking forward to fixing this in the new version

@SbloodyS
Copy link
Member

Fixed in dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants