Marketplace
BrowsePublish
Marketplace
upbound/configuration-caas@v0.4.0
xnetworks.gcp.caas.upbound.io

xnetworks.gcp.caas.upbound.io

xnetworks.gcp.caas.upbound.io
upbound/configuration-caas@v0.4.0xnetworks.gcp.caas.upbound.io
Type

Composition

Referenced XRD

XNetwork

Source Codegithub.com/upbound/configuration-caas
Resources (2)

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

Kind
Group
Version

Network

compute.gcp.upbound.io
v1beta1

Subnetwork

compute.gcp.upbound.io
v1beta1
YAML
kind: Composition
apiVersion: apiextensions.crossplane.io/v1
metadata:
  name: xnetworks.gcp.caas.upbound.io
  creationTimestamp: null
  labels:
    provider: GCP
    type: basic
spec:
  compositeTypeRef:
    apiVersion: gcp.caas.upbound.io/v1alpha1
    kind: XNetwork
  patchSets:
    - name: providerConfigRef
      patches:
        - type: FromCompositeFieldPath
          fromFieldPath: spec.parameters.providerConfigName
          toFieldPath: spec.providerConfigRef.name
    - name: deletionPolicy
      patches:
        - type: FromCompositeFieldPath
          fromFieldPath: spec.parameters.deletionPolicy
          toFieldPath: spec.deletionPolicy
    - name: region
      patches:
        - type: FromCompositeFieldPath
          fromFieldPath: spec.parameters.region
          toFieldPath: spec.forProvider.region
  resources:
    - base:
        apiVersion: compute.gcp.upbound.io/v1beta1
        kind: Network
        spec:
          forProvider:
            autoCreateSubnetworks: false
            routingMode: REGIONAL
      patches:
        - type: PatchSet
          patchSetName: providerConfigRef
        - type: PatchSet
          patchSetName: deletionPolicy
        - fromFieldPath: spec.parameters.id
          toFieldPath: metadata.name
        - fromFieldPath: spec.parameters.id
          toFieldPath: metadata.labels[networks.gcp.caas.upbound.io/network-id]
    - base:
        apiVersion: compute.gcp.upbound.io/v1beta1
        kind: Subnetwork
        spec:
          forProvider:
            ipCidrRange: 172.16.0.0/16
            networkSelector:
              matchControllerRef: true
            privateIpGoogleAccess: true
            secondaryIpRange:
              - ipCidrRange: 10.200.0.0/14
                rangeName: pods
              - ipCidrRange: 10.204.0.0/16
                rangeName: services
      patches:
        - type: PatchSet
          patchSetName: providerConfigRef
        - type: PatchSet
          patchSetName: deletionPolicy
        - type: PatchSet
          patchSetName: region
        - fromFieldPath: spec.parameters.id
          toFieldPath: metadata.labels[networks.gcp.caas.upbound.io/network-id]
  writeConnectionSecretsToNamespace: upbound-system
Marketplace

Discover the building blocks for your internal cloud platform.

© 2022 Upbound, Inc.

SolutionsProvidersConfigurations
LearnDocumentationTry for Free
MorePrivacy PolicyTerms & Conditions
Marketplace

© 2022 Upbound, Inc.

Marketplace

Discover the building blocksfor your internal cloud platform.