Skip to content
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

[rstudio-connect] wrong type for var #409

Open
Almenon opened this issue Aug 23, 2023 · 3 comments
Open

[rstudio-connect] wrong type for var #409

Almenon opened this issue Aug 23, 2023 · 3 comments

Comments

@Almenon
Copy link

Almenon commented Aug 23, 2023

.Values.sharedStorage.storageClassName has the type bool and default false.

| sharedStorage.storageClassName | bool | `false` | The type of storage to use. Must allow ReadWriteMany |

However, it's passed to the PersistentVolumeClaim kind, spec.storageClassName, which is a string.

https://github.com/rstudio/helm/blob/666e86da88124a40e823a9e23925702d151b8076/charts/rstudio-connect/templates/pvc.yaml#L14C3-L14C19

I haven't tested it, but based on the API reference this is probably a bug.

@bschwedler
Copy link
Contributor

Thank you for reporting this!

It looks like we also have a couple of other variables that we need to update for the correct type.

Setting up a JSON schema as in #35 should help us catch & document these in a more automated fashion.

@colearendt
Copy link
Member

colearendt commented Sep 1, 2023

Also worth noting that "mutable types" are kinda a weird / hard thing in helm.

While we do false as a proxy for "not set" currently in a handful of places (and we should not), there are also some places where we allow either a {} or a string, for instance. Helm is not a fan of this, so we will need to do some exploration on those items.

@Almenon
Copy link
Author

Almenon commented Oct 13, 2023

Looks like same issue with package manager FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants