-
Notifications
You must be signed in to change notification settings - Fork 786
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
feat: Add option to customize local cluster name #1154
base: master
Are you sure you want to change the base?
feat: Add option to customize local cluster name #1154
Conversation
83c39c6
to
ea64f57
Compare
@svghadi Could you take a look at my PR when you get a chance? Thanks! |
Hi @ItsKev, Thanks for the PR. I will take a look at it this weekend. |
Hi @ItsKev, not sure I follow the pain point you're hitting - |
Hi @jaideepr97, thanks for the reply. This application.yaml: apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: guestbook
namespace: default
spec:
destination:
namespace: default
name: example-cluster
project: default
source:
path: helm-guestbook
repoURL: https://github.com/argoproj/argocd-example-apps.git
targetRevision: HEAD |
@svghadi @jaideepr97 any update on this? |
Hi @ItsKev, sorry the PR went unnoticed. Allow me some time. I am discussing internally on the crd structure for this. I will get back to you soon. |
Hi @ItsKev , could you update the field spec:
inClusterName: example-cluster to spec:
clusters:
local:
name: example-cluster This structure will be beneficial for future enhancements related to clusters. For example, if we decide to support configuring remote clusters during installation, this approach allows for easy expansion by introducing a new field like |
ecfc3df
to
a0e8dd7
Compare
Signed-off-by: Kevin Huber <[email protected]>
a0e8dd7
to
92127a8
Compare
Hi @svghadi I've changed the crd structure according to your inputs. apiVersion: argoproj.io/v1beta1
kind: ArgoCD
metadata:
name: argocd
spec:
clusters:
local:
name: example-cluster |
Hi @ItsKev, I have few ideas(mainly scripting) which could address your use-case without needing a code change. The |
@svghadi we are doing this internally already. I get the fear about a potential breaking change for existing users. Not sure though how we could achieve implementing this feature without those.. I'm happy to implement any potential solution, otherwise we probably have to close this PR. |
What type of PR is this?
/kind enhancement
What does this PR do / why we need it:
This PR introduces a method to specify the cluster name for Argo CD deployments. Previously, it defaulted to
in-cluster
.Our team creates templates for other DevOps teams in our company. One such template deploys the primary Argo CD instance in the production cluster, along with mock instances in testing and external clusters. These instances are labeled "in-cluster," "testing," and "external." This labeling has caused confusion due to the absence of a "production" label. Renaming "in-cluster" to "production" will resolve this issue.
Have you updated the necessary documentation?
Which issue(s) this PR fixes:
Fixes #1093
How to test changes / Special notes to the reviewer:
Deploy the ArgoCD custom resource below and confirm that
example-cluster
is set as the name in theexample-argocd-default-cluster-config
secret.