From 09c5d872f5fe113cf6a9ddbac4e9183b245df987 Mon Sep 17 00:00:00 2001 From: Marques Johansson Date: Sun, 5 Mar 2023 15:58:45 +0000 Subject: [PATCH] add generated examples Signed-off-by: Marques Johansson --- examples-generated/ecx/l2connection.yaml | 28 +++++++++++ .../ecx/l2connectionaccepter.yaml | 14 ++++++ examples-generated/ecx/l2serviceprofile.yaml | 44 ++++++++++++++++ examples-generated/metal/connection.yaml | 50 +++++++++++++++++++ examples-generated/metal/device.yaml | 21 ++++++++ examples-generated/metal/organization.yaml | 15 ++++++ .../metal/organizationmember.yaml | 21 ++++++++ examples-generated/metal/project.yaml | 14 ++++++ examples-generated/metal/projectapikey.yaml | 18 +++++++ examples-generated/metal/projectsshkey.yaml | 43 ++++++++++++++++ examples-generated/metal/reservedipblock.yaml | 18 +++++++ .../metal/spotmarketrequest.yaml | 26 ++++++++++ examples-generated/metal/sshkey.yaml | 36 +++++++++++++ examples-generated/metal/userapikey.yaml | 15 ++++++ examples-generated/metal/vlan.yaml | 18 +++++++ examples-generated/network/acltemplate.yaml | 25 ++++++++++ examples-generated/network/bgp.yaml | 22 ++++++++ examples-generated/network/device.yaml | 36 +++++++++++++ examples-generated/network/devicelink.yaml | 30 +++++++++++ examples-generated/network/sshkey.yaml | 15 ++++++ examples-generated/network/sshuser.yaml | 21 ++++++++ 21 files changed, 530 insertions(+) create mode 100644 examples-generated/ecx/l2connection.yaml create mode 100644 examples-generated/ecx/l2connectionaccepter.yaml create mode 100644 examples-generated/ecx/l2serviceprofile.yaml create mode 100644 examples-generated/metal/connection.yaml create mode 100644 examples-generated/metal/device.yaml create mode 100644 examples-generated/metal/organization.yaml create mode 100644 examples-generated/metal/organizationmember.yaml create mode 100644 examples-generated/metal/project.yaml create mode 100644 examples-generated/metal/projectapikey.yaml create mode 100644 examples-generated/metal/projectsshkey.yaml create mode 100644 examples-generated/metal/reservedipblock.yaml create mode 100644 examples-generated/metal/spotmarketrequest.yaml create mode 100644 examples-generated/metal/sshkey.yaml create mode 100644 examples-generated/metal/userapikey.yaml create mode 100644 examples-generated/metal/vlan.yaml create mode 100644 examples-generated/network/acltemplate.yaml create mode 100644 examples-generated/network/bgp.yaml create mode 100644 examples-generated/network/device.yaml create mode 100644 examples-generated/network/devicelink.yaml create mode 100644 examples-generated/network/sshkey.yaml create mode 100644 examples-generated/network/sshuser.yaml diff --git a/examples-generated/ecx/l2connection.yaml b/examples-generated/ecx/l2connection.yaml new file mode 100644 index 0000000..8fa234c --- /dev/null +++ b/examples-generated/ecx/l2connection.yaml @@ -0,0 +1,28 @@ +apiVersion: ecx.equinix.jet.crossplane.io/v1alpha1 +kind: L2Connection +metadata: + annotations: + meta.upbound.io/example-id: ecx/v1alpha1/l2connection + labels: + testing.upbound.io/example-name: port-2-aws + name: port-2-aws +spec: + forProvider: + authorizationKey: "345742915919" + name: tf-aws + notifications: + - marry@equinix.com + - john@equinix.com + portUuid: ${data.equinix_ecx_port.sv-qinq-pri.id} + profileUuidSelector: + matchLabels: + testing.upbound.io/example-name: equinix_ecx_l2_sellerprofile + sellerMetroCode: SV + sellerRegion: us-west-1 + speed: 200 + speedUnit: MB + vlanCtag: 1000 + vlanStag: 777 + +--- + diff --git a/examples-generated/ecx/l2connectionaccepter.yaml b/examples-generated/ecx/l2connectionaccepter.yaml new file mode 100644 index 0000000..1c05ccb --- /dev/null +++ b/examples-generated/ecx/l2connectionaccepter.yaml @@ -0,0 +1,14 @@ +apiVersion: ecx.equinix.jet.crossplane.io/v1alpha1 +kind: L2ConnectionAccepter +metadata: + annotations: + meta.upbound.io/example-id: ecx/v1alpha1/l2connectionaccepter + labels: + testing.upbound.io/example-name: accepter + name: accepter +spec: + forProvider: + connectionId: ${equinix_ecx_l2_connection.awsConn.id} + +--- + diff --git a/examples-generated/ecx/l2serviceprofile.yaml b/examples-generated/ecx/l2serviceprofile.yaml new file mode 100644 index 0000000..e26a45a --- /dev/null +++ b/examples-generated/ecx/l2serviceprofile.yaml @@ -0,0 +1,44 @@ +apiVersion: ecx.equinix.jet.crossplane.io/v1alpha1 +kind: L2Serviceprofile +metadata: + annotations: + meta.upbound.io/example-id: ecx/v1alpha1/l2serviceprofile + labels: + testing.upbound.io/example-name: private-profile + name: private-profile +spec: + forProvider: + bandwidthThresholdNotifications: + - John.Doe@example.com + - Marry.Doe@example.com + connectionNameLabel: Connection + description: my private profile + features: + - allowRemoteConnections: true + testProfile: false + name: private-profile + port: + - metroCode: NY + uuid: a867f685-422f-22f7-6de0-320a5c00abdd + - metroCode: NY + uuid: a867f685-4231-2317-6de0-320a5c00abdd + private: true + privateUserEmails: + - John.Doe@example.com + - Marry.Doe@example.com + profileStatuschangeNotifications: + - John.Doe@example.com + - Marry.Doe@example.com + speedBand: + - speed: 1000 + speedUnit: MB + - speed: 500 + speedUnit: MB + - speed: 100 + speedUnit: MB + vcStatuschangeNotifications: + - John.Doe@example.com + - Marry.Doe@example.com + +--- + diff --git a/examples-generated/metal/connection.yaml b/examples-generated/metal/connection.yaml new file mode 100644 index 0000000..c0b6418 --- /dev/null +++ b/examples-generated/metal/connection.yaml @@ -0,0 +1,50 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: Connection +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/connection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + metro: sv + name: tf-metal-to-azure + projectIdSelector: + matchLabels: + testing.upbound.io/example-name: example + redundancy: redundant + serviceTokenType: a_side + speed: 1000Mbps + type: shared + +--- + +apiVersion: ecx.equinix.jet.crossplane.io/v1alpha1 +kind: L2Connection +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/connection + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + authorizationKey: ${azurerm_express_route_circuit.example.service_key} + name: tf-metal-to-azure + namedTag: PRIVATE + notifications: + - example@equinix.com + profileUuidSelector: + matchLabels: + testing.upbound.io/example-name: equinix_ecx_l2_sellerprofile + secondaryConnection: + - name: tf-metal-to-azure-sec + serviceToken: ${equinix_metal_connection.example.service_tokens.1.id} + sellerMetroCode: AM + serviceToken: ${equinix_metal_connection.example.service_tokens.0.id} + speed: ${azurerm_express_route_circuit.example.bandwidth_in_mbps} + speedUnit: MB + +--- + diff --git a/examples-generated/metal/device.yaml b/examples-generated/metal/device.yaml new file mode 100644 index 0000000..125f27b --- /dev/null +++ b/examples-generated/metal/device.yaml @@ -0,0 +1,21 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: Device +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/device + labels: + testing.upbound.io/example-name: web1 + name: web1 +spec: + forProvider: + billingCycle: hourly + hostname: tf.coreos2 + metro: sv + operatingSystem: ubuntu_20_04 + plan: c3.small.x86 + projectIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + diff --git a/examples-generated/metal/organization.yaml b/examples-generated/metal/organization.yaml new file mode 100644 index 0000000..b4c4f50 --- /dev/null +++ b/examples-generated/metal/organization.yaml @@ -0,0 +1,15 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: Organization +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/organization + labels: + testing.upbound.io/example-name: tf_organization_1 + name: tf-organization-1 +spec: + forProvider: + description: quux + name: foobar + +--- + diff --git a/examples-generated/metal/organizationmember.yaml b/examples-generated/metal/organizationmember.yaml new file mode 100644 index 0000000..2099906 --- /dev/null +++ b/examples-generated/metal/organizationmember.yaml @@ -0,0 +1,21 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: OrganizationMember +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/organizationmember + labels: + testing.upbound.io/example-name: member + name: member +spec: + forProvider: + invitee: member@example.com + organizationIdSelector: + matchLabels: + testing.upbound.io/example-name: example + projectsIds: + - ${var.project_id} + roles: + - limited_collaborator + +--- + diff --git a/examples-generated/metal/project.yaml b/examples-generated/metal/project.yaml new file mode 100644 index 0000000..d66e22e --- /dev/null +++ b/examples-generated/metal/project.yaml @@ -0,0 +1,14 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: Project +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/project + labels: + testing.upbound.io/example-name: example + name: example +spec: + forProvider: + name: example + +--- + diff --git a/examples-generated/metal/projectapikey.yaml b/examples-generated/metal/projectapikey.yaml new file mode 100644 index 0000000..92f12db --- /dev/null +++ b/examples-generated/metal/projectapikey.yaml @@ -0,0 +1,18 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: ProjectAPIKey +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/projectapikey + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + description: Read-only key scoped to a projct + projectIdSelector: + matchLabels: + testing.upbound.io/example-name: example + readOnly: true + +--- + diff --git a/examples-generated/metal/projectsshkey.yaml b/examples-generated/metal/projectsshkey.yaml new file mode 100644 index 0000000..4908498 --- /dev/null +++ b/examples-generated/metal/projectsshkey.yaml @@ -0,0 +1,43 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: ProjectSSHKey +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/projectsshkey + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + name: test + projectIdSelector: + matchLabels: + testing.upbound.io/example-name: example + publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDM/unxJeFqxsTJcu6mhqsMHSaVlpu+Jj/P+44zrm6X/MAoHSX3X9oLgujEjjZ74yLfdfe0bJrbL2YgJzNaEkIQQ1VPMHB5EhTKUBGnzlPP0hHTnxsjAm9qDHgUPgvgFDQSAMzdJRJ0Cexo16Ph9VxCoLh3dxiE7s2gaM2FdVg7P8aSxKypsxAhYV3D0AwqzoOyT6WWhBoQ0xZ85XevOTnJCpImSemEGs6nVGEsWcEc1d1YvdxFjAK4SdsKUMkj4Dsy/leKsdi/DEAf356vbMT1UHsXXvy5TlHu/Pa6qF53v32Enz+nhKy7/8W2Yt2yWx8HnQcT2rug9lvCXagJO6oauqRTO77C4QZn13ZLMZgLT66S/tNh2EX0gi6vmIs5dth8uF+K6nxIyKJXbcA4ASg7F1OJrHKFZdTc5v1cPeq6PcbqGgc+8SrPYQmzvQqLoMBuxyos2hUkYOmw3aeWJj9nFa8Wu5WaN89mUeOqSkU4S5cgUzWUOmKey56B/j/s1sVys9rMhZapVs0wL4L9GBBM48N5jAQZnnpo85A8KsZq5ME22bTLqnxsDXqDYZvS7PSI6Dxi7eleOFE/NYYDkrgDLHTQri8ucDMVeVWHgoMY2bPXdn7KKy5jW5jKsf8EPARXg77A4gRYmgKrcwIKqJEUPqyxJBe0CPoGTqgXPRsUiQ== + tomk@hp2 + +--- + +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: Device +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/projectsshkey + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + billingCycle: hourly + facilities: + - ny5 + hostname: test + operatingSystem: ubuntu_20_04 + plan: c3.medium.x86 + projectIdSelector: + matchLabels: + testing.upbound.io/example-name: example + projectSshKeyIds: + - ${equinix_metal_project_ssh_key.test.id} + +--- + diff --git a/examples-generated/metal/reservedipblock.yaml b/examples-generated/metal/reservedipblock.yaml new file mode 100644 index 0000000..2a68a49 --- /dev/null +++ b/examples-generated/metal/reservedipblock.yaml @@ -0,0 +1,18 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: ReservedIPBlock +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/reservedipblock + labels: + testing.upbound.io/example-name: two_elastic_addresses + name: two-elastic-addresses +spec: + forProvider: + facility: sv15 + projectIdSelector: + matchLabels: + testing.upbound.io/example-name: example + quantity: 2 + +--- + diff --git a/examples-generated/metal/spotmarketrequest.yaml b/examples-generated/metal/spotmarketrequest.yaml new file mode 100644 index 0000000..0adee38 --- /dev/null +++ b/examples-generated/metal/spotmarketrequest.yaml @@ -0,0 +1,26 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: SpotMarketRequest +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/spotmarketrequest + labels: + testing.upbound.io/example-name: req + name: req +spec: + forProvider: + devicesMax: 1 + devicesMin: 1 + facilities: + - ny5 + instanceParameters: + - billingCycle: hourly + hostname: testspot + operatingSystem: ubuntu_20_04 + plan: c3.small.x86 + maxBidPrice: 0.03 + projectIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + diff --git a/examples-generated/metal/sshkey.yaml b/examples-generated/metal/sshkey.yaml new file mode 100644 index 0000000..f967548 --- /dev/null +++ b/examples-generated/metal/sshkey.yaml @@ -0,0 +1,36 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: SSHKey +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/sshkey + labels: + testing.upbound.io/example-name: key1 + name: key1 +spec: + forProvider: + name: terraform-1 + publicKey: ${file("/home/terraform/.ssh/id_rsa.pub")} + +--- + +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: Device +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/sshkey + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + billingCycle: hourly + hostname: test-device + metro: sv + operatingSystem: ubuntu_20_04 + plan: c3.small.x86 + projectIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + diff --git a/examples-generated/metal/userapikey.yaml b/examples-generated/metal/userapikey.yaml new file mode 100644 index 0000000..0ff7419 --- /dev/null +++ b/examples-generated/metal/userapikey.yaml @@ -0,0 +1,15 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: UserAPIKey +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/userapikey + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + description: Read-only user key + readOnly: true + +--- + diff --git a/examples-generated/metal/vlan.yaml b/examples-generated/metal/vlan.yaml new file mode 100644 index 0000000..c46e920 --- /dev/null +++ b/examples-generated/metal/vlan.yaml @@ -0,0 +1,18 @@ +apiVersion: metal.equinix.jet.crossplane.io/v1alpha1 +kind: Vlan +metadata: + annotations: + meta.upbound.io/example-id: metal/v1alpha1/vlan + labels: + testing.upbound.io/example-name: vlan1 + name: vlan1 +spec: + forProvider: + description: VLAN in New Jersey + facility: sv15 + projectIdSelector: + matchLabels: + testing.upbound.io/example-name: example + +--- + diff --git a/examples-generated/network/acltemplate.yaml b/examples-generated/network/acltemplate.yaml new file mode 100644 index 0000000..c1f4155 --- /dev/null +++ b/examples-generated/network/acltemplate.yaml @@ -0,0 +1,25 @@ +apiVersion: network.equinix.jet.crossplane.io/v1alpha1 +kind: ACLTemplate +metadata: + annotations: + meta.upbound.io/example-id: network/v1alpha1/acltemplate + labels: + testing.upbound.io/example-name: myacl + name: myacl +spec: + forProvider: + description: Test ACL template + inboundRule: + - description: inbound rule description + dstPort: any + protocol: IP + srcPort: any + subnet: 1.1.1.1/32 + - dstPort: 53,1045,2041 + protocol: UDP + srcPort: any + subnet: 172.16.25.0/24 + name: test + +--- + diff --git a/examples-generated/network/bgp.yaml b/examples-generated/network/bgp.yaml new file mode 100644 index 0000000..14c9863 --- /dev/null +++ b/examples-generated/network/bgp.yaml @@ -0,0 +1,22 @@ +apiVersion: network.equinix.jet.crossplane.io/v1alpha1 +kind: BGP +metadata: + annotations: + meta.upbound.io/example-id: network/v1alpha1/bgp + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + authenticationKeySecretRef: + key: example-key + name: example-secret + namespace: upbound-system + connectionId: 54014acf-9730-4b55-a791-459283d05fb1 + localAsn: 12345 + localIpAddress: 10.1.1.1/30 + remoteAsn: 66123 + remoteIpAddress: 10.1.1.2 + +--- + diff --git a/examples-generated/network/device.yaml b/examples-generated/network/device.yaml new file mode 100644 index 0000000..2ae82a3 --- /dev/null +++ b/examples-generated/network/device.yaml @@ -0,0 +1,36 @@ +apiVersion: network.equinix.jet.crossplane.io/v1alpha1 +kind: Device +metadata: + annotations: + meta.upbound.io/example-id: network/v1alpha1/device + labels: + testing.upbound.io/example-name: csr1000v-ha + name: csr1000v-ha +spec: + forProvider: + accountNumber: ${data.equinix_network_account.dc.number} + coreCount: 2 + hostname: csr1000v-p + metroCode: ${data.equinix_network_account.dc.metro_code} + name: tf-csr1000v-p + notifications: + - john@equinix.com + - marry@equinix.com + - fred@equinix.com + packageCode: SEC + secondaryDevice: + - accountNumber: ${data.equinix_network_account.sv.number} + hostname: csr1000v-s + metroCode: ${data.equinix_network_account.sv.metro_code} + name: tf-csr1000v-s + notifications: + - john@equinix.com + - marry@equinix.com + termLength: 6 + throughput: 500 + throughputUnit: Mbps + typeCode: CSR1000V + version: 16.09.05 + +--- + diff --git a/examples-generated/network/devicelink.yaml b/examples-generated/network/devicelink.yaml new file mode 100644 index 0000000..853acb3 --- /dev/null +++ b/examples-generated/network/devicelink.yaml @@ -0,0 +1,30 @@ +apiVersion: network.equinix.jet.crossplane.io/v1alpha1 +kind: DeviceLink +metadata: + annotations: + meta.upbound.io/example-id: network/v1alpha1/devicelink + labels: + testing.upbound.io/example-name: test + name: test +spec: + forProvider: + device: + - asn: '${equinix_network_device.test.asn > 0 ? equinix_network_device.test.asn + : 22111}' + id: ${equinix_network_device.test.uuid} + interfaceId: 6 + - asn: '${equinix_network_device.test.secondary_device[0].asn > 0 ? equinix_network_device.test.secondary_device[0].asn + : 22333}' + id: ${equinix_network_device.test.secondary_device[0].uuid} + interfaceId: 7 + link: + - accountNumber: ${equinix_network_device.test.account_number} + dstMetroCode: ${equinix_network_device.test.secondary_device[0].metro_code} + srcMetroCode: ${equinix_network_device.test.metro_code} + throughput: "50" + throughputUnit: Mbps + name: test-link + subnet: 192.168.40.64/27 + +--- + diff --git a/examples-generated/network/sshkey.yaml b/examples-generated/network/sshkey.yaml new file mode 100644 index 0000000..d570720 --- /dev/null +++ b/examples-generated/network/sshkey.yaml @@ -0,0 +1,15 @@ +apiVersion: network.equinix.jet.crossplane.io/v1alpha1 +kind: SSHKey +metadata: + annotations: + meta.upbound.io/example-id: network/v1alpha1/sshkey + labels: + testing.upbound.io/example-name: john + name: john +spec: + forProvider: + name: johnKent + publicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDpXGdxljAyPp9vH97436U171cX + +--- + diff --git a/examples-generated/network/sshuser.yaml b/examples-generated/network/sshuser.yaml new file mode 100644 index 0000000..34bd62f --- /dev/null +++ b/examples-generated/network/sshuser.yaml @@ -0,0 +1,21 @@ +apiVersion: network.equinix.jet.crossplane.io/v1alpha1 +kind: SSHUser +metadata: + annotations: + meta.upbound.io/example-id: network/v1alpha1/sshuser + labels: + testing.upbound.io/example-name: john + name: john +spec: + forProvider: + deviceIds: + - ${equinix_ne_device.csr1000v-ha.uuid} + - ${equinix_ne_device.csr1000v-ha.redundant_uuid} + passwordSecretRef: + key: example-key + name: example-secret + namespace: upbound-system + username: john + +--- +