mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-12 01:11:19 +08:00
Filter imagePullSecrets to contain only non-empty values (#14)
This commit is contained in:
parent
26d4801e5e
commit
2a3bf64395
@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|||||||
const core = require("@actions/core");
|
const core = require("@actions/core");
|
||||||
exports.namespace = core.getInput('namespace');
|
exports.namespace = core.getInput('namespace');
|
||||||
exports.containers = core.getInput('images').split('\n');
|
exports.containers = core.getInput('images').split('\n');
|
||||||
exports.imagePullSecrets = core.getInput('imagepullsecrets').split('\n');
|
exports.imagePullSecrets = core.getInput('imagepullsecrets').split('\n').filter(secret => secret.trim().length > 0);
|
||||||
exports.manifests = core.getInput('manifests').split('\n');
|
exports.manifests = core.getInput('manifests').split('\n');
|
||||||
exports.canaryPercentage = core.getInput('percentage');
|
exports.canaryPercentage = core.getInput('percentage');
|
||||||
exports.deploymentStrategy = core.getInput('strategy');
|
exports.deploymentStrategy = core.getInput('strategy');
|
||||||
|
|||||||
@ -4,7 +4,7 @@ import * as core from '@actions/core';
|
|||||||
|
|
||||||
export let namespace: string = core.getInput('namespace');
|
export let namespace: string = core.getInput('namespace');
|
||||||
export const containers: string[] = core.getInput('images').split('\n');
|
export const containers: string[] = core.getInput('images').split('\n');
|
||||||
export const imagePullSecrets: string[] = core.getInput('imagepullsecrets').split('\n');
|
export const imagePullSecrets: string[] = core.getInput('imagepullsecrets').split('\n').filter(secret => secret.trim().length > 0);
|
||||||
export const manifests = core.getInput('manifests').split('\n');
|
export const manifests = core.getInput('manifests').split('\n');
|
||||||
export const canaryPercentage: string = core.getInput('percentage');
|
export const canaryPercentage: string = core.getInput('percentage');
|
||||||
export const deploymentStrategy: string = core.getInput('strategy');
|
export const deploymentStrategy: string = core.getInput('strategy');
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user