Generated files

This commit is contained in:
Qiming Teng 2023-10-03 20:16:10 +08:00
parent e7b2aeee93
commit c65fe450d8
2 changed files with 10 additions and 10 deletions

View File

@ -50139,7 +50139,7 @@ func schema_pkg_apis_audit_v1_GroupResources(ref common.ReferenceCallback) commo
}, },
"resources": { "resources": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "Resources is a list of resources this rule applies to.\n\nFor 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.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nAn empty list implies all resources and subresources in this API groups apply.", Description: "Resources is a list of resources this rule applies to.\n\nFor 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.\n\nIf wildcard is present, the validation rule will ensure resources do not overlap with each other.\n\nAn empty list implies all resources and subresources in this API groups apply.",
Type: []string{"array"}, Type: []string{"array"},
Items: &spec.SchemaOrArray{ Items: &spec.SchemaOrArray{
Schema: &spec.Schema{ Schema: &spec.Schema{
@ -50449,7 +50449,7 @@ func schema_pkg_apis_audit_v1_PolicyRule(ref common.ReferenceCallback) common.Op
}, },
"nonResourceURLs": { "nonResourceURLs": {
SchemaProps: spec.SchemaProps{ SchemaProps: spec.SchemaProps{
Description: "NonResourceURLs is a set of URL paths that should be audited. *s are allowed, but only as the full, final step in the path. Examples:\n \"/metrics\" - Log requests for apiserver metrics\n \"/healthz*\" - Log all health checks", Description: "NonResourceURLs is a set of URL paths that should be audited. `*`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",
Type: []string{"array"}, Type: []string{"array"},
Items: &spec.SchemaOrArray{ Items: &spec.SchemaOrArray{
Schema: &spec.Schema{ Schema: &spec.Schema{

View File

@ -129,11 +129,11 @@ message GroupResources {
// Resources is a list of resources this rule applies to. // Resources is a list of resources this rule applies to.
// //
// For example: // For example:
// 'pods' matches pods. // - `pods` matches pods.
// 'pods/log' matches the log subresource of pods. // - `pods/log` matches the log subresource of pods.
// '*' matches all resources and their subresources. // - `*` matches all resources and their subresources.
// 'pods/*' matches all subresources of pods. // - `pods/*` matches all subresources of pods.
// '*/scale' matches all scale subresources. // - `*/scale` matches all scale subresources.
// //
// If wildcard is present, the validation rule will ensure resources do not // If wildcard is present, the validation rule will ensure resources do not
// overlap with each other. // overlap with each other.
@ -248,10 +248,10 @@ message PolicyRule {
repeated string namespaces = 6; repeated string namespaces = 6;
// NonResourceURLs is a set of URL paths that should be audited. // 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: // Examples:
// "/metrics" - Log requests for apiserver metrics // - `/metrics` - Log requests for apiserver metrics
// "/healthz*" - Log all health checks // - `/healthz*` - Log all health checks
// +optional // +optional
repeated string nonResourceURLs = 7; repeated string nonResourceURLs = 7;