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

Add v1 ingress support #51

Merged
merged 2 commits into from
Nov 4, 2021
Merged

Add v1 ingress support #51

merged 2 commits into from
Nov 4, 2021

Conversation

rlex
Copy link
Contributor

@rlex rlex commented Nov 2, 2021

Should close #47
Better check on 1.21 and lower, since i only tested it on 1.22

@elrido
Copy link
Contributor

elrido commented Nov 3, 2021

The error reported by the chart linter is:

✖︎ privatebin => (version: "0.8.0", path: "charts/privatebin") > Chart version not ok. Needs a version bump!

@bdashrad
Copy link
Collaborator

bdashrad commented Nov 3, 2021

@rlex if you bump the chart version to 0.9.0 this should pass linting.

https://github.com/PrivateBin/helm-chart/blob/master/charts/privatebin/Chart.yaml#L8

@bdashrad
Copy link
Collaborator

bdashrad commented Nov 3, 2021

Since kubernetes 1.18 is already EOL, i'd prefer to only make this change to support 1.19+. People on <1.19 can use the older chart or upgrade.

@rlex
Copy link
Contributor Author

rlex commented Nov 3, 2021

This PR should handle both pre-v1.22 k8s and v1.22+ with v1 ingress api, so users shouldn't have any issues with recent versions. Theoretically. I do not have older cluster to check. When v1 became available? 1.19?

@bdashrad
Copy link
Collaborator

bdashrad commented Nov 4, 2021

@rlex Ingress moved to networking.k8s.io/v1 in 1.19 and networking.k8s.io/v1beta1 in 1.16. Since we only support and test 1.19 and greater, we don't need the conditional logic.

The chart testing is still failing on the chart version not being incremented. Updating here to 0.9.0 will fix this check.

@rlex
Copy link
Contributor Author

rlex commented Nov 4, 2021

seems to be passing now

@bdashrad bdashrad merged commit 1133ba5 into PrivateBin:master Nov 4, 2021
@github-actions github-actions bot mentioned this pull request Nov 22, 2021
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

Successfully merging this pull request may close these issues.

Migrate to networking.k8s.io/v1 Ingress
3 participants