Skip to content

Support for splitting release manifest with Secrets storage driver - #11791

Closed
lelithium wants to merge 5 commits into
helm:mainfrom
iotile:lcabrol/split-manifest
Closed

lelithium wants to merge 5 commits into
helm:mainfrom
iotile:lcabrol/split-manifest

Conversation

@lelithium

@lelithium lelithium commented Feb 6, 2023 •

Copy link
Copy Markdown

What this PR does / why we need it:

Special notes for your reviewer:

  • I've got a HIP ready to go on the community repo, will PR there to fully document this feature
  • I don't have much experience writing production-ready Go, so any feedback is appreciated on naming conventions, syntax and others
  • I haven't updated yet the version, as I'm not sure if this ought to be packaged with other changes or if it can go into 3.12 with the rest of the changes currently on master not in a released version
  • In order to test larger releases, I've added a text file that contains random alphanum chars (and a disclaimer), to be loaded as static content when running the tests. I'm not sure that's the best approach, I've tried
    • a smaller, random string, repeated with String.Repeat. This requires a lot more memory, as GZIP compression is efficient on repeated strings
    • loading random bytes directly in the test scenario. This doesn't work so well, as there's an increased risk of a test breaking out of randomness (i.e. a "large" text actually very compressible by GZIP would yield test failures). Also would tax the random generator of the test suite, which I'm not too fond of for a simple test.

If applicable:

  • this PR contains documentation (comments)
  • this PR contains unit tests (all edge cases I could think of)
  • this PR has been tested for backwards compatibility (tested with Minikube and the lastest Helm version)

Thanks for your hard work maintaining Helm !

@pull-request-size pull-request-size Bot added the size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. label Feb 6, 2023
@ralfv

ralfv commented Feb 7, 2023 •

Copy link
Copy Markdown
  • This has been proposed before, but never made it as a real HIP nor real code AFAICT

I stumbled to get traction on this in 2022 - I used same approach of splitting across multiple secrets:

Signed-off-by: Louis Cabrol <[email protected]>
@lelithium

Copy link
Copy Markdown
Author

@ralfv I missed those ! Thanks for bringing them into context, and your work there :-)

I'll take a look through your code and HIP PRs, to try and see if the comments you got then apply to this PR and its HIP. Hopefully we can get some more traction this time !

@github-advanced-security

Copy link
Copy Markdown

You have successfully added a new CodeQL configuration .github/workflows/codeql-analysis.yml:analyze/language:go. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

Signed-off-by: Louis Cabrol <[email protected]>
@lelithium
lelithium force-pushed the lcabrol/split-manifest branch from b43fc24 to 7f680ac Compare March 29, 2023 08:30
@hoerup

hoerup commented Jun 12, 2023

Copy link
Copy Markdown

Any news on this ?

@lelithium

Copy link
Copy Markdown
Author

@hoerup I asked for a review some time back in the Helm Dev section of the k8s Slack, but didn't hear back.
There's also a HIP PR open at helm/community#284

And @ralfv also linked to his version of basically the same idea, which got some pushback from the Helm team at the time wrt reverse compatibility (split manifest release with older tooling), IIRC.

I personally have been using the fork (https://github.com/lelithium/helm/tree/lcabrol/split-manifest) since end of March 2023, and haven't run into any issues.

There's a separate release in that repo I linked to with version number 3.11.999 for disambiguation with proper releases.

All of our deployment tooling is automated, so having the tools pull the forked version works well for our purposes, but YMMV

@lelithium

Copy link
Copy Markdown
Author

Note: transferred ownership from lelithium to iotile, since we're using this fork internally. https://github.com/iotile/helm

@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale because it has been open for 90 days with no activity. This pull request will be automatically closed in 30 days if no further activity occurs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. Stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants