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

render ingress according to supported apiVersion #93

Merged
merged 4 commits into from Mar 4, 2021
Merged

render ingress according to supported apiVersion #93

merged 4 commits into from Mar 4, 2021

Conversation

ishioni
Copy link
Contributor

@ishioni ishioni commented Feb 26, 2021

Pull Request

Description of the change

Renders the ingress resource according to newest supported apiVersion

Benefits

networking.k8s.io/v1beta1 is going away soon. This also lays the groundwork for supporting High Performance Back-end in NC21

Possible drawbacks

Applicable issues

  • fixes #

Additional information

Checklist

Signed-off-by: Piotr Maksymiuk <piotr.maksymiuk@movishell.pl>
@tvories tvories requested a review from billimek March 1, 2021 15:57
@varac
Copy link
Contributor

varac commented Mar 1, 2021

@ishioni Thanks for this PR - I'm curious what else needs to be done for NC21 support in this helm chart ?

@ishioni
Copy link
Contributor Author

ishioni commented Mar 1, 2021

@ishioni Thanks for this PR - I'm curious what else needs to be done for NC21 support in this helm chart ?

For 21 itself - nothing. It could be switched to now (I'm already running it). But the high performance backend needs a second container in the pod and will need to placed behind a path prefix. Hence the addition of that into the ingress

ishioni and others added 3 commits March 3, 2021 11:51
Signed-off-by: Piotr Maksymiuk <piotr.maksymiuk@movishell.pl>
Signed-off-by: Piotr Maksymiuk <piotr.maksymiuk@movishell.pl>

{{- define "nextcloud.ingress.apiVersion" -}}
{{- if semverCompare "<1.14-0" .Capabilities.KubeVersion.GitVersion -}}
{{- print "extensions/v1beta1" -}}
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice, I like that you handled the check for previous versions

Copy link
Contributor Author

@ishioni ishioni Mar 3, 2021

Choose a reason for hiding this comment

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

I take no credit for the method, but I don't remember who I got the idea from (probably k8s-at-home common lib)

@tvories tvories merged commit 84011fd into nextcloud:master Mar 4, 2021
@ishioni ishioni deleted the ingress-apiversions branch March 4, 2021 17:41
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.

None yet

3 participants