From 54a071631a2fb7a91082d9dffbc9b28ef7f004f9 Mon Sep 17 00:00:00 2001 From: Jason-Zhang Date: Fri, 18 Oct 2024 16:43:42 +0800 Subject: [PATCH] Dev examples (#5) * add eip resources * add and update eip resources * Revert "add eip resources" * add examples of eip --- examples/eip/globaleip.yaml | 17 +++++++++++++ examples/eip/globaleipassociate.yaml | 23 +++++++++++++++++ examples/eip/globalinternetbandwidth.yaml | 20 +++++++++++++++ examples/eip/vpcbandwidth.yaml | 12 +++++++++ examples/eip/vpcbandwidthassociate.yaml | 31 +++++++++++++++++++++++ examples/eip/vpceip.yaml | 17 +++++++++++++ examples/eip/vpceipassociate.yaml | 14 ++++++++++ examples/eip/vpceipv3associate.yaml | 15 +++++++++++ examples/eip/vpcinternetgateway.yaml | 15 +++++++++++ 9 files changed, 164 insertions(+) create mode 100644 examples/eip/globaleip.yaml create mode 100644 examples/eip/globaleipassociate.yaml create mode 100644 examples/eip/globalinternetbandwidth.yaml create mode 100644 examples/eip/vpcbandwidth.yaml create mode 100644 examples/eip/vpcbandwidthassociate.yaml create mode 100644 examples/eip/vpceip.yaml create mode 100644 examples/eip/vpceipassociate.yaml create mode 100644 examples/eip/vpceipv3associate.yaml create mode 100644 examples/eip/vpcinternetgateway.yaml diff --git a/examples/eip/globaleip.yaml b/examples/eip/globaleip.yaml new file mode 100644 index 0000000..58923e0 --- /dev/null +++ b/examples/eip/globaleip.yaml @@ -0,0 +1,17 @@ +apiVersion: eip.huaweicloud.crossplane.io/v1alpha1 +kind: GlobalEip +metadata: + annotations: + meta.upbound.io/example-id: eip/v1alpha1/globaleip + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + accessSite: your_access_site + enterpriseProjectId: your_enterprise_project_id + geipPoolName: your_geip_pool_name + internetBandwidthId: your_internet_bandwidth_id + name: test + tags: + foo: bar diff --git a/examples/eip/globaleipassociate.yaml b/examples/eip/globaleipassociate.yaml new file mode 100644 index 0000000..d043dc2 --- /dev/null +++ b/examples/eip/globaleipassociate.yaml @@ -0,0 +1,23 @@ +apiVersion: eip.huaweicloud.crossplane.io/v1alpha1 +kind: GlobalEipAssociate +metadata: + annotations: + meta.upbound.io/example-id: eip/v1alpha1/globaleipassociate + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + associateInstance: + - instanceId: your_instance_id + instanceType: ECS + projectId: your_project_id + region: your_region + gcBandwidth: + - chargeMode: bwd + name: your_gc_bandwidth_name + size: 5 + globalEipIdSelector: + matchLabels: + testing.upbound.io/example-name: example + isReserveGcb: false diff --git a/examples/eip/globalinternetbandwidth.yaml b/examples/eip/globalinternetbandwidth.yaml new file mode 100644 index 0000000..b28faae --- /dev/null +++ b/examples/eip/globalinternetbandwidth.yaml @@ -0,0 +1,20 @@ +apiVersion: eip.huaweicloud.crossplane.io/v1alpha1 +kind: GlobalInternetBandwidth +metadata: + annotations: + meta.upbound.io/example-id: eip/v1alpha1/globalinternetbandwidth + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + accessSite: your_access_site + chargeMode: 95peak_guar + enterpriseProjectId: your_enterprise_project_id + isp: your_isp + name: test + size: 300 + tags: + foo: bar + key: value + type: your_allowed_bandwidth_type diff --git a/examples/eip/vpcbandwidth.yaml b/examples/eip/vpcbandwidth.yaml new file mode 100644 index 0000000..0a9801c --- /dev/null +++ b/examples/eip/vpcbandwidth.yaml @@ -0,0 +1,12 @@ +apiVersion: eip.huaweicloud.crossplane.io/v1alpha1 +kind: VpcBandwidth +metadata: + annotations: + meta.upbound.io/example-id: eip/v1alpha1/vpcbandwidth + labels: + testing.upbound.io/example-name: bandwidth_1 + name: bandwidth-1 +spec: + forProvider: + name: bandwidth_1 + size: 5 diff --git a/examples/eip/vpcbandwidthassociate.yaml b/examples/eip/vpcbandwidthassociate.yaml new file mode 100644 index 0000000..30b8aa7 --- /dev/null +++ b/examples/eip/vpcbandwidthassociate.yaml @@ -0,0 +1,31 @@ +apiVersion: eip.huaweicloud.crossplane.io/v1alpha1 +kind: VpcBandwidthAssociate +metadata: + annotations: + meta.upbound.io/example-id: eip/v1alpha1/vpcbandwidthassociate + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + bandwidthIdSelector: + matchLabels: + testing.upbound.io/example-name: bandwidth_1 + eipIdSelector: + matchLabels: + testing.upbound.io/example-name: dedicated + +--- + +apiVersion: eip.huaweicloud.crossplane.io/v1alpha1 +kind: VpcBandwidth +metadata: + annotations: + meta.upbound.io/example-id: eip/v1alpha1/vpcbandwidthassociate + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + name: bandwidth_1 + size: 100 diff --git a/examples/eip/vpceip.yaml b/examples/eip/vpceip.yaml new file mode 100644 index 0000000..83a592a --- /dev/null +++ b/examples/eip/vpceip.yaml @@ -0,0 +1,17 @@ +apiVersion: eip.huaweicloud.crossplane.io/v1alpha1 +kind: VpcEip +metadata: + annotations: + meta.upbound.io/example-id: eip/v1alpha1/vpceip + labels: + testing.upbound.io/example-name: dedicated + name: dedicated +spec: + forProvider: + bandwidth: + - chargeMode: traffic + name: crossplane-test + shareType: PER + size: 10 + publicip: + - type: 5_bgp diff --git a/examples/eip/vpceipassociate.yaml b/examples/eip/vpceipassociate.yaml new file mode 100644 index 0000000..6fabda6 --- /dev/null +++ b/examples/eip/vpceipassociate.yaml @@ -0,0 +1,14 @@ +apiVersion: eip.huaweicloud.crossplane.io/v1alpha1 +kind: VpcEipAssociate +metadata: + annotations: + meta.upbound.io/example-id: eip/v1alpha1/vpceipassociate + labels: + testing.upbound.io/example-name: associated + name: associated +spec: + forProvider: + fixedIp: 192.168.0.196 + networkId: 828907cc-40c9-42fe-8206-ecc1bdd30060 + publicIp: 121.36.45.205 + portId: "" diff --git a/examples/eip/vpceipv3associate.yaml b/examples/eip/vpceipv3associate.yaml new file mode 100644 index 0000000..ef5f47e --- /dev/null +++ b/examples/eip/vpceipv3associate.yaml @@ -0,0 +1,15 @@ +apiVersion: eip.huaweicloud.crossplane.io/v1alpha1 +kind: VpcEipV3Associate +metadata: + annotations: + meta.upbound.io/example-id: eip/v1alpha1/vpceipv3associate + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + associateInstanceId: b28cf22e-e0a2-4347-bc8e-f927c9c61332 + associateInstanceType: PORT + publicipIdSelector: + matchLabels: + testing.upbound.io/example-name: dedicated diff --git a/examples/eip/vpcinternetgateway.yaml b/examples/eip/vpcinternetgateway.yaml new file mode 100644 index 0000000..4f5c90b --- /dev/null +++ b/examples/eip/vpcinternetgateway.yaml @@ -0,0 +1,15 @@ +apiVersion: eip.huaweicloud.crossplane.io/v1alpha1 +kind: VpcInternetGateway +metadata: + annotations: + meta.upbound.io/example-id: eip/v1alpha1/vpcinternetgateway + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + addRoute: true + name: test + vpcIdSelector: + matchLabels: + testing.upbound.io/example-name: example