Skip to content

feat: add IstioUpgradeStep type for pipeline automation#243

Draft
trevorwilliams2025 wants to merge 4 commits into
Azure:mainfrom
trevorwilliams2025:istio-stage-1
Draft

feat: add IstioUpgradeStep type for pipeline automation#243
trevorwilliams2025 wants to merge 4 commits into
Azure:mainfrom
trevorwilliams2025:istio-stage-1

Conversation

@trevorwilliams2025

@trevorwilliams2025 trevorwilliams2025 commented Jun 1, 2026

Copy link
Copy Markdown

Summary

Registers a new IstioUpgrade pipeline step type so the pipeline framework can parse and dispatch it. This is the first of two PRs for Stage 1 of the Istio upgrade automation project (AROSLSRE-966).

What this does NOT include

  • No execution logic — that lives in ARO-HCP (AROSLSRE-967, PR Initialize The Repo #2)
  • No config, schema, or dependency changes
  • No impact on existing pipeline steps or Istio processes

Context

This is inert code until ARO-HCP adds a pipeline entry that uses the IstioUpgrade action. PR #2 (ARO-HCP) will add a no-op handler that runs alongside the existing istio-upgrade shell step to prove the
plumbing works without affecting current operations. There will be a follow-up PR which will cover AROSLSRE-967 which will add a placeholder so the step can run with a simple msg to prove the plumbing is working for me. In later stages that simple msg will be replaced with the Go code to run the isito-upgrade replacement process.

Testing

  • go build ./... passes
  • go test ./... passes
  • Validated end-to-end in pers-dev alongside ARO-HCP changes PR Initialize The Repo #2

Copilot AI review requested due to automatic review settings June 1, 2026 03:17

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds support for an IstioUpgrade pipeline step type and wires it into step JSON unmarshalling.

Changes:

  • Introduces a new IstioUpgradeStep with JSON fields for aksCluster and optional dryRun.
  • Registers StepActionIstioUpgrade in the Steps.UnmarshalJSON action switch.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
pipelines/types/resourcegroup.go Adds IstioUpgrade case so the correct step struct is instantiated during JSON unmarshal.
pipelines/types/istio.go Defines the new IstioUpgrade step action constant and step type.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pipelines/types/istio.go
Comment thread pipelines/types/istio.go
Introduces IstioUpgradeStep in the pipeline types system, enabling
a new Go-based Istio upgrade step to be registered and executed
within the pipeline framework.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread pipelines/types/istio.go
Comment thread pipelines/types/istio.go
Comment thread pipelines/types/istio.go
@janboll

janboll commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

Reading the doc and looking at established patterns, I would expect an istioctl with this PR. Are you going to add it?
Take a look for instance at the grafanactl implementation

Comment thread pipelines/types/istio.go
@trevorwilliams2025 trevorwilliams2025 marked this pull request as draft June 4, 2026 06:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants