Closed fourthisle closed 1 year ago
@khlifi411 I have a question about the AC:
"Use operator.kyma-project.io/ingress-for + controller name on the gateway to determine the controller that should be used"
I assume this means, that spec.selector.app
should be set to the operator.kyma-project.io/ingress-for-<controller-name>
on the gateway object.
But we don't create any gateway
object directly in the codebase. I assume then that this should be done in the yaml files / kustomization definitions of the project.
Is that correct?
@Tomasz-Smelcerz-SAP the Gateway will be created at Deploy-Time. I am currently working on that. You do not have to implement the Gateway for this task 👍
@khlifi411 I have a question about the AC: "Use operator.kyma-project.io/ingress-for + controller name on the gateway to determine the controller that should be used" I assume this means, that
spec.selector.app
should be set to theoperator.kyma-project.io/ingress-for-<controller-name>
on the gateway object. But we don't create anygateway
object directly in the codebase. I assume then that this should be done in the yaml files / kustomization definitions of the project. Is that correct?
Yes. That's right!
@khlifi411 @jeremyharisch One more question. What kind of label selector are we targeting?
I need a default. Should it be just the label (we don't care for value), like operator.kyma-project.io/gateway
, or maybe key=value, like operator.kyma-project.io/gateway=default
?
Any hints?
@khlifi411 @jeremyharisch One more question. What kind of label selector are we targeting? I need a default. Should it be just the label (we don't care for value), like
operator.kyma-project.io/gateway
, or maybe key=value, likeoperator.kyma-project.io/gateway=default
? Any hints?
For me, It is better to check for just a label as checking for the value assumes that other gateways deployed on KCP have different values for the label.
My suggestion would be operator.kyma-project.io/default-gateway
👍
@khlifi411 @jeremyharisch One more question. What kind of label selector are we targeting? I need a default. Should it be just the label (we don't care for value), like
operator.kyma-project.io/gateway
, or maybe key=value, likeoperator.kyma-project.io/gateway=default
? Any hints?
@khlifi411 @Tomasz-Smelcerz-SAP I would like that we stick to Kubernetes "standards" meaning looking for a label with a specific value. Since this does not hurt us, and we do not start introducing random label values. But in general, either way works for our setup.
Description:
Currently, the watcher reconciler expects that an
istio
gateway resource with the namelifecycle-manager-gateway
is deployed in the default namespace. Due to the fact that this can vary between the different KCP environments, a better approach would be to implement a more generic way for resolving the name and namespace of the gateway resource. The watcher reconciler uses it to configure the virtual service resource it is managing.Edit: In this Issue we don't configure the gateway itself. It's only about finding a proper gateway and configuring Virtual Service for the Watcher using that Gateway.
ACs:
istio
gateway resource used by the customistio
client.[ ] Useoperator.kyma-project.io/ingress-for
+ controller name on the gateway to determine the controller that should be usedRelated:
_Originally posted by @jakobmoellersap in https://github.com/kyma-project/lifecycle-manager/pull/231#discussion_r987619930_