helm-charts icon indicating copy to clipboard operation
helm-charts copied to clipboard

[influxdb] Add loadBalancerSourceRanges support, refactor config map

Open szymonpk opened this issue 5 years ago • 6 comments

Add support for service.spec.loadBalancerSourceRanges. We can control security group entries for AWS load balancers. Chart supported this in previous versions (3.x).

Add a helper to format config maps sections without breaking current functionality.

  • [ ] CHANGELOG.md updated
  • [x] Rebased/mergable
  • [x] Tests pass
  • [x] Sign CLA (if not already signed)

szymonpk avatar Jan 12 '21 12:01 szymonpk

There is no CHANGELOG.md for this chart, so nothing to change/update.

szymonpk avatar Jan 12 '21 12:01 szymonpk

Happy to accept the load balancer changes, but not the config map break.

Please feel free to clean this up and tag me

rawkode avatar Feb 26 '21 11:02 rawkode

Happy to accept the load balancer changes, but not the config map break.

Looks like a nice factoring out with one logical changes which is to | int64 numeric values to avoid having them converted to scientific notation apparently. Is that breaking?

naseemkullah avatar Feb 28 '21 03:02 naseemkullah

Happy to accept the load balancer changes, but not the config map break.

Looks like a nice factoring out with one logical changes which is to | int64 numeric values to avoid having them converted to scientific notation apparently. Is that breaking?

Yes, as it assumes that values can only be strong, bool, or int. There’s no clause for arrays or floats.

TOML wrangling is a mess in Helm and I’d rather discourage using yaml to generate it. Of course, if you wish to add some Rego to confirm it works with a varied and complete configuration, then by all means do.

I’ve added a basic test case to build into CI in an unrelated PR

https://github.com/influxdata/helm-charts/pull/281/files

rawkode avatar Feb 28 '21 08:02 rawkode

...

Yes, as it assumes that values can only be strong, bool, or int. There’s no clause for arrays or floats.

TOML wrangling is a mess in Helm and I’d rather discourage using yaml to generate it. Of course, if you wish to add some Rego to confirm it works with a varied and complete configuration, then by all means do.

I’ve added a basic test case to build into CI in an unrelated PR

https://github.com/influxdata/helm-charts/pull/281/files

@rawkode I have found a case for arrays access-log-status-filters = [] (doc), but I do not see any values that can be floats. Do I miss something?

szymonpk avatar Mar 01 '21 07:03 szymonpk

@rawkode @naseemkullah I have dropped 'int64' shenanigans, but left the helper, I can drop it too if you want. I have also rebased the code with master.

szymonpk avatar Mar 01 '21 07:03 szymonpk