netbox-chart icon indicating copy to clipboard operation
netbox-chart copied to clipboard

Changed Templates to use the new remoteAuth.backends array, instead of .backend

Open Nabsku opened this issue 2 years ago • 3 comments

First helm related commit, so be gentle. :p

In the new 5.0 release, remoteAuth.backend is deprecated and you have to specify both remoteAuth.backend and remoteAuth.backends to get a working LDAP configuration.

This PR aims to fix that by removing all references to remoteAuth.backend.

Nabsku avatar Dec 11 '23 13:12 Nabsku

Oh, thanks for that!

bootc avatar Dec 11 '23 13:12 bootc

I was running into LDAP configuration / Authentication issues after the upgrade to chart 5.0.0. Traced it back to this exact same issue and while working on the same fix I noticed this Pull Request. Thanks for this 👍

Tested; This fixes upgrade from 4.1.1 to 5.0.0 with LDAP remoteAuth backend.

Danielp93 avatar Jan 26 '24 13:01 Danielp93

@Nabsku We've just done some rearranging of the repo to align it better with common practice for Helm charts. Mind rebasing this to match the new paths?

Also, it looks like maybe we need to add discussion of this change to the README.md so folks who upgrade from 4.x know the formatting is different. (Or add some shunts for backwards-compatibility so the old singular version still works. That said, the upcoming 5.x chart seems like the time to make breaking changes.)

RangerRick avatar May 02 '24 17:05 RangerRick

@Nabsku We've just done some rearranging of the repo to align it better with common practice for Helm charts. Mind rebasing this to match the new paths?

Also, it looks like maybe we need to add discussion of this change to the README.md so folks who upgrade from 4.x know the formatting is different. (Or add some shunts for backwards-compatibility so the old singular version still works. That said, the upcoming 5.x chart seems like the time to make breaking changes.)

I've rebased my branch, thanks for the hint!

Also, regarding the discussion part, I believe that is how I found out about the missing changes in the helm chart - thus contributing this. We might need to make it more prominent but it's there. :)

Nabsku avatar May 06 '24 06:05 Nabsku

I will blame this on reading through too many issues at once. I swear I did a git grep and didn't see the references, but I was clearly blind. 😅

RangerRick avatar May 06 '24 13:05 RangerRick

@Nabsku FYI, I've pushed a couple of updates to your branch so the tests would get farther, but I am flummoxed by the linting error now. The indentation seems right, and there aren't any extra spaces anywhere, and your changes don't touch that line as far as I can tell.

RangerRick avatar May 06 '24 19:05 RangerRick

@Nabsku FYI, I've pushed a couple of updates to your branch so the tests would get farther, but I am flummoxed by the linting error now. The indentation seems right, and there aren't any extra spaces anywhere, and your changes don't touch that line as far as I can tell.

Can you run the checks again? I believe it might've been a mistake on my side but I am pretty sure it worked before.. Running it locally works fine now :)

Nabsku avatar May 08 '24 07:05 Nabsku

Do we need any changes to the README.md to follow up from this?

I clearly failed to read the rest of the discussion in the MR. I think we're good.

bootc avatar May 08 '24 08:05 bootc