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
Browse files Browse the repository at this point in the history
  • Loading branch information
bdehri committed Oct 6, 2023
1 parent aa19dac commit ec30797
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
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 ec30797

Please sign in to comment.