Skip to content

Commit

Permalink
update controller list
Browse files Browse the repository at this point in the history
Signed-off-by: Frank Jogeleit <[email protected]>
  • Loading branch information
fjogeleit committed Sep 20, 2024
1 parent 05a2b24 commit ac016ac
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion charts/policy-reporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Check the [Documentation](https://kyverno.github.io/policy-reporter/guide/02-get
| image.registry | string | `"ghcr.io"` | |
| image.repository | string | `"kyverno/policy-reporter"` | |
| image.pullPolicy | string | `"IfNotPresent"` | |
| image.tag | string | `"ab7c0b6"` | |
| image.tag | string | `"05a2b24"` | |
| imagePullSecrets | list | `[]` | |
| priorityClassName | string | `""` | |
| replicaCount | int | `1` | |
Expand Down Expand Up @@ -291,6 +291,7 @@ Check the [Documentation](https://kyverno.github.io/policy-reporter/guide/02-get
| target.securityHub.endpoint | string | `""` | |
| target.securityHub.accountId | string | `""` | |
| target.securityHub.productName | string | `""` | |
| target.securityHub.companyName | string | `""` | |
| target.securityHub.minimumSeverity | string | `""` | |
| target.securityHub.sources | list | `[]` | |
| target.securityHub.skipExistingOnStartup | bool | `false` | |
Expand Down
1 change: 0 additions & 1 deletion charts/policy-reporter/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ maxUnavailable: {{ .Values.podDisruptionBudget.maxUnavailable }}

{{- define "target" -}}
name: {{ .name | quote }}
path: {{ .path | quote }}
secretRef: {{ .secretRef | quote }}
mountedSecret: {{ .mountedSecret | quote }}
minimumSeverity: {{ .minimumSeverity | quote }}
Expand Down
4 changes: 3 additions & 1 deletion charts/policy-reporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ image:
registry: ghcr.io
repository: kyverno/policy-reporter
pullPolicy: IfNotPresent
tag: ab7c0b6
tag: 05a2b24

imagePullSecrets: []

Expand Down Expand Up @@ -612,6 +612,8 @@ target:
accountId: ""
# Used product name, defaults to "Polilcy Reporter"
productName: ""
# Used product name, defaults to "Kyverno"
companyName: ""
# minimum severity "" < info < low < medium < high < critical
minimumSeverity: ""
# list of sources which should send to S3
Expand Down
2 changes: 1 addition & 1 deletion pkg/report/source_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func NewSourceFilter(pods PodClient, jobs JobClient, validations []SourceValidat
return &SourceFilter{pods: pods, jobs: jobs, validations: validations}
}

var controller = []string{"ReplicaSet", "DaemonSet", "CronJob", "Job"}
var controller = []string{"ReplicaSet", "DaemonSet", "CronJob", "Job", "Job", "StatefulSet"}

func Uncontrolled(owner []metav1.OwnerReference) bool {
if len(owner) == 0 {
Expand Down
2 changes: 1 addition & 1 deletion pkg/target/securityhub/securityhub.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func (c *client) CleanUp(ctx context.Context, report v1alpha2.ReportInterface) {

count, err := c.batchUpdate(ctx, list, types.WorkflowStatusResolved)
if err != nil {
zap.L().Error(c.Name()+": failed to batch archived findings", zap.Error(err))
zap.L().Error(c.Name()+": failed to batch resolve findings", zap.Error(err))
return
}

Expand Down

0 comments on commit ac016ac

Please sign in to comment.