Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
add toggle value for PSS migration (#1741)
Browse files Browse the repository at this point in the history
* add toggle value for PSS migration

* update nancy-ignore
  • Loading branch information
Berk Dehrioglu authored Oct 9, 2023
1 parent aa19dac commit c767ab3
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .nancy-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ CVE-2023-29401

# pkg:golang/google.golang.org/[email protected]
CVE-2023-32731

#pkg:golang/golang.org/x/[email protected]
CVE-2023-3978 until=2023-11-30
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add `global.podSecurityStandards.enforced` value for PSS migration.

## [8.2.0] - 2023-07-14

### Fixed
Expand Down
2 changes: 2 additions & 0 deletions helm/azure-operator/templates/psp.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- if not .Values.global.podSecurityStandards.enforced }}
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
Expand Down Expand Up @@ -32,3 +33,4 @@ spec:
hostNetwork: false
hostIPC: false
hostPID: false
{{- end }}
13 changes: 13 additions & 0 deletions helm/azure-operator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,19 @@
}
}
}
},
"global": {
"type": "object",
"properties": {
"podSecurityStandards": {
"type": "object",
"properties": {
"enforced": {
"type": "boolean"
}
}
}
}
}
}
}
4 changes: 4 additions & 0 deletions helm/azure-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,7 @@ registry:
token: ""
verticalPodAutoscaler:
enabled: true

global:
podSecurityStandards:
enforced: false

0 comments on commit c767ab3

Please sign in to comment.