HelmBlueGreenRoleSwitch - How it Works

JFrog Pipelines Documentation

ft:sourceType
Paligo

When you use the HelmBlueGreenRoleSwitch native step in a pipeline, it performs the below functions in the background. For more information about HelmBlueGreenRoleSwitch, see:HelmBlueGreenRoleSwitch.

  • restore_pipeline_files (restores referenced HelmBlueGreenDeploy step configuration)

  • kubectl get service (fetch Live Services to read annotations and discover current role played by the environments)

  • kubectl get service (fetch reference Services deployed by helm to create or update role Services)

  • Cleanup and update role Services definition (uses jq on Bash nodes and jq and ConvertFrom-Json on PowerShell nodes)

  • kubectl apply (create or update role Services)