Skip to content

Conversation

@ArnobKumarSaha
Copy link
Member

@ArnobKumarSaha ArnobKumarSaha commented Sep 29, 2025

The MongoDB "mongo-demo" is invalid: spec.authSecret.apiGroup: Invalid value: "null": spec.authSecret.apiGroup in body must be of type string: "null"

Signed-off-by: Arnob kumar saha <arnob@appscode.com>
// For any other third-party types, APIGroup is required.
// +optional
APIGroup *string `json:"apiGroup"`
APIGroup string `json:"apiGroup,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we default it to empty string?

// +kubebuilder:default=""

Signed-off-by: Arnob Kumar Saha <arnob@appscode.com>
@tamalsaha tamalsaha changed the title omitempty the apiGroup field Default apiGroup field to "" in TypedLocalObjectReference Sep 30, 2025
@tamalsaha tamalsaha merged commit 28eea40 into master Sep 30, 2025
8 checks passed
@tamalsaha tamalsaha deleted the empty branch September 30, 2025 09:43
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.

3 participants