mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +00:00
Fix API docs for audit APIs
The `*`s in the source comment is confusing the API reference generator. They are treated as symbols for bold texts when generating reference docs. This PR replaces the quote marks with backtiqs so that the reference generator can properly handle them.
This commit is contained in:
parent
622509830c
commit
e7b2aeee93
@ -235,10 +235,10 @@ type PolicyRule struct {
|
||||
Namespaces []string
|
||||
|
||||
// NonResourceURLs is a set of URL paths that should be audited.
|
||||
// *s are allowed, but only as the full, final step in the path.
|
||||
// `*`s are allowed, but only as the full, final step in the path.
|
||||
// Examples:
|
||||
// "/metrics" - Log requests for apiserver metrics
|
||||
// "/healthz*" - Log all health checks
|
||||
// `/metrics` - Log requests for apiserver metrics
|
||||
// `/healthz*` - Log all health checks
|
||||
// +optional
|
||||
NonResourceURLs []string
|
||||
|
||||
@ -269,11 +269,11 @@ type GroupResources struct {
|
||||
// Resources is a list of resources this rule applies to.
|
||||
//
|
||||
// For example:
|
||||
// 'pods' matches pods.
|
||||
// 'pods/log' matches the log subresource of pods.
|
||||
// '*' matches all resources and their subresources.
|
||||
// 'pods/*' matches all subresources of pods.
|
||||
// '*/scale' matches all scale subresources.
|
||||
// - `pods` matches pods.
|
||||
// - `pods/log` matches the log subresource of pods.
|
||||
// - `*` matches all resources and their subresources.
|
||||
// - `pods/*` matches all subresources of pods.
|
||||
// - `*/scale` matches all scale subresources.
|
||||
//
|
||||
// If wildcard is present, the validation rule will ensure resources do not
|
||||
// overlap with each other.
|
||||
|
@ -229,10 +229,10 @@ type PolicyRule struct {
|
||||
Namespaces []string `json:"namespaces,omitempty" protobuf:"bytes,6,rep,name=namespaces"`
|
||||
|
||||
// NonResourceURLs is a set of URL paths that should be audited.
|
||||
// *s are allowed, but only as the full, final step in the path.
|
||||
// `*`s are allowed, but only as the full, final step in the path.
|
||||
// Examples:
|
||||
// "/metrics" - Log requests for apiserver metrics
|
||||
// "/healthz*" - Log all health checks
|
||||
// - `/metrics` - Log requests for apiserver metrics
|
||||
// - `/healthz*` - Log all health checks
|
||||
// +optional
|
||||
NonResourceURLs []string `json:"nonResourceURLs,omitempty" protobuf:"bytes,7,rep,name=nonResourceURLs"`
|
||||
|
||||
@ -263,11 +263,11 @@ type GroupResources struct {
|
||||
// Resources is a list of resources this rule applies to.
|
||||
//
|
||||
// For example:
|
||||
// 'pods' matches pods.
|
||||
// 'pods/log' matches the log subresource of pods.
|
||||
// '*' matches all resources and their subresources.
|
||||
// 'pods/*' matches all subresources of pods.
|
||||
// '*/scale' matches all scale subresources.
|
||||
// - `pods` matches pods.
|
||||
// - `pods/log` matches the log subresource of pods.
|
||||
// - `*` matches all resources and their subresources.
|
||||
// - `pods/*` matches all subresources of pods.
|
||||
// - `*/scale` matches all scale subresources.
|
||||
//
|
||||
// If wildcard is present, the validation rule will ensure resources do not
|
||||
// overlap with each other.
|
||||
|
Loading…
Reference in New Issue
Block a user