Skip to content

Conversation

@gabor
Copy link
Contributor

@gabor gabor commented Nov 4, 2025

the extra non-crud apiserver methods (check-health, call-resource, datasource proxy) have not been tested yet, so we will not enable them by default.

@gabor gabor marked this pull request as ready for review November 4, 2025 11:14
@gabor gabor requested a review from a team as a code owner November 4, 2025 11:14
@github-actions github-actions bot added this to the 12.3.x milestone Nov 4, 2025
@gabor gabor added the no-changelog Skip including change in changelog/release notes label Nov 4, 2025
@gabor gabor requested a review from a team as a code owner November 4, 2025 11:43
@gabor gabor requested review from owen-d and stephaniehingtgen and removed request for a team November 4, 2025 11:43
}`, string(jj))
})

t.Run("Call subresources", func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add a comment with context for these commented out tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, added info 👍

Copy link
Contributor

@dafydd-t dafydd-t left a comment

Choose a reason for hiding this comment

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

LGTM, pending a nit and linting fixes 👍

@gabor gabor force-pushed the gabor/no-new-methods branch from 6aec7c5 to f61babc Compare November 5, 2025 13:43

func (r *subHealthREST) Connect(ctx context.Context, name string, opts runtime.Object, responder rest.Responder) (http.Handler, error) {
if !healthEnabled {
return nil, errors.New("health: endpoint disabled")
Copy link
Contributor

Choose a reason for hiding this comment

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

this is a nit: I prefer the term 'not implemented' as its feels more standardised, like in the 501 HTTP code. As a bonus, could we return 501 here instead of 500?

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need the health: prefix on the error message either

}
`, string(body))
_, err = client.Get(ctx, "test", metav1.GetOptions{}, "health")
// endpoint is disabled currently
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need more context in this comment about why this is disabled

@gabor gabor force-pushed the gabor/no-new-methods branch from f61babc to a4e3eae Compare November 5, 2025 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/backend no-changelog Skip including change in changelog/release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants