kubesphere / kubesphere/ks-devops

The actual namespace of the deployment in "Continuous Deployments" is not the same as the configured "deployment location"

Open
#665 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/improvement
Dominant language
Go
Stars
164
Forks
140
PR merge metrics
No merged PRs in 30d

Description

What is version of KubeSphere DevOps has the issue?

v3.3.0-rc.2

How did you install the Kubernetes? Or what is the Kubernetes distribution?

No response

What happened?

First, I set up the deployment location which is named pro.
image

But this deployment was deployed into osf2f-system, and the pro was also created.
image

I don't know if it is because there is a namespace value osf2f-system in the kustomization.yaml, maybe it should need to override that.
image

A more serious situation is if I create 2 "Continuous Deployments" which both set up the same namespace value in the kustomization.yaml as the above, they will be deployed into one namespace even though I set a different "deployment location".
image

They were all deployed to osf2f-system.
image

Relevant log output

No response

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the deployment using two Continuous Deployments with different deployment locations and the same namespace in kustomization.yaml. Trace how the configured deployment location and kustomization.yaml namespace are consumed, then verify that each deployment is created in its selected namespace without merging into the configured namespace.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes, yaml
Domain
devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.