-
Notifications
You must be signed in to change notification settings - Fork 11
Feature/filter alicloud resources by tags #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
openshift-merge-robot
merged 6 commits into
openshift:main
from
menglingwei:feature/filter-alicloud-resources-by-tags
Nov 10, 2021
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5de7bad
add getInstanceType func for machineSet
cd6a689
an error returned instead of bool
0b9c3fa
use lowercase
58609df
support query securityGroups and vSwitch by tags
4079560
fix func buildDescribeSecurityGroupsTag
6d4c532
modify the providerID format to <region>.<instanceid>
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,7 @@ | |
| .idea/ | ||
| bin/ | ||
| examples/secret.yaml | ||
| config/bootstrap-master.yaml | ||
| config/bootstrap-worker.yaml | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| --- | ||
| apiVersion: machine.openshift.io/v1beta1 | ||
| kind: Machine | ||
| metadata: | ||
| name: master-machine | ||
| namespace: default | ||
| labels: | ||
| machine.openshift.io/cluster-api-cluster: alibabacloud-actuator-k8s | ||
| spec: | ||
| metadata: | ||
| labels: | ||
| node-role.kubernetes.io/master: "" | ||
| providerSpec: | ||
| value: | ||
| apiVersion: alibabacloudproviderconfig.openshift.io/v1alpha1 | ||
| kind: AlibabaCloudMachineProviderConfig | ||
| instanceType: FILLIN | ||
| imageId: FILLIN | ||
| regionId: FILLIN | ||
| zoneId: FILLIN | ||
| securityGroups: | ||
| - tags: | ||
| - key: Name | ||
| value: ocp-test-sg | ||
| - key: "kubernetes.io/cluster/abc-def" | ||
| value: owned | ||
| - key: OCP | ||
| value: ISVAlibaba | ||
| vpcId: FILLIN | ||
| vSwitch: | ||
| tags: | ||
| - key: Name | ||
| value: ocp-test-vswitch | ||
| - key: "kubernetes.io/cluster/abc-def" | ||
| value: owned | ||
| - key: OCP | ||
| value: ISVAlibaba | ||
| systemDiskCategory: FILLIN | ||
| systemDiskSize: FILLIN | ||
| internetMaxBandwidthOut: FILLIN | ||
| password: FILLIN | ||
| tags: | ||
| - key: openshift-node-group-config | ||
| value: node-config-node | ||
| - key: host-type | ||
| value: node | ||
| - key: sub-host-type | ||
| value: default | ||
| userDataSecret: | ||
| name: master-user-data-secret | ||
| credentialsSecret: | ||
| name: alibabacloud-credentials-secret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| --- | ||
| apiVersion: machine.openshift.io/v1beta1 | ||
| kind: Machine | ||
| metadata: | ||
| name: worker-machine | ||
| namespace: default | ||
| labels: | ||
| machine.openshift.io/cluster-api-cluster: alicloud-actuator-k8s | ||
| spec: | ||
| metadata: | ||
| labels: | ||
| node-role.kubernetes.io/infra: "" | ||
| providerSpec: | ||
| value: | ||
| apiVersion: alicloudproviderconfig.openshift.io/v1alpha1 | ||
| kind: AlibabaCloudMachineProviderConfig | ||
| instanceType: FILLIN | ||
| imageId: FILLIN | ||
| regionId: FILLIN | ||
| zoneId: FILLIN | ||
| securityGroups: | ||
| - tags: | ||
| - key: Name | ||
| value: ocp-test-sg | ||
| - key: "kubernetes.io/cluster/abc-def" | ||
| value: owned | ||
| - key: OCP | ||
| value: ISVAlibaba | ||
| vpcId: FILLIN | ||
| vSwitch: | ||
| tags: | ||
| - key: Name | ||
| value: ocp-test-vswitch | ||
| - key: "kubernetes.io/cluster/abc-def" | ||
| value: owned | ||
| - key: OCP | ||
| value: ISVAlibaba | ||
| systemDiskCategory: FILLIN | ||
| systemDiskSize: FILLIN | ||
| internetMaxBandwidthOut: FILLIN | ||
| password: FILLIN | ||
| tags: | ||
| - key: openshift-node-group-config | ||
| value: node-config-node | ||
| - key: host-type | ||
| value: node | ||
| - key: sub-host-type | ||
| value: default | ||
| userDataSecret: | ||
| name: worker-user-data-secret | ||
| credentialsSecret: | ||
| name: alibabacloud-credentials-secret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When
ResourceGroupIDis specified I am unable to query for the correct security group. I would remove resource group id.Notice the
resourceGroupIDis not set.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think if you don't assign an instance(ig. ECS Instance Or SecurityGroup ,etc) to a resource group. You don't need to set the resourceGroupID. If you set the resourceGroupID. The API simply returns the resources under a given resource group.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kwoodson I think I can explain the problem, it should be that the resource_group is not specified here
resource_group_idparameter, I have fixed it and submitted it in #5348