kube-workflow
Advanced tools
Comparing version 1.1.2 to 1.2.0
@@ -11,9 +11,4 @@ const { generate } = require("@socialgouv/env-slug") | ||
RANCHER_PROJECT_NAME, | ||
IMAGE_REGISTRY, | ||
IMAGE_NAME, | ||
GIT_REF, | ||
GIT_SHA, | ||
KEEP_ALIVE, | ||
CERT_SECRET_NAME, | ||
PRODUCTION_DATABASE, | ||
GIT_HEAD_REF, | ||
@@ -49,8 +44,5 @@ } = buildCtx.require("env") | ||
const keepAlive = Boolean(KEEP_ALIVE) | ||
const isRenovate = branchName.startsWith("renovate") | ||
const isDestroyable = isDev && !keepAlive | ||
const ttl = isDestroyable ? (isRenovate ? "1d" : "7d") : "" | ||
const ttl = isDev ? (isRenovate ? "1d" : "7d") : "" | ||
@@ -76,11 +68,8 @@ const sha = GIT_SHA | ||
const registry = IMAGE_REGISTRY || "ghcr.io/socialgouv" | ||
const imageName = IMAGE_NAME || repositoryName | ||
const image = `${registry}/${imageName}` | ||
const registry = "ghcr.io/socialgouv" | ||
const imageName = repositoryName | ||
const rancherProjectId = RANCHER_PROJECT_ID | ||
const certSecretName = | ||
CERT_SECRET_NAME || | ||
(isProduction ? `${repositoryName}-crt` : "wildcard-crt") | ||
const certSecretName = isProduction ? `${repositoryName}-crt` : "wildcard-crt" | ||
@@ -93,3 +82,3 @@ const pgSecretName = isProduction | ||
const productionDatabase = PRODUCTION_DATABASE || repositoryName | ||
const productionDatabase = repositoryName | ||
@@ -126,3 +115,4 @@ const pgDatabase = isProduction | ||
domain, | ||
image, | ||
registry, | ||
imageName, | ||
imageTag, | ||
@@ -129,0 +119,0 @@ branchSlug, |
@@ -27,3 +27,2 @@ #!/usr/bin/env node | ||
.option("--helm-args, -a", "add extra helm arguments") | ||
.option("--image-name, -i", "override image-name") | ||
.option("--repository, -r", "set repository, default to current folder name") | ||
@@ -53,3 +52,2 @@ .option("--output, -o", "enable direct output of manifest") | ||
HELM_ARGS: options.A || process.env.HELM_ARGS, | ||
IMAGE_NAME: options.I || process.env.IMAGE_NAME, | ||
@@ -56,0 +54,0 @@ GIT_REF, |
@@ -5,2 +5,17 @@ # Changelog | ||
## [1.2.0](https://github.com/SocialGouv/kube-workflow/compare/v1.1.2...v1.2.0) (2022-03-21) | ||
### Features | ||
* ingress annotations ([cb4f524](https://github.com/SocialGouv/kube-workflow/commit/cb4f524babebc03ec53afac418e0665248a3a320)) | ||
### Bug Fixes | ||
* **kube-workflow:** allow empty branch on NS ([#6](https://github.com/SocialGouv/kube-workflow/issues/6)) ([748de56](https://github.com/SocialGouv/kube-workflow/commit/748de5663d31a7a2e9a60f31af0881d1104327e6)) | ||
* **kube-workflow:** allow empty git branch on NS ([#5](https://github.com/SocialGouv/kube-workflow/issues/5)) ([931907d](https://github.com/SocialGouv/kube-workflow/commit/931907de25ed4bc080ad92af2ab496d87479af8e)) | ||
* remove wrong usage of yarn cache ([59c5388](https://github.com/SocialGouv/kube-workflow/commit/59c5388dd37dd5e9833d9f655ed29ec926f46d29)) | ||
* rm imageName input + clean ([2ab5f2a](https://github.com/SocialGouv/kube-workflow/commit/2ab5f2a6e97b48b1ad15e281287d1b77736dacce)) | ||
### [1.1.2](https://github.com/SocialGouv/kube-workflow/compare/v1.1.1...v1.1.2) (2022-03-20) | ||
@@ -7,0 +22,0 @@ |
{ | ||
"name": "kube-workflow", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"repository": "git@github.com:SocialGouv/kube-workflow.git", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
599343
141
25
639