Kubebuilder: Documentation needed for `+kubebuilder:scaffold` markers

Created on 1 May 2020  路  9Comments  路  Source: kubernetes-sigs/kubebuilder

Hi!

Please add documentation about the +kubebuilder:scaffold markers.

I came across this in the main.go generated file of a project I'm currently working on, where there's this line in the imports section, which apparently helps Kubebuilder put import statements there when you create new api-versions.

// +kubebuilder:scaffold:imports

Possible landing spots in CronJob tutorial or in markers reference.

Thanks to @djzager and @estroz for your help in Slack. 馃檹

Cheers

/kind documentation

kindocumentation

Most helpful comment

Is there any progress about that? I still do not know about // +kubebuilder:scaffold:builder, // +kubebuilder:scaffold:scheme or // +kubebuilder:scaffold:imports. There is no such information about them.

Thanks.

All 9 comments

/remove-kind feature
/assign

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

/remove-lifecycle stale

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

If I may,
/remove-lifecycle stale

Is there any progress about that? I still do not know about // +kubebuilder:scaffold:builder, // +kubebuilder:scaffold:scheme or // +kubebuilder:scaffold:imports. There is no such information about them.

Thanks.

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale

/remove-lifecycle stale

Agree that this docs on these markers are needed. For example, what does the kubebuilder:scaffold:scheme marker do? Can I add other schemes besides the ones needed for my project's APIs?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Adirio picture Adirio  路  6Comments

kuroneko25 picture kuroneko25  路  3Comments

kwangh picture kwangh  路  3Comments

narayanasamyr picture narayanasamyr  路  4Comments

cheyang picture cheyang  路  4Comments