kit-deployer
Advanced tools
Comparing version 6.9.1 to 7.0.0
{ | ||
"name": "kit-deployer", | ||
"version": "6.9.1", | ||
"version": "7.0.0", | ||
"description": "Use to deploy files to multiple kubernetes clusters.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -154,3 +154,2 @@ <p align="center"> | ||
| `FORCE` | Will push all changes even if there are no differences | yes | `false` | | ||
| `DELETE_RESOURCES` | Delete resources that are deployed to cluster but no manifest found locally | yes | `true` | | ||
| `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` | | ||
@@ -157,0 +156,0 @@ | `AVAILABLE_HEALTH_CHECK` | Will monitor for issues during the deployment | yes | `true` | |
@@ -25,3 +25,2 @@ "use strict"; | ||
force: false, | ||
deleteResources: true, | ||
available: { | ||
@@ -129,3 +128,2 @@ enabled: false, | ||
force: self.options.force, | ||
deleteResources: self.options.deleteResources, | ||
kubectl: kubectl | ||
@@ -132,0 +130,0 @@ }); |
@@ -44,3 +44,2 @@ "use strict"; | ||
selector: undefined, | ||
deleteResources: undefined, | ||
available: { | ||
@@ -408,30 +407,2 @@ enabled: false, | ||
// Delete remaining resources, if specified | ||
if (this.options.deleteResources === true) { | ||
_.each(remaining, (resource) => { | ||
// TODO: we have encountered a lot of issues with deleting Job type resources, so we will skip trying to delete them | ||
if (resource.kind !== "Job") { | ||
this.emit("info", "Delete " + resource.metadata.name); | ||
if (!this.options.dryRun) { | ||
kubePromises.push(this.kubectl.deleteByName(resource.kind, resource.metadata.name) | ||
.then((msg) => { | ||
this.emit("info", msg); | ||
}) | ||
.catch((err) => { | ||
this.emit("error", "Error running kubectl.deleteByName('" + resource.kind + "', '" + resource.metadata.name + "')' " + err); | ||
})); | ||
} | ||
} | ||
}); | ||
} else { | ||
this.emit("info", "Removal of resources disabled existing resources are not removed"); | ||
_.each(remaining, (resource) => { | ||
// Old jobs are not removed, taking out this conditional will display | ||
// a list of old jobs that can be removed. | ||
if (resource.kind !== "Job") { | ||
this.emit("info", "Not removing " + resource.metadata.name); | ||
} | ||
}); | ||
} | ||
return Promise | ||
@@ -438,0 +409,0 @@ .all(kubePromises) |
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
56585108
1620
173