Skip to content

Backport of Add validation for apigw creation with no routes into release/1.15.x#16679

Merged
missylbytes merged 8 commits into
release/1.15.xfrom
backport/add-checks-apigw-creation-no-routes/personally-winning-foxhound
Mar 20, 2023
Merged

Backport of Add validation for apigw creation with no routes into release/1.15.x#16679
missylbytes merged 8 commits into
release/1.15.xfrom
backport/add-checks-apigw-creation-no-routes/personally-winning-foxhound

Conversation

@hc-github-team-consul-core
Copy link
Copy Markdown
Collaborator

Backport

This PR is auto-generated from #16649 to be assessed for backporting due to the inclusion of the label backport/1.15.

WARNING automatic cherry-pick of commits failed. Commits will require human attention.

merge conflict error: unable to process merge commit: "25828df8bfa72177758b4289257d8ccade3f2bc6", automatic backport requires rebase workflow

The below text is copied from the body of the original PR.


Description

To meet the standard (Gateways require at least one listener defined) we need to add checks in to verify that at least one listener is defined.

Testing & Reproduction steps

make dev-build 
consul agent -dev

Open another terminal, create a file called gateway.hcl with the following content:

Kind = "api-gateway"
Name = "my-gateway"

After creating the file, run the following command in the same terminal:

consul config write gateway.hcl

This should error out, saying "api gateway must have at least one listener"

PR Checklist

  • updated test coverage
  • external facing docs updated
  • not a security concern

Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/add-checks-apigw-creation-no-routes/personally-winning-foxhound branch from 470712c to fb50745 Compare March 20, 2023 16:37
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/add-checks-apigw-creation-no-routes/personally-winning-foxhound branch 2 times, most recently from ceeddce to 87b968b Compare March 20, 2023 16:37
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Auto approved Consul Bot automated PR

@github-actions github-actions Bot added the type/docs Documentation needs to be created/updated/clarified label Mar 20, 2023
@jm96441n jm96441n marked this pull request as ready for review March 20, 2023 16:47
@jm96441n jm96441n requested a review from a team as a code owner March 20, 2023 16:47
@missylbytes missylbytes merged commit 7f7d282 into release/1.15.x Mar 20, 2023
@missylbytes missylbytes deleted the backport/add-checks-apigw-creation-no-routes/personally-winning-foxhound branch March 20, 2023 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/docs Documentation needs to be created/updated/clarified

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants