Changes for annotate namespace and test cases

This commit is contained in:
Koushik Dey
2020-06-11 15:06:38 +05:30
parent fc977b0f8b
commit 62f2b9a070
8 changed files with 93 additions and 14 deletions
@@ -112,6 +112,7 @@ function checkManifestStability(kubectl, resources) {
}
function annotateResources(files, kubectl, resourceTypes, allPods) {
const annotateResults = [];
annotateResults.push(utility_1.annotateNamespace(kubectl, TaskInputParameters.namespace));
annotateResults.push(kubectl.annotateFiles(files, models.workflowAnnotations, true));
resourceTypes.forEach(resource => {
if (resource.type.toUpperCase() !== models.KubernetesWorkload.pod.toUpperCase()) {
@@ -149,7 +150,7 @@ function updateResourceObjects(filePaths, imagePullSecrets, containers) {
}
});
});
core.debug('New K8s objects after addin imagePullSecrets are :' + JSON.stringify(newObjectsList));
core.debug('New K8s objects after adding imagePullSecrets are :' + JSON.stringify(newObjectsList));
const newFilePaths = fileHelper.writeObjectsToFile(newObjectsList);
return newFilePaths;
}