Skip to content

feat(route-tls)!: require explicit route_name input - #144

Merged
DerekRoberts merged 1 commit into
mainfrom
fix/route-tls-require-route-name
Oct 28, 2026
Merged

DerekRoberts merged 1 commit into
mainfrom
fix/route-tls-require-route-name

Conversation

@DerekRoberts

Copy link
Copy Markdown
Member

Defaulting route_name to -vanity-url leads callers to omit the input and fail against existing OpenShift routes named -prod-frontend-vanity.

Changes

  • Makes route_name a required input on route-tls/action.yml without a speculative default.
  • Updates route-tls/README.md usage snippet and documentation to reflect the required input.
  • Adds agent guidance to AGENTS.md instructing agents to look up existing route names when migrating.
  • Updates .github/workflows/pr-open.yml dry-run steps to pass route_name explicitly.

@DerekRoberts DerekRoberts self-assigned this Oct 28, 2026
@DerekRoberts
DerekRoberts marked this pull request as ready for review October 28, 2026 01:10
Copilot AI balanced review requested due to automatic review settings October 28, 2026 01:10
@DerekRoberts
DerekRoberts merged commit d429a58 into main Oct 28, 2026
31 checks passed
@DerekRoberts
DerekRoberts deleted the fix/route-tls-require-route-name branch October 28, 2026 01:11
@github-project-automation github-project-automation Bot moved this from New to Done in DevOps (NR) Oct 28, 2026

Copilot AI 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.

🟡 Changes recommended

Composite actions do not enforce required: true, so an omitted or empty route_name still triggers the legacy fallback and preserves the route conflict this change is intended to prevent.

1 open issue
What changed in this PR

This PR makes explicit Route naming part of the route-tls action’s declared contract, helping callers target existing OpenShift Routes rather than assume a generated name.

Changes:

  • Marks route_name as required and removes its metadata default.
  • Updates usage documentation and migration guidance.
  • Supplies explicit Route names in both PR dry-run steps.
File Description
route-tls/​README.md Updates the usage example and Route naming guidance.
route-tls/​action.yml Declares route_name required without a default.
AGENTS.md Adds guidance for selecting existing and new Route names.
.github/​workflows/​pr-open.yml Passes explicit Route names in dry-run calls.

Review effort: Balanced

Comment thread route-tls/action.yml
required: false
default: ${{ github.event.repository.name }}-vanity-url
description: "OpenShift Route name (e.g. <repository>-prod-frontend-vanity or <repository>-vanity-url)."
required: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants