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

Set default for Kubernetes service port #621

Conversation

vicmarbev
Copy link
Contributor

@vicmarbev vicmarbev commented Oct 7, 2022

Signed-off-by: Víctor Martínez Bevià vicmarbev@gmail.com

What this PR does / why we need it:

Sets a default for the Kubernetes service port, so it does not fail when it is not provided.

Which issue(s) this PR fixes:

Fixes #615

Does this PR introduce a user-facing change?


Additional Notes for your reviewer:

Review Checklist:
  • Follows the developer guidelines
  • Relevant tests are added or updated
  • Relevant docs in this repo added or updated
  • Relevant carvel.dev docs added or updated in a separate PR and there's
    a link to that PR
  • Code is at least as readable and maintainable as it was before this
    change

Additional documentation e.g., Proposal, usage docs, etc.:


Signed-off-by: Víctor Martínez Bevià <vicmarbev@gmail.com>
pkg/kapp/cmd/core/config_factory.go Outdated Show resolved Hide resolved
pkg/kapp/cmd/core/config_factory.go Outdated Show resolved Hide resolved
Signed-off-by: Víctor Martínez Bevià <vicmarbev@gmail.com>
Copy link
Member

@praveenrewar praveenrewar left a comment

Choose a reason for hiding this comment

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

LGTM!

@rohitagg2020
Copy link
Contributor

LGTM

@praveenrewar praveenrewar merged commit b8a6050 into carvel-dev:develop Oct 11, 2022
@vicmarbev vicmarbev deleted the set-default-for-kubernetes-service-port branch October 11, 2022 05:45
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.

kapp deploy fails when K8s server host, port and kubeconfig is passed as env and port is empty.
3 participants