From 50a831ac424ccb8354938999f52daf7777f0a454 Mon Sep 17 00:00:00 2001 From: christosarvanitis Date: Tue, 12 Nov 2024 11:17:26 +0200 Subject: [PATCH] feat(deployManifest): Adding skipSpecTemplateLabels option --- packages/kubernetes/src/help/kubernetes.help.ts | 2 ++ .../stages/deployManifest/DeployManifestStageForm.tsx | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/packages/kubernetes/src/help/kubernetes.help.ts b/packages/kubernetes/src/help/kubernetes.help.ts index 3b2ceb15311..3fc6ffd3beb 100644 --- a/packages/kubernetes/src/help/kubernetes.help.ts +++ b/packages/kubernetes/src/help/kubernetes.help.ts @@ -211,6 +211,8 @@ const helpContents: { [key: string]: string } = { 'These artifacts must be present in the context for this stage to successfully complete. Artifacts specified will be bound to the deployed manifest.', 'kubernetes.manifest.skipExpressionEvaluation': '

Skip SpEL expression evaluation of the manifest artifact in this stage. Can be paired with the "Evaluate SpEL expressions in overrides at bake time" option in the Bake Manifest stage when baking a third-party manifest artifact with expressions not meant for Spinnaker to evaluate as SpEL.

', + 'kubernetes.manifest.skipSpecTemplateLabels': ` +

Skip applying the Reserved labels to the manifest's .spec.template.metadata.labels.

`, 'kubernetes.manifest.undoRollout.revisionsBack': `

How many revisions to rollback from the current active revision. This is not a hard-coded revision to rollout.

For example: If you specify "1", and this stage executes, the prior revision will be active upon success.

diff --git a/packages/kubernetes/src/pipelines/stages/deployManifest/DeployManifestStageForm.tsx b/packages/kubernetes/src/pipelines/stages/deployManifest/DeployManifestStageForm.tsx index c818185097d..30f0be9f723 100644 --- a/packages/kubernetes/src/pipelines/stages/deployManifest/DeployManifestStageForm.tsx +++ b/packages/kubernetes/src/pipelines/stages/deployManifest/DeployManifestStageForm.tsx @@ -187,6 +187,14 @@ export class DeployManifestStageForm extends React.Component< />
+

Deploy Configuration

+ + this.props.formik.setFieldValue('skipSpecTemplateLabels', e.target.checked)} + /> + +