add server-side option for kubectl apply commands (#424)

This commit is contained in:
benjamin
2025-07-03 11:15:06 -04:00
committed by GitHub
parent b9529f8427
commit cc1e193d23
8 changed files with 88 additions and 8 deletions
@@ -270,7 +270,13 @@ export async function deployObjects(
objectsList: any[]
): Promise<DeployResult> {
const manifestFiles = fileHelper.writeObjectsToFile(objectsList)
const execResult = await kubectl.apply(manifestFiles)
const forceDeployment = core.getInput('force').toLowerCase() === 'true'
const serverSideApply = core.getInput('server-side').toLowerCase() === 'true'
const execResult = await kubectl.apply(
manifestFiles,
forceDeployment,
serverSideApply
)
return {execResult, manifestFiles}
}