Skip to content
Snippets Groups Projects

feat: added support of new ingress apiVersion

Merged Dmitriy Stoyanov requested to merge (removed):ingress_api_version into master
All threads resolved!

Added support of new ingress apiVersion

  • for <1.14 apiVersion extensions/v1beta1 will be used
  • for 1.14-1.18 apiVersion networking.k8s.io/v1beta1 will be used
  • for 1.19-.. apiVersion networking.k8s.io/v1 will be used

related to issue #93

Edited by Dmitriy Stoyanov

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Thanks a lot @DmitriyStoyanov ! :bow_tone1:

    I've only one significant concern, please let me know what you think.

  • Dmitriy Stoyanov marked this merge request as draft

    marked this merge request as draft

  • Dmitriy Stoyanov added 19 commits

    added 19 commits

    • c0d25b6a...72ca54e6 - 13 commits from branch gitlab-org/cluster-integration:master
    • e0903c16 - Added support of new ingress apiVersion
    • e2d538d9 - Added ability to use with 1.14-0 version
    • 204db838 - Added ability to use apiVersion networking.k8s.io/v1
    • d7a25c89 - Removed extra dollar sign from Capabilities
    • d2f3a0b7 - Merge branch 'ingress_api_version' of...
    • 9888673c - Moved to use .Capabilities.APIVersions.Has instead of deprecated...

    Compare with previous version

  • added 1 commit

    • bfc02ef6 - feat: Added support of new ingress apiVersion

    Compare with previous version

  • Dmitriy Stoyanov added 7 commits

    added 7 commits

    • bfc02ef6...72ca54e6 - 6 commits from branch gitlab-org/cluster-integration:master
    • 2a5c410f - feat: added support of new ingress apiVersion

    Compare with previous version

  • Dmitriy Stoyanov marked this merge request as ready

    marked this merge request as ready

  • Dmitriy Stoyanov changed title from Draft: Added support of new ingress apiVersion to feat: added support of new ingress apiVersion

    changed title from Draft: Added support of new ingress apiVersion to feat: added support of new ingress apiVersion

  • Dmitriy Stoyanov resolved all threads

    resolved all threads

  • João Alexandre Cunha approved this merge request

    approved this merge request

  • Thanks, @DmitriyStoyanov . LGTM!

    I also manually tested this on K3s with K8s versions 1.16 and 1.19.

    @hfyngvason would you like to proceed the review?

  • requested review from @hfyngvason

  • João Alexandre Cunha removed review request for @Alexand

    removed review request for @Alexand

    • Resolved by Hordur Freyr Yngvason

      Thanks again @DmitriyStoyanov for the contribution :star: and thanks @Alexand for the review :trophy:

      @DmitriyStoyanov The template code looks good to me, just a couple of small things before we can merge:

      (1) The chart version in assets/auto-deploy-app/Chart.yaml needs to be updated. This is a feat change, and the latest release is 2.4.0, so the next version will be 2.5.0. Could you please change it?

      (We have an automated check for this, but unfortunately it doesn't work for forks #25. Sorry about that!)

      (2) All of our ingress template unit tests still read the resources as extensions/v1beta1. Would you mind adding a test for each of the two newly supported API versions?

      Just a small function for each, to make sure it deserializes correctly. Something like this:

      func TestIngressTemplate_NetworkingV1Beta1(t *testing.T) {
      	templates := []string{"templates/ingress.yaml"}
      	releaseName := "ingress-networking-v1beta1"
      	output := helm.RenderTemplate(t, opts, helmChartPath, releaseName, templates, "--api-versions", "networking.k8s.io/v1beta1/Ingress") 
      	ingress := new(networkingv1beta1.Ingress) // need to import networkingv1beta1
      	helm.UnmarshalK8SYaml(t, output, ingress)
      	require.Equal(t, ...) // maybe check one or two values
      }
      
      func TestIngressTemplate_NetworkingV1(t *testing.T) {
      	// ...
      }

      Let me know what you think!

  • Thong Kuah resolved all threads

    resolved all threads

  • added 1 commit

    • 53437f51 - Increased version of helm chart

    Compare with previous version

  • added 1 commit

    • 0923b101 - feat: added support of new ingress apiVersion

    Compare with previous version

  • Dmitriy Stoyanov added 12 commits

    added 12 commits

    • 0923b101...c2cde787 - 9 commits from branch gitlab-org/cluster-integration:master
    • cd6d2f79 - feat: added support of new ingress apiVersion
    • 03e78709 - feat: added support of new ingress apiVersion
    • 46504d81 - Merge branch 'ingress_api_version' of...

    Compare with previous version

  • added 1 commit

    • 44d7f292 - feat: added support of new ingress apiVersion

    Compare with previous version

  • added 1 commit

    • 93c5e37e - feat: added support of new ingress apiVersion

    Compare with previous version

  • Hordur Freyr Yngvason resolved all threads

    resolved all threads

  • mentioned in issue #151 (closed)

  • Hordur Freyr Yngvason approved this merge request

    approved this merge request

  • Thanks @DmitriyStoyanov! Great work here :100: LGTM

  • Hordur Freyr Yngvason started a merge train

    started a merge train

  • mentioned in commit f5a5a44e

  • Please register or sign in to reply
    Loading