Skip to content

Conversation

@iamemilio
Copy link

@iamemilio iamemilio commented Mar 1, 2021

Gives users the ability to tag the ports CAPO creates based on the network or subnet they are attached to. Some Usage patterns in the ProviderSpec are as follows:

...
tags:
  - tag1
Networks:
  - uuid: ****-****-****-net1
    portTags:
      - tag2
    subnets:
      - uuid: ****-****-****-snet1
        portTags: 
          - tag3
      - uuid: ****-****-****-snet2
        portTags: 
          - tag4

tag1: all resources created by CAPO
tag2: all ports attached to network net1 created by CAPO
tag3: all ports attached to subnet snet1 created by CAPO
tag4: all ports attached to subnet snet2 created by CAPO

Fixes: OSASINFRA-2348

@iamemilio
Copy link
Author

/assign @adduarte

@iamemilio
Copy link
Author

iamemilio commented Mar 1, 2021

As per offline convo with @adduarte, I added a function to ensure users don't mistakenly duplicate tags for ports, as well as a set of tests to check it. Note that list order is not preserved, but it does not matter in this case.

@iamemilio
Copy link
Author

/retest

@adduarte
Copy link

adduarte commented Mar 2, 2021

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Mar 2, 2021
Copy link

@Fedosin Fedosin left a comment

Choose a reason for hiding this comment

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

/lgtm

@Fedosin
Copy link

Fedosin commented Mar 2, 2021

/approve

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Fedosin

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-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 2, 2021
@openshift-merge-robot openshift-merge-robot merged commit cf934b8 into openshift:master Mar 2, 2021
pierreprinetti pushed a commit to shiftstack/cluster-api-provider-openstack that referenced this pull request Apr 22, 2024
fix incorrect path description, in future it may corrupt scripting arch.

Close openshift#166
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. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants