mirror of
https://github.com/Azure/k8s-deploy.git
synced 2026-04-11 16:52:18 +08:00
Removing optional input arguments from the action (#139)
This commit is contained in:
parent
9a12be5d3d
commit
ec2a943cdd
@ -42,9 +42,6 @@ inputs:
|
|||||||
description: 'Percentage of traffic redirect to canary deployment'
|
description: 'Percentage of traffic redirect to canary deployment'
|
||||||
required: false
|
required: false
|
||||||
default: 0
|
default: 0
|
||||||
args:
|
|
||||||
description: 'Arguments'
|
|
||||||
required: false
|
|
||||||
action:
|
action:
|
||||||
description: 'deploy/promote/reject'
|
description: 'deploy/promote/reject'
|
||||||
required: true
|
required: true
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.githubToken = exports.forceDeployment = exports.args = exports.baselineAndCanaryReplicas = exports.versionSwitchBuffer = exports.routeMethod = exports.trafficSplitMethod = exports.deploymentStrategy = exports.canaryPercentage = exports.manifests = exports.imagePullSecrets = exports.containers = exports.namespace = void 0;
|
exports.githubToken = exports.forceDeployment = exports.baselineAndCanaryReplicas = exports.versionSwitchBuffer = exports.routeMethod = exports.trafficSplitMethod = exports.deploymentStrategy = exports.canaryPercentage = exports.manifests = exports.imagePullSecrets = exports.containers = exports.namespace = void 0;
|
||||||
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');
|
||||||
@ -12,7 +12,6 @@ exports.trafficSplitMethod = core.getInput('traffic-split-method');
|
|||||||
exports.routeMethod = core.getInput('route-method');
|
exports.routeMethod = core.getInput('route-method');
|
||||||
exports.versionSwitchBuffer = core.getInput('version-switch-buffer');
|
exports.versionSwitchBuffer = core.getInput('version-switch-buffer');
|
||||||
exports.baselineAndCanaryReplicas = core.getInput('baseline-and-canary-replicas');
|
exports.baselineAndCanaryReplicas = core.getInput('baseline-and-canary-replicas');
|
||||||
exports.args = core.getInput('arguments');
|
|
||||||
exports.forceDeployment = core.getInput('force').toLowerCase() == 'true';
|
exports.forceDeployment = core.getInput('force').toLowerCase() == 'true';
|
||||||
exports.githubToken = core.getInput("token");
|
exports.githubToken = core.getInput("token");
|
||||||
if (!exports.namespace) {
|
if (!exports.namespace) {
|
||||||
|
|||||||
@ -12,7 +12,6 @@ export const trafficSplitMethod: string = core.getInput('traffic-split-method');
|
|||||||
export const routeMethod: string = core.getInput('route-method');
|
export const routeMethod: string = core.getInput('route-method');
|
||||||
export const versionSwitchBuffer: string = core.getInput('version-switch-buffer');
|
export const versionSwitchBuffer: string = core.getInput('version-switch-buffer');
|
||||||
export const baselineAndCanaryReplicas: string = core.getInput('baseline-and-canary-replicas');
|
export const baselineAndCanaryReplicas: string = core.getInput('baseline-and-canary-replicas');
|
||||||
export const args: string = core.getInput('arguments');
|
|
||||||
export const forceDeployment: boolean = core.getInput('force').toLowerCase() == 'true';
|
export const forceDeployment: boolean = core.getInput('force').toLowerCase() == 'true';
|
||||||
export const githubToken = core.getInput("token");
|
export const githubToken = core.getInput("token");
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user