-
Notifications
You must be signed in to change notification settings - Fork 39
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 do I customize installation of packages and apps in OCM ? #154
Comments
Yes, please see below for an example. Put all your custom values under
It has the same support for Ansible pre/post hooks and works the same way as ACM. See https://github.com/open-cluster-management-io/multicloud-operators-subscription/tree/main/examples/ansible/appsub for example. As for documentation, since this part of the integration is bit too specific product integration orientated. We haven't decide if we should present it up front to the community or keep it as a "hidden" feature. For now you can refer to the ACM doc for this part of the integration. It works the same way. |
Many thanks indeed for the prompt response and sorry for the delay in replying. The error from the subscription operator is as follows,
The problematic name for the |
This looks like a bug we fixed before. Since you are pointing at a public repo, could you please share your subscription and channel yamls content? Please do redact any sensitive data you might have. Thanks. FYI @rokej |
Thanks again for your support. Appreciate it ! channel,
placement rule,
Suscription,
The problematic part of the yaml file,
The name please let me know if you need any further input from my side to help me. |
Wanted to add this too,
What is missing here ? |
For pure upstream ansible integration, you will need the CRD and deployments from this project https://github.com/ansible/awx-resource-operator/tree/devel/config to get the AnsibleJob CR to work. |
This comment's issue regarding resource name has been addressed. |
Hi !
I have one hub and a managed cluster and I am able to install packages on my managed cluster using subscription to github or helm repos. It is working fine. Now I have these questions,
How do I customize the installation of a helm package ? usually we pass parameters as arguments or supply a file with custom values as an argument with -f to the helm execution. How do we do something with ocm ? is there a way to pass arguments or a file with custom values ?
When we are using github subscription, is it possible to fetch certain values like secrets or values of environmental variables from the managed k8s cluster first and pass it to the deployment of application(s) ? I could see that Redhat Advanced Cluster Management supports Ansible pre hooks and post hooks as a TP which could probably be used for this. Does ocm have this feature yet? if so, any documentation or pointers in this regard ?
Both the Hub and Managed clusters are running vanilla Kubernetes 1.23.5 cluster deployed on top of Rocky Linux 8.5. Would be glad to provide any further details if that can help you to help me.
Thanks in advance !
The text was updated successfully, but these errors were encountered: