Skip to content

feat: add IstioUpgradeStep type for pipeline automation#243

Merged
geoberle merged 4 commits into
Azure:mainfrom
trevorwilliams2025:istio-stage-1
Jun 17, 2026
Merged

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

Conversation

@trevorwilliams2025

@trevorwilliams2025 trevorwilliams2025 commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

Registers a new IstioUpgrade pipeline step type so the pipeline framework can parse and dispatch it.

What this includes

  • IstioUpgradeStep type with AKSCluster and DryRun fields
  • Unmarshalling case in resourcegroup.go for action: IstioUpgrade

What this does NOT include

  • No execution logic — that lives in ARO-HCP (pkg/istio/)
  • 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. The business logic will be added in a later iteration.

Testing

  • go build ./... passes
  • go test ./... passes
  • Validated end-to-end in pers-dev alongside ARO-HCP changes

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

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
@trevorwilliams2025 trevorwilliams2025 marked this pull request as ready for review June 15, 2026 23:42
Copilot AI review requested due to automatic review settings June 15, 2026 23:42

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

@raelga raelga left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

/lgtm
/approve

Introduces IstioUpgradeStep in the pipeline types system, enabling
a new Go-based Istio upgrade step to be registered and executed
within the pipeline framework.
@geoberle geoberle merged commit 2277df7 into Azure:main Jun 17, 2026
2 checks passed
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.

5 participants