mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-28 10:28:36 +00:00
chore: Add a new field in the test results CRD to specify patched resources (#11297)
* chore: Add a new field in the test results CRD to specify patched resources
- The currently existing PatchedResource field has a misleading name, leading to users believing that
it can only take a yaml containing a single resource. Another field with proper naming is added until this field is removed completely.
- Generate the new CRD from the struct.
Signed-off-by: aerosouund <aerosound161@gmail.com>
* Update cmd/cli/kubectl-kyverno/apis/v1alpha1/test_result.go
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
* chore: use more chainsaw step templates (#11296)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* chore(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 (#11298)
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](aaa42aa062...971e284b60
)
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: use more chainsaw step templates (#11300)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
* chore: use more chainsaw step templates (#11303)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
---------
Signed-off-by: aerosouund <aerosound161@gmail.com>
Signed-off-by: Jim Bugwadia <jim@nirmata.com>
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Jim Bugwadia <jim@nirmata.com>
Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: shuting <shuting@nirmata.com>
This commit is contained in:
parent
5d3496dd17
commit
bc1a504462
5 changed files with 68 additions and 2 deletions
|
@ -26,10 +26,16 @@ type TestResultBase struct {
|
|||
// Kind mentions the kind of the resource on which the policy is to be applied.
|
||||
Kind string `json:"kind"`
|
||||
|
||||
// Deprecated. Use `patchedResources` instead.
|
||||
// PatchedResource takes a resource configuration file in yaml format from
|
||||
// the user to compare it against the Kyverno mutated resource configuration.
|
||||
PatchedResource string `json:"patchedResource,omitempty"`
|
||||
|
||||
// PatchedResource takes a resource configuration file in yaml format from
|
||||
// the user to compare it against the Kyverno mutated resource configuration.
|
||||
// Multiple resources can be passed in the same file
|
||||
PatchedResources string `json:"patchedResources,omitempty"`
|
||||
|
||||
// GeneratedResource takes a resource configuration file in yaml format from
|
||||
// the user to compare it against the Kyverno generated resource configuration.
|
||||
GeneratedResource string `json:"generatedResource,omitempty"`
|
||||
|
|
|
@ -123,9 +123,16 @@ spec:
|
|||
type: string
|
||||
patchedResource:
|
||||
description: |-
|
||||
Deprecated. Use `patchedResources` instead.
|
||||
PatchedResource takes a resource configuration file in yaml format from
|
||||
the user to compare it against the Kyverno mutated resource configuration.
|
||||
type: string
|
||||
patchedResources:
|
||||
description: |-
|
||||
PatchedResource takes a resource configuration file in yaml format from
|
||||
the user to compare it against the Kyverno mutated resource configuration.
|
||||
Multiple resources can be passed in the same file
|
||||
type: string
|
||||
policy:
|
||||
description: Policy mentions the name of the policy.
|
||||
type: string
|
||||
|
|
|
@ -123,9 +123,16 @@ spec:
|
|||
type: string
|
||||
patchedResource:
|
||||
description: |-
|
||||
Deprecated. Use `patchedResources` instead.
|
||||
PatchedResource takes a resource configuration file in yaml format from
|
||||
the user to compare it against the Kyverno mutated resource configuration.
|
||||
type: string
|
||||
patchedResources:
|
||||
description: |-
|
||||
PatchedResource takes a resource configuration file in yaml format from
|
||||
the user to compare it against the Kyverno mutated resource configuration.
|
||||
Multiple resources can be passed in the same file
|
||||
type: string
|
||||
policy:
|
||||
description: Policy mentions the name of the policy.
|
||||
type: string
|
||||
|
|
|
@ -801,12 +801,26 @@ string
|
|||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>PatchedResource takes a resource configuration file in yaml format from
|
||||
<p>Deprecated. Use <code>patchedResources</code> instead.
|
||||
PatchedResource takes a resource configuration file in yaml format from
|
||||
the user to compare it against the Kyverno mutated resource configuration.</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>patchedResources</code><br/>
|
||||
<em>
|
||||
string
|
||||
</em>
|
||||
</td>
|
||||
<td>
|
||||
<p>PatchedResource takes a resource configuration file in yaml format from
|
||||
the user to compare it against the Kyverno mutated resource configuration.
|
||||
Multiple resources can be passed in the same file</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<code>generatedResource</code><br/>
|
||||
<em>
|
||||
string
|
||||
|
|
|
@ -1691,7 +1691,8 @@ Possible values are pass, fail and skip.</p>
|
|||
<td>
|
||||
|
||||
|
||||
<p>PatchedResource takes a resource configuration file in yaml format from
|
||||
<p>Deprecated. Use <code>patchedResources</code> instead.
|
||||
PatchedResource takes a resource configuration file in yaml format from
|
||||
the user to compare it against the Kyverno mutated resource configuration.</p>
|
||||
|
||||
|
||||
|
@ -1704,6 +1705,37 @@ the user to compare it against the Kyverno mutated resource configuration.</p>
|
|||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><code>patchedResources</code>
|
||||
|
||||
<span style="color:blue;"> *</span>
|
||||
|
||||
</br>
|
||||
|
||||
|
||||
|
||||
|
||||
<span style="font-family: monospace">string</span>
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
|
||||
<p>PatchedResource takes a resource configuration file in yaml format from
|
||||
the user to compare it against the Kyverno mutated resource configuration.
|
||||
Multiple resources can be passed in the same file</p>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
||||
|
||||
|
||||
<tr>
|
||||
<td><code>generatedResource</code>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue