-
Notifications
You must be signed in to change notification settings - Fork 24
feat: Add gitops environments resource #170
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
base: master
Are you sure you want to change the base?
Conversation
/test |
/test |
i reviewed the platform side looks good to me |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
"server": { | ||
Type: schema.TypeString, | ||
Optional: true, | ||
Description: "Target cluster server url. Defaults to `https://kubernetes.default.svc` which is the default in-cluster url", | ||
Default: "https://kubernetes.default.svc", | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
server
should always correspond to the server of ArgoCD cluster we put in name
and we don't have any validation for it on the backend. Putting random address in server
can result in weird bug when in our UI we see that environment configured with cluster X, but inside it has apps from cluster Y.
What I think we should do is to remove "server" from graphql mutation input and derive it from the DB according to the provided cluster name. It should be easy change on backend side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@denis-codefresh I agree. I did the implementation according to the current schema and it's a mandatory field
What
Why
Notes
Checklist
/test
comment will be ignored by the CI trigger unless it is made by a repo admin or collaborator.