Skip to content

(fix): add conditional for nodePort check#984

Merged
adutra merged 6 commits intoapache:mainfrom
kameshsampath:issue/helm-981
Feb 18, 2025
Merged

(fix): add conditional for nodePort check#984
adutra merged 6 commits intoapache:mainfrom
kameshsampath:issue/helm-981

Conversation

@kameshsampath
Copy link
Contributor

Added extra conditional check to #626 to add check to NodePort before adding the port.

fix: #981

@kameshsampath
Copy link
Contributor Author

@adutra - made clean PR over #982 to add the conditional alone.

@adutra
Copy link
Contributor

adutra commented Feb 11, 2025

Nice! Do you mind also adding a unit test to service_test.yaml? (or updating an existing test)

@adutra adutra enabled auto-merge (squash) February 12, 2025 12:48
auto-merge was automatically disabled February 17, 2025 03:39

Head branch was pushed to by a user without write access

@kameshsampath
Copy link
Contributor Author

@adutra @MonkeyCanCode ?

@MonkeyCanCode
Copy link
Contributor

@adutra @MonkeyCanCode ?

There was a broken CI earlier. Can u do a empty commit to trigger CI again? Then we should be able to get this in.

@MonkeyCanCode
Copy link
Contributor

MonkeyCanCode commented Feb 18, 2025

@adutra @MonkeyCanCode ?

There was a broken CI earlier. Can u do a empty commit to trigger CI again? Then we should be able to get this in.

@kameshsampath seem likes helm test failed. I had add the fix as comment to your PR.

nodePort: 30081
name: polaris-http
asserts:
- equal: spec.type
Copy link
Contributor

Choose a reason for hiding this comment

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

Change to following:

      - equal:
          path: spec.type
          value: NodePort

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure I understand your change, the line 168-169 already has that asset

      - equal: spec.type
        value: NodePort

Copy link
Contributor

Choose a reason for hiding this comment

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

Missing path

targetPort: 18181
name: polaris-http
asserts:
- equal: spec.type
Copy link
Contributor

Choose a reason for hiding this comment

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

  - equal:
      path: spec.type
      value: NodePort

@adutra adutra merged commit 01a8799 into apache:main Feb 18, 2025
5 checks passed
@adutra
Copy link
Contributor

adutra commented Feb 18, 2025

Thanks @kameshsampath for the fix and @MonkeyCanCode for the review!

@kameshsampath kameshsampath deleted the issue/helm-981 branch February 18, 2025 11:23
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.

Add Nodeport support in Helm

4 participants