UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit c20ba719 authored by bigbang bot's avatar bigbang bot Committed by Ernest Chuang
Browse files

Kyverno Policies: Update kubectl

parent 53a4c952
No related branches found
No related tags found
1 merge request!65Kyverno Policies: Update kubectl
......@@ -2,12 +2,18 @@
Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
## [1.1.1] - 2023-01-26
---
## [1.1.0-bb.2] - 2023-02-07
### Changed
- Updated kubectl to v1.26.1
- Updated gluon to 0.3.2
## [1.1.0-bb.1] - 2023-01-26
### Changed
- Updated kubectl to v1.25.6
- Updated gluon to 0.3.1
## [1.1.0] - 2023-01-11
## [1.1.0-bb.0] - 2023-01-11
### Changed
- Removed `disallow-shared-subpath-volume-writes` policy (no longer beneficial for any non-EOL k8s versions)
- Removed Ironbank key from test values
......
# kyverno-policies
![Version: 1.1.0-bb.1](https://img.shields.io/badge/Version-1.1.0--bb.1-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square)
![Version: 1.1.0-bb.2](https://img.shields.io/badge/Version-1.1.0--bb.2-informational?style=flat-square) ![AppVersion: 1.1.0](https://img.shields.io/badge/AppVersion-1.1.0-informational?style=flat-square)
Collection of Kyverno security and best-practice policies for Kyverno
......@@ -42,7 +42,7 @@ helm install kyverno-policies chart/
| excludeContainers | list | `[]` | Adds an excludeContainers to all policies. This is merged with any policy-specific excludeContainers. |
| customLabels | object | `{}` | Additional labels to apply to all policies. |
| waitforready.enabled | bool | `true` | Controls wait for ready deployment |
| waitforready.image | object | `{"repository":"registry1.dso.mil/ironbank/opensource/kubernetes/kubectl","tag":"v1.25.6"}` | Image to use in wait for ready job. This must contain kubectl. |
| waitforready.image | object | `{"repository":"registry1.dso.mil/ironbank/opensource/kubernetes/kubectl","tag":"v1.26.1"}` | Image to use in wait for ready job. This must contain kubectl. |
| waitforready.imagePullSecrets | list | `[]` | Pull secret for wait for ready job |
| policies.sample | object | `{"enabled":false,"exclude":{},"match":{},"parameters":{"excludeContainers":[]},"validationFailureAction":"audit","webhookTimeoutSeconds":""}` | Sample policy showing values that can be added to any policy |
| policies.sample.enabled | bool | `false` | Controls policy deployment |
......@@ -142,7 +142,7 @@ helm install kyverno-policies chart/
| additionalPolicies.samplePolicy.annotations."policies.kyverno.io/description" | string | `"This sample policy blocks pods from deploying into the 'default' namespace."` | Description of what the policy does, why it is important, and what items are allowed or unallowed. |
| additionalPolicies.samplePolicy.spec | object | `{"rules":[{"match":{"any":[{"resources":{"kinds":["Pods"]}}]},"name":"sample-rule","validate":{"message":"Using 'default' namespace is not allowed.","pattern":{"metadata":{"namespace":"!default"}}}}]}` | Policy specification. See `kubectl explain clusterpolicies.spec` |
| additionalPolicies.samplePolicy.spec.rules | list | `[{"match":{"any":[{"resources":{"kinds":["Pods"]}}]},"name":"sample-rule","validate":{"message":"Using 'default' namespace is not allowed.","pattern":{"metadata":{"namespace":"!default"}}}}]` | Policy rules. At least one is required |
| bbtests | object | `{"enabled":false,"imagePullSecret":"private-registry","scripts":{"additionalVolumeMounts":[{"mountPath":"/yaml","name":"kyverno-policies-bbtest-manifests"},{"mountPath":"/.kube/cache","name":"kyverno-policies-bbtest-kube-cache"}],"additionalVolumes":[{"configMap":{"name":"kyverno-policies-bbtest-manifests"},"name":"kyverno-policies-bbtest-manifests"},{"emptyDir":{},"name":"kyverno-policies-bbtest-kube-cache"}],"envs":{"ENABLED_POLICIES":"{{ $p := list }}{{ range $k, $v := .Values.policies }}{{ if $v.enabled }}{{ $p = append $p $k }}{{ end }}{{ end }}{{ join \" \" $p }}","IMAGE_PULL_SECRET":"{{ .Values.bbtests.imagePullSecret }}"},"image":"registry1.dso.mil/ironbank/opensource/kubernetes/kubectl:v1.25.6"}}` | Reserved values for Big Bang test automation |
| bbtests | object | `{"enabled":false,"imagePullSecret":"private-registry","scripts":{"additionalVolumeMounts":[{"mountPath":"/yaml","name":"kyverno-policies-bbtest-manifests"},{"mountPath":"/.kube/cache","name":"kyverno-policies-bbtest-kube-cache"}],"additionalVolumes":[{"configMap":{"name":"kyverno-policies-bbtest-manifests"},"name":"kyverno-policies-bbtest-manifests"},{"emptyDir":{},"name":"kyverno-policies-bbtest-kube-cache"}],"envs":{"ENABLED_POLICIES":"{{ $p := list }}{{ range $k, $v := .Values.policies }}{{ if $v.enabled }}{{ $p = append $p $k }}{{ end }}{{ end }}{{ join \" \" $p }}","IMAGE_PULL_SECRET":"{{ .Values.bbtests.imagePullSecret }}"},"image":"registry1.dso.mil/ironbank/opensource/kubernetes/kubectl:v1.26.1"}}` | Reserved values for Big Bang test automation |
## Contributing
......
apiVersion: v2
name: kyverno-policies
version: 1.1.0-bb.1
version: 1.1.0-bb.2
appVersion: 1.1.0
icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
description: Collection of Kyverno security and best-practice policies for Kyverno
......@@ -22,4 +22,4 @@ annotations:
# Kubectl image is used if waitforready.enabled or bbtests.enabled
helm.sh/images: |
- name: kubectl
image: registry1.dso.mil/ironbank/opensource/kubernetes/kubectl:v1.25.6
image: registry1.dso.mil/ironbank/opensource/kubernetes/kubectl:v1.26.1
......@@ -30,7 +30,7 @@ waitforready:
# -- Image to use in wait for ready job. This must contain kubectl.
image:
repository: registry1.dso.mil/ironbank/opensource/kubernetes/kubectl
tag: v1.25.6
tag: v1.26.1
# -- Pull secret for wait for ready job
imagePullSecrets: []
......@@ -507,7 +507,7 @@ additionalPolicies:
bbtests:
enabled: false
scripts:
image: registry1.dso.mil/ironbank/opensource/kubernetes/kubectl:v1.25.6
image: registry1.dso.mil/ironbank/opensource/kubernetes/kubectl:v1.26.1
envs:
ENABLED_POLICIES: '{{ $p := list }}{{ range $k, $v := .Values.policies }}{{ if $v.enabled }}{{ $p = append $p $k }}{{ end }}{{ end }}{{ join " " $p }}'
IMAGE_PULL_SECRET: '{{ .Values.bbtests.imagePullSecret }}'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment