Skip to content

WIP: Initial code for HIP Support Helm release data stored in multiple K8s… - #11087

Closed
ralfv wants to merge 0 commit into
helm:mainfrom
ralfv:main
Closed

ralfv wants to merge 0 commit into
helm:mainfrom
ralfv:main

Conversation

@ralfv

@ralfv ralfv commented Jun 27, 2022 •

Copy link
Copy Markdown

… Secrets PR helm/community#256

What this PR does / why we need it:

This is an initial unpolished implementation for HIP helm/community#256 "HIP Support Helm release data stored in multiple K8s Secrets".

It allows Helm releases to be stored in multiple K8s Secrets if the size is > (1024*1000) bytes. For more details see the HIP.

Special notes for your reviewer:

If applicable:

  • this PR contains documentation
  • this PR contains unit tests
  • this PR has been tested for backwards compatibility

Signed-off-by: Ralf Van Dorsselaer [email protected]

@pull-request-size pull-request-size Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jun 27, 2022
ralfv added a commit to ralfv/community that referenced this pull request Jun 27, 2022
PR helm/helm#11087

Signed-off-by: Ralf Van Dorsselaer <[email protected]>
Comment thread pkg/storage/driver/secrets.go Outdated

// TODO
// Arch
// - Consider implementing chunk support as v2 driver?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@liorkesos

liorkesos commented Jul 27, 2023 •

Copy link
Copy Markdown

This looks very interesting,
We had a chance to discuss this with @mattfarina and indeed the preferred direction is implementation as a storage driver (like you mentioned here -

// - Consider implementing chunk support as v2 driver?
.
This might be raised in the meeting notes of the next helm weekly developer weekly meeting and hopefully will be evaluated with some recommendations on how to approach this.

@sciornei-dox

Copy link
Copy Markdown

@ralfv as pre last week meeting, (notes https://docs.google.com/document/d/1d-6xJEx0C78csIYSPKJzRPeWaHG_8W1Hjl72OJggwdc ), should you be still interested in this PR, what would be acceptable is a new HELM_DRIVER for storage (e.g. multisecrets ).

@ralfv

ralfv commented Aug 4, 2023 •

Copy link
Copy Markdown
Author

@ralfv as pre last week meeting, (notes https://docs.google.com/document/d/1d-6xJEx0C78csIYSPKJzRPeWaHG_8W1Hjl72OJggwdc ), should you be still interested in this PR, what would be acceptable is a new HELM_DRIVER for storage (e.g. multisecrets ).

OK that's great news. We'll work on the PR over the next month or two (summer holidays permitting), as my POC code needs cleanup and tests added plus separation into new storage driver (I had it implemented initially like that).

I think we would still prefer that the code be merged into the existing secrets driver, but we are already very happy that you considered this PR implemented as an additional storage driver as some of our charts are close the size limit.

Thanks!

@sciornei-dox

Copy link
Copy Markdown

Thank you @ralfv for the updates.
Would it be possible to have the implementation BWC, so one will require to use the new HELM_DRIVER only when interacting with deployments which had to split the secrets?
Meaning: if a deployment was created with the native storage driver, would we be able to manage it with the new HELM_DRIVER, while still keeping it bwc with the native storage driver (as long as the size was small and did not require split) ?

@ralfv

ralfv commented Aug 4, 2023 •

Copy link
Copy Markdown
Author

Thank you @ralfv for the updates.
Would it be possible to have the implementation BWC, so one will require to use the new HELM_DRIVER only when interacting with deployments which had to split the secrets?
Meaning: if a deployment was created with the native storage driver, would we be able to manage it with the new HELM_DRIVER, while still keeping it bwc with the native storage driver (as long as the size was small and did not require split) ?

Sure. The current POC code in this PR already does this if the compressed data size is <= 1MB. It currently always adds some chunk metadata into the K8s Secret that the regular secrets driver just ignores, but we can just as well remove that and thus generate a K8s Secret that is 100% the same as they are today if splitting is not required.

It still seems odd to have the splitting only be active explicitly when using a new value like multisecrets for the HELM_DRIVER environment variable. With code that generates BWC Helm secrets if not splitting is required, it seems to me that an additional driver is not needed. What was the main reason for suggesting a separate driver? It is not evident what the rationale was when reading through the developer meeting notes.

Thanks,
Ralf

@ralfv ralfv closed this Aug 6, 2023
@pull-request-size pull-request-size Bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 6, 2023
@ralfv

ralfv commented Aug 6, 2023 •

Copy link
Copy Markdown
Author

Oops - did not mean to close this PR now - working on new one.

Here is the new one: #12277

@ralfv

ralfv commented Aug 6, 2023

Copy link
Copy Markdown
Author

NEW PR for split Helm secrets. Still POC code, but this time implemented as HELM_DRIVER=multisecret | multisecrets.

#12277

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

Labels

size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants