Open
Description
This is a Feature Request
What would you like to be added
- End-to-end example: Add example of adding a label environment=test to one of the namespace
- Add explanation to the examples
- Add a note about how to enable the
admissionregistration.k8s.io/v1alpha1
API or link to another doc that talks about runtimeConfig - remove all the example.com parts since it was mostly confusing
- Link to API docs for the various objects mentioned in the doc
- Move all examples to separate files and ensure they are tested, this would prevent issues like ValidationAdmissionPolicy binding example is incorrect #38495 from occurring again, see comment from @tengqm below
comment from @tengqm:
Issues like this would be easy to detect if we make the manifest an example YAML.
For example:
- move the YAML snippet into a separate file content/en/examples/policy/validating-admission-ex.yaml and,
- reference it as {{< codenew file="policy/validating-admission-ex.yaml" >}} in the markdown page,
- (optionally) amend content/en/examples/examples_test.go so that it can be validated against current and future k8s releases.
Why is this needed
Current docs was hard to follow for a new user like myself