Skip to content

CORS-2628: Allow users to set ManagedBy tag to resource group#7205

Merged
openshift-merge-robot merged 5 commits intoopenshift:masterfrom
rna-afk:azure_managed_by_tag
Jul 26, 2023
Merged

CORS-2628: Allow users to set ManagedBy tag to resource group#7205
openshift-merge-robot merged 5 commits intoopenshift:masterfrom
rna-afk:azure_managed_by_tag

Conversation

@rna-afk
Copy link
Contributor

@rna-afk rna-afk commented May 24, 2023

Adding a pipe from the install config to terraform for enabling users to set the managedBy tag in the resource group. Defaulting to "openshift" if the field is not set.

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label May 24, 2023
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented May 24, 2023

@rna-afk: This pull request references CORS-2628 which is a valid jira issue.

Details

In response to this:

Adding a pipe from the install config to terraform for enabling users to set the managedBy tag in the resource group. Defaulting to "openshift" if the field is not set.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@openshift-ci openshift-ci bot requested review from jhixson74 and mtulio May 24, 2023 19:54
Copy link

@bennerv bennerv left a comment

Choose a reason for hiding this comment

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

@rna-afk I think there's some confusion here.

The managedBy field isn't a tag, it's an actual field on the resource group. It looks like terraform doesn't have native support for this field yet, which was realized late last week.

https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group.

The below shows that there's a difference.

$ az group show -n aro-dsfx17my 
{
  "id": "/subscriptions/<sub-id>/resourceGroups/aro-dsfx17my",
  "location": "eastus",
  "managedBy": "/subscriptions/<sub-id>/resourceGroups/shared-cluster/providers/Microsoft.RedHatOpenShift/openShiftClusters/shared-cluster",
  "name": "aro-dsfx17my",
  "properties": {
    "provisioningState": "Succeeded"
  },
  "tags": {
    "abd": "def",
    "createdAt": "2023-04-12T20:54:10.7804839Z",
    "hello": "world",
    "something": "something",
    "test": "test"
  },
  "type": "Microsoft.Resources/resourceGroups"
}

@rna-afk rna-afk changed the title CORS-2628: Allow users to set ManagedBy tag to resource group [WIP] CORS-2628: Allow users to set ManagedBy tag to resource group Jun 22, 2023
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 22, 2023
Updating azurerm provider version to latest (v.3.64) to bring in
the changes made to the azurerm_resource_group to add new field
`managed_by`.
@rna-afk rna-afk force-pushed the azure_managed_by_tag branch from cb73213 to c8a2837 Compare July 7, 2023 14:22
@rna-afk rna-afk changed the title [WIP] CORS-2628: Allow users to set ManagedBy tag to resource group CORS-2628: Allow users to set ManagedBy tag to resource group Jul 10, 2023
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 10, 2023
rna-afk added 3 commits July 13, 2023 13:59
Adding a pipe from the install config to terraform for enabling
users to set the managedBy tag in the resource group. Defaulting
to "openshift" if the field is not set.
vendoring modules after change of version for azurerm provider
Fixing the modules as per verify-vendor test
@rna-afk rna-afk force-pushed the azure_managed_by_tag branch from 7db8dad to 290efef Compare July 13, 2023 17:59
@rna-afk
Copy link
Contributor Author

rna-afk commented Jul 14, 2023

/retest-required

@rna-afk
Copy link
Contributor Author

rna-afk commented Jul 14, 2023

/retest

2 similar comments
@jhixson74
Copy link
Member

/retest

@jhixson74
Copy link
Member

/retest

@jhixson74
Copy link
Member

/lgtm
/approve

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jul 20, 2023
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 20, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jhixson74

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 20, 2023
@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD de33516 and 2 for PR HEAD 36bf1aa in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 1e9209a and 1 for PR HEAD 36bf1aa in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 69c182d and 0 for PR HEAD 36bf1aa in total

@openshift-ci-robot
Copy link
Contributor

/hold

Revision 36bf1aa was retested 3 times: holding

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 21, 2023
@rna-afk
Copy link
Contributor Author

rna-afk commented Jul 24, 2023

/retest

1 similar comment
@rna-afk
Copy link
Contributor Author

rna-afk commented Jul 24, 2023

/retest

@rna-afk
Copy link
Contributor Author

rna-afk commented Jul 25, 2023

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jul 25, 2023
@rna-afk
Copy link
Contributor Author

rna-afk commented Jul 25, 2023

/retest

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 8cd8f79 and 2 for PR HEAD 36bf1aa in total

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD b3fc874 and 1 for PR HEAD 36bf1aa in total

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 26, 2023

@rna-afk: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/okd-scos-images 36bf1aa link true /test okd-scos-images
ci/prow/e2e-azurestack 36bf1aa link false /test e2e-azurestack
ci/prow/okd-e2e-aws-ovn-upgrade 36bf1aa link false /test okd-e2e-aws-ovn-upgrade

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@openshift-ci-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 26a0d5c and 0 for PR HEAD 36bf1aa in total

@rna-afk
Copy link
Contributor Author

rna-afk commented Jul 26, 2023

/retest

@patrickdillon
Copy link
Contributor

/override ci/prow/okd-scos-images
/skip

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 26, 2023

@patrickdillon: Overrode contexts on behalf of patrickdillon: ci/prow/okd-scos-images

Details

In response to this:

/override ci/prow/okd-scos-images
/skip

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@patrickdillon
Copy link
Contributor

/override ci/prow/okd-scos-images

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 26, 2023

@patrickdillon: Overrode contexts on behalf of patrickdillon: ci/prow/okd-scos-images

Details

In response to this:

/override ci/prow/okd-scos-images

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@patrickdillon
Copy link
Contributor

/skip

@openshift-merge-robot openshift-merge-robot merged commit 87fbf26 into openshift:master Jul 26, 2023
rna-afk added a commit to rna-afk/installer that referenced this pull request Aug 9, 2023
…by_tag"

This reverts commit 87fbf26, reversing
changes made to 26a0d5c.
openshift-merge-robot added a commit that referenced this pull request Aug 24, 2023
OCPBUGS-17073: Revert "Merge pull request #7205 from rna-afk/azure_managed_by_tag"
patrickdillon pushed a commit to patrickdillon/installer that referenced this pull request Oct 24, 2023
CORS-2628: Allow users to set ManagedBy tag to resource group
patrickdillon pushed a commit to patrickdillon/installer that referenced this pull request Oct 24, 2023
…by_tag"

This reverts commit 87fbf26, reversing
changes made to 26a0d5c.
patrickdillon pushed a commit to patrickdillon/installer that referenced this pull request Oct 24, 2023
OCPBUGS-17073: Revert "Merge pull request openshift#7205 from rna-afk/azure_managed_by_tag"
r4f4 pushed a commit to r4f4/installer that referenced this pull request Oct 24, 2023
…by_tag"

This reverts commit 87fbf26, reversing
changes made to 26a0d5c.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants