seanblong/test@v0.1.1
network-composition

network-composition

network-composition
seanblong/test@v0.1.1network-composition
Type

Composition

Referenced XRD

XNetwork

Source Codegithub.com/dexcom-inc/cdo-toolbox
Resources (3)

The following resources are composed to implement the referenced Composite Resource Definition (XRD).

Kind
Group
Version

Network

compute.gcp.upbound.io
v1beta1

Router

compute.gcp.upbound.io
v1beta1

RouterNAT

compute.gcp.upbound.io
v1beta1
YAML
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
  name: network-composition
  creationTimestamp: null
  labels:
    provider: gcp-provider
spec:
  compositeTypeRef:
    apiVersion: devops.dexcom.io/v1alpha1
    kind: XNetwork
  resources:
    - base:
        apiVersion: compute.gcp.upbound.io/v1beta1
        kind: Network
        spec:
          forProvider:
            autoCreateSubnetworks: false
            routingMode: GLOBAL
          providerConfigRef:
            name: gcp-provider
      patches:
        - fromFieldPath: spec.networkName
          toFieldPath: metadata.name
        - fromFieldPath: spec.networkName
          toFieldPath: metadata.labels[networks.devops.dexcom.io/network-id]
    - base:
        apiVersion: compute.gcp.upbound.io/v1beta1
        kind: Router
        metadata:
          name: router
        spec:
          forProvider:
            networkSelector:
              matchControllerRef: true
            region: us-central1
          providerConfigRef:
            name: gcp-provider
      patches:
        - fromFieldPath: spec.region
          toFieldPath: spec.forProvider.region
    - base:
        apiVersion: compute.gcp.upbound.io/v1beta1
        kind: RouterNAT
        metadata:
          labels:
            testing.upbound.io/example-name: example_routernat
          name: routernat
        spec:
          forProvider:
            logConfig:
              - enable: true
                filter: ERRORS_ONLY
            natIpAllocateOption: AUTO_ONLY
            region: us-central1
            routerSelector:
              matchControllerRef: true
            sourceSubnetworkIpRangesToNat: ALL_SUBNETWORKS_ALL_IP_RANGES
          providerConfigRef:
            name: gcp-provider
      patches:
        - fromFieldPath: spec.region
          toFieldPath: spec.forProvider.region
Discover the building blocks for your internal cloud platform.
© 2024 Upbound, Inc.
Solutions