-
Notifications
You must be signed in to change notification settings - Fork 21
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
How to install authorino-operator with Helm ? #202
Comments
Hello @guicassolato @didierofrivia Not sure where should I open an issue, so duplicating also here I am following README. but receiving this error
|
Hi there @eshepelyuk, first, thanks a lot for being interested in our Kuadrant services! Second, I'm really sorry that it's not straight forward at the moment... It's a bit beta currently, but will be fully documented in our GA soon ;) Buuuut... answering your question, you'll need to pass the ⇒ helm search repo authorino --devel
NAME CHART VERSION APP VERSION DESCRIPTION
kuadrant/authorino-operator 0.12.0-alpha1 Kubernetes operator for managing Authorino inst...
kuadrant/kuadrant-operator 0.9.0-alpha1 The Operator to install and manage the lifecycl...
⇒ helm search repo limitador --devel
NAME CHART VERSION APP VERSION DESCRIPTION
kuadrant/limitador-operator 0.10.0-alpha3 Kubernetes operator for managing Limitador inst...
kuadrant/kuadrant-operator 0.9.0-alpha1 The Operator to install and manage the lifecycl... Very soon we'll be updating the docs and publishing the new charts, thanks again! |
Hello, |
You are correct, can you force update the helm repo and check again? ⇒ helm search repo authorino
NAME CHART VERSION APP VERSION DESCRIPTION
kuadrant/authorino-operator 0.12.0 Kubernetes operator for managing Authorino inst... |
Yes, currently it works |
May I ask why don't you use OCI registry to publish Helm charts ? |
@eshepelyuk There are many things that we are considering before making public the Kuadrant helm charts, one of them is OCI. We want to be consistent before subscribing our repo to artifacthub.io |
Hello, another comment partially related to #41 Currently chart includes mqnifewt of namespace creation. The idea of namesapce creation in Helm that it is handled by helm itself, before applying any manifests from chart. Those flags are passed to Helm CLI or Helm libraries based tools, so namespace ia created before applying manifests. Currently, namespace is rendere and applied as a regular resource, so it is annotated by special Helm annotations, to mark NS as a part of chart release. First of all this disallows installing a chart into arbitrary namespace by passing above-mentioned flags. Second, when flags are omitted the NS is annotated with release-namespace of the current namespece, i.e. where from Helm CLI was invoked. So next time when upgrading a chart if CLI is called from different namespace, installation fails. Basically the namespace manifest should be removed from chart and namespace should be created by Helm itself, as it commonly done in Helm charts. Also namespace should be removed from the metadata of all other resources included into a chart, so all of them will be created inthe namespace provided via Helm CLI, allowing installation into arbitrary namespace via regular Helm flow\approach. |
wrt operator namespace, I believe the main problem with it is the configuration of the webhook in the CRD, which has to match the operator's namespace. This includes the reference to the service in the client config and the certificate request and injection at least. Then there's the reference to the operator's ServiceAccount in the RBAC resources. I don't remember how Kuadrant handles these TBH. Maybe @didierofrivia does. Hopefully there's a way to do it in Helm. |
I understand thst installation into arbitrary namespace may be harder, and IMO it requires manual Helm template creation that would leverage But more painful issue is a Namespace resource manifest, it should be removed and namespace creation should be delegated to Helm. |
I assume somewhere near this line the build scripts can be adjusted to remove Namespace from generated Helm chart ? authorino-operator/make/helm.mk Line 8 in d40dba0
|
As a proposal - naive command line that
FL='charts/authorino-operator/templates/manifests.yaml'
yq -i 'select(.kind!="Namespace")' ${FL}
sed -i 's/namespace:\sauthorino-operator/namespace: {{ .Release.Namespace }}/g' ${FL} After applying this "patch" one call |
@eshepelyuk, that's not bad. However, I may have found a different approach that takes care of delegating the creation of the namespace to Helm as you want, without having to edit the template file with Please let me know if that would work for you. |
This approach looks better and if it generates proper chart - that would be great improvement. |
Checked with v0.13.0 - namespace are working fine. |
Hello
In source code I see that helm chart exists, but there's no any mention about where it's published and how to access it.
Also Helm chart is not listed in https://artifacthub.io
The text was updated successfully, but these errors were encountered: