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 dependency @kubernetes/client-node to v0.22.3 #739

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
780 changes: 451 additions & 329 deletions package-lock.json
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@
},
"homepage": "https://github.com/appvia/psp-migration#readme",
"devDependencies": {
"@kubernetes/client-node": "0.17.0",
"@kubernetes/client-node": "0.22.3",
"@types/jest": "29.5.14",
"@types/materialize-css": "1.0.14",
"@types/node": "22.13.8",

Unchanged files with check annotations Beta

import * as mod from '../kyverno'
import * as yaml from 'js-yaml'

Check failure on line 2 in src/__tests__/kyverno.spec.ts

GitHub Actions / js-build-binaries

Could not find a declaration file for module 'js-yaml'. '/home/runner/work/psp-migration/psp-migration/node_modules/js-yaml/index.js' implicitly has an 'any' type.
import * as fs from 'fs'
describe('f', () => {
import * as ace from 'ace-builds'
import 'ace-builds/webpack-resolver'
import * as yaml from 'js-yaml'

Check failure on line 8 in src/browser.ts

GitHub Actions / js-build-binaries

Could not find a declaration file for module 'js-yaml'. '/home/runner/work/psp-migration/psp-migration/node_modules/js-yaml/index.js' implicitly has an 'any' type.
import { parse, transform } from './index'
import * as mod from './gatekeeper'
export function transform_gatekeeper(PSP: k8s.V1beta1PodSecurityPolicy): object[] {

Check failure on line 5 in src/gatekeeper.ts

GitHub Actions / js-build-binaries

Namespace '"/home/runner/work/psp-migration/psp-migration/node_modules/@kubernetes/client-node/dist/index"' has no exported member 'V1beta1PodSecurityPolicy'.
const policies = []
if (PSP.spec?.allowPrivilegeEscalation === false)
policies.push(mod.gatekeeper_pod_policy_helper('K8sPSPAllowPrivilegeEscalationContainer'))
policies.push(mod.gatekeeper_pod_policy_helper('K8sPSPHostNamespace'))
if (PSP.spec?.hostPorts)
PSP.spec?.hostPorts.forEach(portRange =>

Check failure on line 20 in src/gatekeeper.ts

GitHub Actions / js-build-binaries

Parameter 'portRange' implicitly has an 'any' type.
policies.push(mod.gatekeeper_pod_policy_helper('K8sPSPHostNetworkingPorts', { hostNetwork: true, min: portRange.min, max: portRange.max }))
)
policies.push(mod.gatekeeper_pod_policy_helper('K8sPSPHostFilesystem', { allowedHostPaths: PSP.spec?.allowedHostPaths }))
if (PSP.spec?.allowedProcMountTypes)
PSP.spec?.allowedProcMountTypes.forEach(procMountType =>

Check failure on line 49 in src/gatekeeper.ts

GitHub Actions / js-build-binaries

Parameter 'procMountType' implicitly has an 'any' type.
policies.push(mod.gatekeeper_pod_policy_helper('K8sPSPProcMount', { procMount: procMountType })))
if (PSP.spec?.allowedUnsafeSysctls || PSP.spec?.forbiddenSysctls)
import * as k8s from '@kubernetes/client-node'
import * as yaml from 'js-yaml'

Check failure on line 2 in src/index.ts

GitHub Actions / js-build-binaries

Could not find a declaration file for module 'js-yaml'. '/home/runner/work/psp-migration/psp-migration/node_modules/js-yaml/index.js' implicitly has an 'any' type.
import { createHash } from 'crypto'
import { transform_gatekeeper } from './gatekeeper'
import * as mod from './index'
export function parse(string: string): k8s.V1beta1PodSecurityPolicy {

Check failure on line 11 in src/index.ts

GitHub Actions / js-build-binaries

Namespace '"/home/runner/work/psp-migration/psp-migration/node_modules/@kubernetes/client-node/dist/index"' has no exported member 'V1beta1PodSecurityPolicy'.
return yaml.load(string) as k8s.V1beta1PodSecurityPolicy

Check failure on line 12 in src/index.ts

GitHub Actions / js-build-binaries

Namespace '"/home/runner/work/psp-migration/psp-migration/node_modules/@kubernetes/client-node/dist/index"' has no exported member 'V1beta1PodSecurityPolicy'.
}
export function transform(PSP: k8s.V1beta1PodSecurityPolicy, engine: string): object[] {

Check failure on line 15 in src/index.ts

GitHub Actions / js-build-binaries

Namespace '"/home/runner/work/psp-migration/psp-migration/node_modules/@kubernetes/client-node/dist/index"' has no exported member 'V1beta1PodSecurityPolicy'.
if (engine === 'gatekeeper')
return transform_gatekeeper(PSP).map(mod.unique_names)
import * as mod from './kubewarden'
export function transform_kubewarden(PSP: k8s.V1beta1PodSecurityPolicy): object[] {

Check failure on line 5 in src/kubewarden.ts

GitHub Actions / js-build-binaries

Namespace '"/home/runner/work/psp-migration/psp-migration/node_modules/@kubernetes/client-node/dist/index"' has no exported member 'V1beta1PodSecurityPolicy'.
const policies = []
if ( !PSP.spec?.privileged)