-
Notifications
You must be signed in to change notification settings - Fork 26
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
Add clusterId and checks for KubernetesOperators registration #474
base: main
Are you sure you want to change the base?
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
4af89d0
to
c3a2b49
Compare
@@ -62,6 +62,7 @@ spec: | |||
- /api-manager | |||
args: | |||
- --release-name={{ .Release.Name }} | |||
- --cluster-id={{ .Values.clusterId | required "Missing required .Values.clusterId!"}} |
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.
I think we need a way to have this not be supplied for an initial install. The requirements we talked about in slack are detained a bit better by this old issue where we resolved the issue that we required an authtoken and API key on start #317
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.
I'm reading from that issue that the desire is the ngrok-operator can be installed into a non-functional/non-reconciling state and we give an error event on the kind: KubernetesOperator
itself.
Is that what you mean?
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.
yep, i think something like that would fufill the requirements. Similarly, if you one click install, the operator is just going to log and event that it needs the credentias I believe. The idea is a helm instal without custom options should "just work" to at least helm install, but it may not fully function.
07213d8
to
f7b93b0
Compare
3059edc
to
68b56c1
Compare
8a5fcee
to
efcd88d
Compare
efcd88d
to
aed91da
Compare
aed91da
to
58e0bd0
Compare
What
Describe what the change is solving
During k8sop registration we try to match the k8sop in ngrok API with the configured KubernetesOperator in ngrok-operator.
Currently we're matching on:
But, the operator name and namespace may be the same (likely) in different clusters, however we do not have a field to check for cluster name/id.
So this PR tentatively adds that feature (but doesn't implement the ngrok API side of things just yet).
How
Describe the solution
Breaking Changes
Are there any breaking changes in this PR?
Yes,
.Values.clusterId
is now a required field.