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

🐛 Fix nil pointer bug in EnableClientCache option #148

Merged

Conversation

Jont828
Copy link
Contributor

@Jont828 Jont828 commented Jan 18, 2024

What this PR does / why we need it: Fixes a bug in #136 where a nil pointer exception was occurring in constructing the HelmReleaseProxy if Helm options was left blank.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 18, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Jont828

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 18, 2024
@Jont828 Jont828 changed the title 🐛 Fix nil pointer bug in EnableClientCacheOption 🐛 Fix nil pointer bug in EnableClientCache option Jan 18, 2024
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 18, 2024
@Jont828
Copy link
Contributor Author

Jont828 commented Jan 18, 2024

@sebltm I was running into a nil pointer exception in the defaulting logic for EnableClientCache when Helm options was nil. I think we should probably move that logic to the webhook or kubebuilder validation, but I opened a quick fix for now to get things working again.

@Jont828 Jont828 force-pushed the credentials-nil-pointer-fix branch from 6b79e37 to e41d8e2 Compare January 18, 2024 16:18
Copy link
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

This lgtm once the linter issues are fixed.

@Jont828 Jont828 force-pushed the credentials-nil-pointer-fix branch from e41d8e2 to 8f5a31f Compare January 18, 2024 16:58
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jan 18, 2024
@Jont828 Jont828 force-pushed the credentials-nil-pointer-fix branch from 8f5a31f to 1aad4d0 Compare January 18, 2024 17:05
@Jont828
Copy link
Contributor Author

Jont828 commented Jan 18, 2024

@mboersma Lint issue fixed!

Copy link
Contributor

@mboersma mboersma left a comment

Choose a reason for hiding this comment

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

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 18, 2024
@k8s-ci-robot k8s-ci-robot merged commit 8d7fcb9 into kubernetes-sigs:main Jan 18, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants