Make namespace annotation switchable (#177)

This commit is contained in:
Jan Röhrich
2022-04-11 16:22:05 +02:00
committed by GitHub
parent bcdb90f36f
commit 75cb5d47f7
3 changed files with 15 additions and 3 deletions
+7 -3
View File
@@ -173,9 +173,13 @@ async function annotateResources(
workflowFilePath,
deploymentConfig
)}`;
annotateResults.push(
await kubectl.annotate("namespace", namespace, annotationKeyValStr)
);
const annotateNamespace = !(core.getInput("annotate-namespace").toLowerCase() === "false");
if (annotateNamespace) {
annotateResults.push(
await kubectl.annotate("namespace", namespace, annotationKeyValStr)
);
}
annotateResults.push(await kubectl.annotateFiles(files, annotationKeyValStr));
for (const resource of resourceTypes) {