Skip to content

Comments

chore: Address kube-api-linter warnings about optional fields#1432

Open
theunrepentantgeek wants to merge 7 commits intomainfrom
theunrepentantgeek/fix/kube-api-linter-changes
Open

chore: Address kube-api-linter warnings about optional fields#1432
theunrepentantgeek wants to merge 7 commits intomainfrom
theunrepentantgeek/fix/kube-api-linter-changes

Conversation

@theunrepentantgeek
Copy link
Member

Fixes #

Description

In #1387 we enabled the kube-api-linter for checks, but simply suppressed all existing warnings.

Here we address most occurences of the optionalfields sublinter, converting fields into pointers and updating all consumption.

This is non-breaking for YAML consumption, but breaking for code consumption.

How was this change tested?

Local testing using make test and will run CI checks too.

Does this change impact docs?

  • Yes, PR includes docs updates
  • Yes, issue opened: #
  • No

Release Note

NONE

ImageGCHighThresholdPercent: lo.ToPtr(int32(85)),
ImageGCLowThresholdPercent: lo.ToPtr(int32(80)),
TopologyManagerPolicy: "none",
TopologyManagerPolicy: to.Ptr("none"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Consider (here and elsewhere) using lo.ToPtr instead; already used widely in the codebase (and nearby)

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.

2 participants