-
Notifications
You must be signed in to change notification settings - Fork 639
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
Initial commit for ingress spec #1049
Conversation
@shanemcd I've created this PR at the request of @nickjmv, referenced here. However, I'm brushing up against the problem of reinventing the wheel, since the CRD for awx-operator handles some of this stuff, and I don't want to muddy the waters by adding on top of functionality. It's interesting to think about generally how the roles of operators and helm charts can be really similar, since they both can be responsible for creating new resources. Initially, I was thinking that this ingress should be activatible when the However, I think this PR/topic brings to light an issue that will come up whenever we try to add new features to the schema, since they are already designed a certain way. I'm curious if you or any of the other maintainers have thoughts on how in-depth the helm specs should go, since fundamentally they are deviating from the use of the operator. I may add to this PR more in the coming days, but I'm curious on how to address the larger issue going forward, before this is merged. Thanks for your time. PS @nickjmv, let me know if you have questions about the current template implementation, it is not complete yet but might provide some insight |
Just checking in here to see if there is an update? |
Sorry for the slow response here, been busy lately. @miles-w-3 amazing work, as always. Can you help me understand the purpose of configuring the ingress via helm? I'm confused since it's a resource created and managed by the operator itself. I'll be honest, I'm not a helm user and we dont use it for our product since OpenShift has OperatorHub built in. So if you could shine some light on why this is useful that'd be very much appreciated. |
Hi @shanemcd, I appreciate it. I started development on this ticket in response to a request from @nickjmv, and only realized that I will hit a wall once I had begun implementing the features. I have also thought a lot about this since then and my opinion has become more solidified. To shed some light about what helm offers in general, it allows the user to provide a set of values in a yaml file that will be read in by what are essentially go templates to generate valid kubernetes yaml. This is really useful when you want to bundle up a bunch of resources into an application. In that way, they fulfull a small slice of what operators can do - "installations" of a helm app effectively involves applying the template-generated files and storing some metadata in kubernetes to allow the resources to be batch upgraded or uninstalled later on. [apologies in advance for all of text] However, as I mentioned, a lot of these roles are already fulfulfilled by the operator. Analogously, the
I apologize for how long this got, but I figured it's good to be on the same page. All of this to say, implementing an ingress in helm would not fit into approach #3. What we can do is improve documentation on the helm chart to show that any config from the main readme can be slapped into the |
Has there been any progress on this? |
The shortest version of that wall of text is that we don't need to implement this directly in the helm chart, since the helm chart creates the AWX resource which can specify the ingress. Is there a reason you can't do something like this @nickjmv, taken straight from the docs:
|
I'll try it tomorrow! |
@miles-w-3 Do you happen to be on the #ansible:awx Matrix channel? If so, can you ping me (john-westcott-iv)? I had a couple of questions for you. |
This worked! But... Now I got this in the logs:
Any idea what this might be?
|
It looks like it is being set up to migrate a database. What is your full AWX deployment/helm values file? If you want an empty database managed by the operator, at least to start, that should be possible with minimal configuration |
Also @john-westcott-iv, fwiw, given the success in creating an ingress through this method I think that option 3 from my post above is a good approach, in the rare cases that the operator does not handle the creation of a resource the helm chart can step in, but otherwise the helm chart should seek to feed directly into the operator. I believe this issue should be closed out, but im happy to update the docs to provide clarity for future contributors |
|
My guess is that it's not able to authenticate to your db so it's trying to create its own, your config looks correct to me, sorry I cant be of more help |
I'm having the issue from here: #848 I verified access to the database and that is correct. So I'm not quite sure what is causing the migrations. |
Apologies for my absence here, been busy with other things for a while.
I agree with @miles-w-3, going to close this. |
SUMMARY
Adds ingress specs in helm, but needs work to finalize service integration
ISSUE TYPE
ADDITIONAL INFORMATION