Socket
Socket
Sign inDemoInstall

kube-workflow

Package Overview
Dependencies
16
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.10 to 1.6.0

patches/defaults/index.js

2

package.json
{
"name": "kube-workflow",
"version": "1.5.10",
"version": "1.6.0",
"repository": "git@github.com:SocialGouv/kube-workflow.git",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -61,3 +61,3 @@ const os = require("os")

logger.debug("Import charts")
logger.debug("Import kube-workflow charts and patches")
await Promise.all([

@@ -68,2 +68,3 @@ fs.copy(`${KUBEWORKFLOW_PATH}/Chart.yaml`, `${KWBUILD_PATH}/Chart.yaml`),

fs.copy(`${KUBEWORKFLOW_PATH}/charts`, `${KWBUILD_PATH}/charts`),
fs.copy(`${KUBEWORKFLOW_PATH}/patches`, `${KWBUILD_PATH}/patches`),
])

@@ -108,3 +109,3 @@

logger.debug("Merge .kube-workflow templates")
logger.debug("Merge project templates")
for (const dir of [

@@ -123,2 +124,9 @@ "templates",

}
logger.debug("Merge project patches")
const patchesDir = `${buildKubeworkflowPath}/patches`
if (await fs.pathExists(patchesDir)) {
await fs.copy(patchesDir, `${KWBUILD_PATH}/patches`, {
dereference: true,
})
}

@@ -125,0 +133,0 @@ if (COMPONENTS) {

@@ -5,4 +5,10 @@ const yaml = require("js-yaml")

const { buildCtx } = require("~/build/ctx")
module.exports = async (manifestsDocument, values) => {
const defaultNamespace = values.global.namespace
const env = buildCtx.require("env")
const { KWBUILD_PATH } = env
const patches = require(`${KWBUILD_PATH}/patches`)
const iterator = yaml.loadAll(manifestsDocument)

@@ -13,15 +19,11 @@ const manifests = []

for (const manifest of iterator) {
for (let manifest of iterator) {
if (!manifest) {
continue
}
if (manifest.kind !== "Namespace") {
if (!manifest.metadata) {
manifest.metadata = {}
}
if (!manifest.metadata.namespace) {
manifest.metadata.namespace = defaultNamespace
}
}
removeNulls(manifest)
manifest = patches(manifest, values)
if (manifest.metadata?.name) {

@@ -35,4 +37,2 @@ const n = `${manifest.kind}.${manifest.metadata.namespace}.${manifest.metadata.name}`

removeNulls(manifest)
manifests.push(yaml.dump(manifest))

@@ -39,0 +39,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc