Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ghcr.io/kubewarden/policies/host-namespaces-psp Docker tag to v0.1.7 #914

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 24 additions & 24 deletions src/__tests__/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ exports[`transform_kubewarden allowPrivilegeEscalation 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -1210,7 +1210,7 @@ exports[`transform_kubewarden allowedCapabilities 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -1313,7 +1313,7 @@ exports[`transform_kubewarden allowedFlexVolumes 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -1416,7 +1416,7 @@ exports[`transform_kubewarden allowedHostPaths 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -1520,7 +1520,7 @@ exports[`transform_kubewarden allowedProcMountTypes 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -1619,7 +1619,7 @@ exports[`transform_kubewarden allowedUnsafeSysctls 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -1721,7 +1721,7 @@ exports[`transform_kubewarden apparmor 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -1822,7 +1822,7 @@ exports[`transform_kubewarden defaultAddCapabilities 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -1927,7 +1927,7 @@ exports[`transform_kubewarden defaultAllowPrivilegeEscalation 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2026,7 +2026,7 @@ exports[`transform_kubewarden forbiddenSysctls 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2128,7 +2128,7 @@ exports[`transform_kubewarden fsgroup 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2233,7 +2233,7 @@ exports[`transform_kubewarden hostIPC 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2301,7 +2301,7 @@ exports[`transform_kubewarden hostNetwork 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2369,7 +2369,7 @@ exports[`transform_kubewarden hostPID 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2437,7 +2437,7 @@ exports[`transform_kubewarden hostPorts 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2510,7 +2510,7 @@ exports[`transform_kubewarden privileged 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2607,7 +2607,7 @@ exports[`transform_kubewarden readOnlyRootFilesystem 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2675,7 +2675,7 @@ exports[`transform_kubewarden requiredDropCapabilities 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2778,7 +2778,7 @@ exports[`transform_kubewarden runAsGroup 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -2891,7 +2891,7 @@ exports[`transform_kubewarden runAsUser 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -3002,7 +3002,7 @@ exports[`transform_kubewarden seLinux 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -3105,7 +3105,7 @@ exports[`transform_kubewarden seccomp 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -3211,7 +3211,7 @@ exports[`transform_kubewarden supplementalGroups 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down Expand Up @@ -3322,7 +3322,7 @@ exports[`transform_kubewarden volumes 1`] = `
"name": "psp-hostnamespaces",
},
"spec": {
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6",
"module": "registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7",
"mutating": false,
"rules": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/kubewarden.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function transform_kubewarden(PSP: k8s.V1beta1PodSecurityPolicy): object[

policies.push(mod.kubewarden_policy_helper(
'hostnamespaces',
'registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6',
'registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7',
{
allow_host_ipc: PSP.spec?.hostIPC ? PSP.spec.hostIPC : false,
allow_host_pid: PSP.spec?.hostPID ? PSP.spec.hostPID : false,
Expand Down
2 changes: 1 addition & 1 deletion tests/hostIPC/kubewarden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ClusterAdmissionPolicy
metadata:
name: hostipc
spec:
module: registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6
module: registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7
rules:
- apiGroups: [""]
apiVersions: ["v1"]
Expand Down
2 changes: 1 addition & 1 deletion tests/hostNetwork/kubewarden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ClusterAdmissionPolicy
metadata:
name: hostnetwork
spec:
module: registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6
module: registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7
rules:
- apiGroups: [""]
apiVersions: ["v1"]
Expand Down
2 changes: 1 addition & 1 deletion tests/hostPID/kubewarden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ClusterAdmissionPolicy
metadata:
name: hostpid
spec:
module: registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6
module: registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7
rules:
- apiGroups: [""]
apiVersions: ["v1"]
Expand Down
2 changes: 1 addition & 1 deletion tests/hostPorts/kubewarden.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ClusterAdmissionPolicy
metadata:
name: hostports
spec:
module: registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.6
module: registry://ghcr.io/kubewarden/policies/host-namespaces-psp:v0.1.7
rules:
- apiGroups: [""]
apiVersions: ["v1"]
Expand Down
Loading