Skip to content

test PR#10

Open
yongruilin wants to merge 1 commit into
richabanker:hackathonfrom
yongruilin:hackathon-yongrlin-sub1
Open

test PR#10
yongruilin wants to merge 1 commit into
richabanker:hackathonfrom
yongruilin:hackathon-yongrlin-sub1

Conversation

@yongruilin

Copy link
Copy Markdown
Collaborator

What type of PR is this?

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?


Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:


@richabanker richabanker force-pushed the hackathon branch 12 times, most recently from 039d256 to 99ea87f Compare February 19, 2025 19:45
@yongruilin yongruilin force-pushed the hackathon-yongrlin-sub1 branch from b058259 to e53640a Compare February 19, 2025 20:15
Comment thread pkg/apis/core/types.go
type ReplicationControllerStatus struct {
// Replicas is the number of actual replicas.
Replicas int32
Replicas *int32

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Changing Replicas int32 to Replicas *int32 is concerning. The original code has a required Replicas field. Changing this field to a pointer will make the Replicas field optional. If the Replicas field remains required it should not be a pointer type. If made optional, be sure a default value in all api versions is assigned.

Comment thread pkg/apis/core/types.go
@@ -4357,7 +4357,7 @@ type ReplicationControllerSpec struct {
// controller.
type ReplicationControllerStatus struct {
// Replicas is the number of actual replicas.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Replicas should be a pointer, or it may be hard to tell the difference between zero value and being not set.

@richabanker richabanker force-pushed the hackathon branch 2 times, most recently from 2c94705 to a535d8c Compare February 20, 2025 02:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant