Skip to content

Backport of docs: Update K8s TGW tutorial to reliably obtain role ID into release/1.14.x#18506

Merged
blake merged 1 commit intorelease/1.14.xfrom
backport/docs/k8s-tgw-tutorial-role-id-fix/presumably-decent-barnacle
Aug 17, 2023
Merged

Backport of docs: Update K8s TGW tutorial to reliably obtain role ID into release/1.14.x#18506
blake merged 1 commit intorelease/1.14.xfrom
backport/docs/k8s-tgw-tutorial-role-id-fix/presumably-decent-barnacle

Conversation

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

Backport

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

🚨

Warning automatic cherry-pick of commits failed. If the first commit failed,
you will see a blank no-op commit below. If at least one commit succeeded, you
will see the cherry-picked commits up to, not including, the commit where
the merge conflict occurred.

The person who merged in the original PR is:
@blake
This person should manually cherry-pick the original PR into a new backport PR,
and close this one when the manual backport PR is merged in.

merge conflict error: POST https://api.github.com/repos/hashicorp/consul/merges: 409 Merge conflict []

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


The grep command used to obtain the ID for the terminating gateway role is not reliable in all scenarios. For example, if there is a similarly named role, the command may return the wrong role ID for the active terminating gateway instance.

This commit updates the command to use jq to obtain the role ID. If multiple roles are found, jq will raise an error informing the user that it cannot reliably determine the role ID.

Description

Testing & Reproduction steps

Links

PR Checklist

  • updated test coverage
  • external facing docs updated
  • appropriate backport labels added
  • not a security concern

Overview of commits

@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/docs/k8s-tgw-tutorial-role-id-fix/presumably-decent-barnacle branch from 3a768a2 to 922675d Compare August 17, 2023 15:42
@hc-github-team-consul-core hc-github-team-consul-core force-pushed the backport/docs/k8s-tgw-tutorial-role-id-fix/presumably-decent-barnacle branch from 922675d to 3a768a2 Compare August 17, 2023 15:42
@hashicorp-cla
Copy link
Copy Markdown

hashicorp-cla commented Aug 17, 2023

CLA assistant check
All committers have signed the CLA.

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

@vercel vercel bot temporarily deployed to Preview – consul August 17, 2023 15:48 Inactive
@blake blake marked this pull request as ready for review August 17, 2023 17:55
@blake blake requested a review from a team as a code owner August 17, 2023 17:55
@blake blake force-pushed the backport/docs/k8s-tgw-tutorial-role-id-fix/presumably-decent-barnacle branch from 8fb9074 to dcae123 Compare August 17, 2023 17:57
@blake blake enabled auto-merge (squash) August 17, 2023 17:58
The `grep` command used to obtain the ID for the terminating gateway
role is not reliable in all scenarios. For example, if there is a
similarly named role, the command may return the wrong role ID for the
active terminating gateway instance.

This commit updates the command to use jq to obtain the role ID. If
multiple roles are found, jq will raise an error informing the user
that it cannot reliably determine the role ID.
@blake blake force-pushed the backport/docs/k8s-tgw-tutorial-role-id-fix/presumably-decent-barnacle branch from dcae123 to 08dd325 Compare August 17, 2023 19:58
@blake blake merged commit fec647f into release/1.14.x Aug 17, 2023
@blake blake deleted the backport/docs/k8s-tgw-tutorial-role-id-fix/presumably-decent-barnacle branch August 17, 2023 20:08
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.

4 participants