kit-deployer
Advanced tools
Comparing version 8.7.0 to 8.8.0
{ | ||
"name": "kit-deployer", | ||
"version": "8.7.0", | ||
"version": "8.8.0", | ||
"description": "Use to deploy files to multiple kubernetes clusters.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -209,2 +209,3 @@ <p align="center"> | ||
| `FORCE` | Will push all changes even if there are no differences | yes | `false` | | ||
| `CREATE_ONLY` | Will only create resources that don't already exist. Will not perform any updates or removals. | yes | `false` | | ||
| `AVAILABLE_ENABLED` | Will check if deployed service is available, but will only affect if deployment is considered successful or not if --available-required is also enabled | yes | `false` | | ||
@@ -211,0 +212,0 @@ | `AVAILABLE_POLLING_INTERVAL` | The number of seconds to wait between status checking API requests | yes | `false` | |
@@ -35,2 +35,3 @@ "use strict"; | ||
force: false, | ||
createOnly: false, | ||
available: { | ||
@@ -206,2 +207,3 @@ enabled: false, | ||
force: self.options.force, | ||
createOnly: self.options.createOnly, | ||
backup: self.options.backup, | ||
@@ -208,0 +210,0 @@ elroy: self.options.elroy, |
@@ -55,2 +55,4 @@ "use strict"; | ||
selector: undefined, | ||
force: false, | ||
createOnly: false, | ||
dryRun: false, | ||
@@ -402,3 +404,7 @@ available: { | ||
} else { | ||
method = "Apply"; | ||
if (this.options.createOnly) { | ||
method = "Create"; | ||
} else { | ||
method = "Apply"; | ||
} | ||
} | ||
@@ -405,0 +411,0 @@ |
@@ -19,8 +19,9 @@ "use strict"; | ||
super(); | ||
this._options = options; | ||
switch (name) { | ||
case Strategies.RollingUpdate: | ||
this._strategy = new RollingUpdate.Strategy(options); | ||
this._strategy = new RollingUpdate.Strategy(this._options); | ||
break; | ||
case Strategies.FastRollback: | ||
this._strategy = new FastRollback.Strategy(options); | ||
this._strategy = new FastRollback.Strategy(this._options); | ||
break; | ||
@@ -50,2 +51,13 @@ } | ||
skipDeploy(manifest, found, differences) { | ||
// Skip if createOnly is enabled and the resoruce already exists | ||
if (found && this._options.createOnly) { | ||
this._strategy.emit( | ||
"info", | ||
"skipping deploy of " + | ||
manifest.metadata.name + | ||
" because it already exists and createOnly is enabled" | ||
); | ||
return true; | ||
} | ||
return this._strategy.skipDeploy(manifest, found, differences); | ||
@@ -52,0 +64,0 @@ } |
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
70862008
4014
236