...

Text file src/edge-infra.dev/test/fixtures/crds/gcp/compute.cnrm.cloud.google.com_computesubnetworks.yaml

Documentation: edge-infra.dev/test/fixtures/crds/gcp

     1---
     2apiVersion: apiextensions.k8s.io/v1
     3kind: CustomResourceDefinition
     4metadata:
     5  annotations:
     6    controller-gen.kubebuilder.io/version: (unknown)
     7  name: computesubnetworks.compute.cnrm.cloud.google.com
     8spec:
     9  group: compute.cnrm.cloud.google.com
    10  names:
    11    kind: ComputeSubnetwork
    12    listKind: ComputeSubnetworkList
    13    plural: computesubnetworks
    14    singular: computesubnetwork
    15  scope: Namespaced
    16  versions:
    17  - name: v1beta1
    18    schema:
    19      openAPIV3Schema:
    20        description: ComputeSubnetwork is the Schema for the compute API
    21        properties:
    22          apiVersion:
    23            description: |-
    24              APIVersion defines the versioned schema of this representation of an object.
    25              Servers should convert recognized schemas to the latest internal value, and
    26              may reject unrecognized values.
    27              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    28            type: string
    29          kind:
    30            description: |-
    31              Kind is a string value representing the REST resource this object represents.
    32              Servers may infer this from the endpoint the client submits requests to.
    33              Cannot be updated.
    34              In CamelCase.
    35              More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    36            type: string
    37          metadata:
    38            type: object
    39          spec:
    40            properties:
    41              description:
    42                description: |-
    43                  Immutable. An optional description of this resource. Provide this property when
    44                  you create the resource. This field can be set only at resource
    45                  creation time.
    46                type: string
    47              ipCidrRange:
    48                description: |-
    49                  The range of internal addresses that are owned by this subnetwork.
    50                  Provide this property when you create the subnetwork. For example,
    51                  10.0.0.0/8 or 192.168.0.0/16. Ranges must be unique and
    52                  non-overlapping within a network. Only IPv4 is supported.
    53                type: string
    54              ipv6AccessType:
    55                description: |-
    56                  The access type of IPv6 address this subnet holds. It's immutable and can only be specified during creation
    57                  or the first time the subnet is updated into IPV4_IPV6 dual stack. If the ipv6_type is EXTERNAL then this subnet
    58                  cannot enable direct path. Possible values: ["EXTERNAL", "INTERNAL"].
    59                type: string
    60              logConfig:
    61                description: |-
    62                  Denotes the logging options for the subnetwork flow logs. If logging is enabled
    63                  logs will be exported to Stackdriver. This field cannot be set if the 'purpose' of this
    64                  subnetwork is 'INTERNAL_HTTPS_LOAD_BALANCER'.
    65                properties:
    66                  aggregationInterval:
    67                    description: |-
    68                      Can only be specified if VPC flow logging for this subnetwork is enabled.
    69                      Toggles the aggregation interval for collecting flow logs. Increasing the
    70                      interval time will reduce the amount of generated flow logs for long
    71                      lasting connections. Default is an interval of 5 seconds per connection. Default value: "INTERVAL_5_SEC" Possible values: ["INTERVAL_5_SEC", "INTERVAL_30_SEC", "INTERVAL_1_MIN", "INTERVAL_5_MIN", "INTERVAL_10_MIN", "INTERVAL_15_MIN"].
    72                    type: string
    73                  filterExpr:
    74                    description: |-
    75                      Export filter used to define which VPC flow logs should be logged, as as CEL expression. See
    76                      https://cloud.google.com/vpc/docs/flow-logs#filtering for details on how to format this field.
    77                      The default value is 'true', which evaluates to include everything.
    78                    type: string
    79                  flowSampling:
    80                    description: |-
    81                      Can only be specified if VPC flow logging for this subnetwork is enabled.
    82                      The value of the field must be in [0, 1]. Set the sampling rate of VPC
    83                      flow logs within the subnetwork where 1.0 means all collected logs are
    84                      reported and 0.0 means no logs are reported. Default is 0.5 which means
    85                      half of all collected logs are reported.
    86                    type: number
    87                  metadata:
    88                    description: |-
    89                      Can only be specified if VPC flow logging for this subnetwork is enabled.
    90                      Configures whether metadata fields should be added to the reported VPC
    91                      flow logs. Default value: "INCLUDE_ALL_METADATA" Possible values: ["EXCLUDE_ALL_METADATA", "INCLUDE_ALL_METADATA", "CUSTOM_METADATA"].
    92                    type: string
    93                  metadataFields:
    94                    description: |-
    95                      List of metadata fields that should be added to reported logs.
    96                      Can only be specified if VPC flow logs for this subnetwork is enabled and "metadata" is set to CUSTOM_METADATA.
    97                    items:
    98                      type: string
    99                    type: array
   100                type: object
   101              networkRef:
   102                description: |-
   103                  The network this subnet belongs to. Only networks that are in the
   104                  distributed mode can have subnetworks.
   105                properties:
   106                  external:
   107                    description: The external name of the referenced resource
   108                    type: string
   109                  kind:
   110                    description: Kind of the referent.
   111                    type: string
   112                  name:
   113                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   114                    type: string
   115                  namespace:
   116                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   117                    type: string
   118                type: object
   119              privateIpGoogleAccess:
   120                description: |-
   121                  When enabled, VMs in this subnetwork without external IP addresses can
   122                  access Google APIs and services by using Private Google Access.
   123                type: boolean
   124              privateIpv6GoogleAccess:
   125                description: The private IPv6 google access type for the VMs in this
   126                  subnet.
   127                type: string
   128              purpose:
   129                description: |-
   130                  Immutable. The purpose of the resource. This field can be either 'PRIVATE_RFC_1918', 'INTERNAL_HTTPS_LOAD_BALANCER' or 'REGIONAL_MANAGED_PROXY'.
   131                  A subnetwork with purpose set to 'INTERNAL_HTTPS_LOAD_BALANCER' is a user-created subnetwork that is reserved for Internal HTTP(S) Load Balancing.
   132                  A subnetwork in a given region with purpose set to 'REGIONAL_MANAGED_PROXY' is a proxy-only subnet and is shared between all the regional Envoy-based load balancers.
   133                  If unspecified, the purpose defaults to 'PRIVATE_RFC_1918'.
   134                  The enableFlowLogs field isn't supported with the purpose field set to 'INTERNAL_HTTPS_LOAD_BALANCER'.
   135                type: string
   136              region:
   137                description: Immutable. The GCP region for this subnetwork.
   138                type: string
   139              resourceID:
   140                description: Immutable. Optional. The name of the resource. Used for
   141                  creation and acquisition. When unset, the value of `metadata.name`
   142                  is used as the default.
   143                type: string
   144              role:
   145                description: |-
   146                  The role of subnetwork.
   147                  The value can be set to 'ACTIVE' or 'BACKUP'.
   148                  An 'ACTIVE' subnetwork is one that is currently being used.
   149                  A 'BACKUP' subnetwork is one that is ready to be promoted to 'ACTIVE' or is currently draining.
   150
   151
   152                  Subnetwork role must be specified when purpose is set to 'INTERNAL_HTTPS_LOAD_BALANCER' or 'REGIONAL_MANAGED_PROXY'. Possible values: ["ACTIVE", "BACKUP"].
   153                type: string
   154              secondaryIpRange:
   155                items:
   156                  properties:
   157                    ipCidrRange:
   158                      description: |-
   159                        The range of IP addresses belonging to this subnetwork secondary
   160                        range. Provide this property when you create the subnetwork.
   161                        Ranges must be unique and non-overlapping with all primary and
   162                        secondary IP ranges within a network. Only IPv4 is supported.
   163                      type: string
   164                    rangeName:
   165                      description: |-
   166                        The name associated with this subnetwork secondary range, used
   167                        when adding an alias IP range to a VM instance. The name must
   168                        be 1-63 characters long, and comply with RFC1035. The name
   169                        must be unique within the subnetwork.
   170                      type: string
   171                  required:
   172                  - ipCidrRange
   173                  - rangeName
   174                  type: object
   175                type: array
   176              stackType:
   177                description: |-
   178                  The stack type for this subnet to identify whether the IPv6 feature is enabled or not.
   179                  If not specified IPV4_ONLY will be used. Possible values: ["IPV4_ONLY", "IPV4_IPV6"].
   180                type: string
   181            required:
   182            - ipCidrRange
   183            - networkRef
   184            - region
   185            type: object
   186          status:
   187            properties:
   188              conditions:
   189                description: |-
   190                  Conditions represent the latest available observations of the
   191                  ComputeSubnetwork's current state.
   192                items:
   193                  properties:
   194                    lastTransitionTime:
   195                      description: Last time the condition transitioned from one status
   196                        to another.
   197                      type: string
   198                    message:
   199                      description: Human-readable message indicating details about
   200                        last transition.
   201                      type: string
   202                    reason:
   203                      description: |-
   204                        Unique, one-word, CamelCase reason for the condition's last
   205                        transition.
   206                      type: string
   207                    status:
   208                      description: Status is the status of the condition. Can be True,
   209                        False, Unknown.
   210                      type: string
   211                    type:
   212                      description: Type is the type of the condition.
   213                      type: string
   214                  type: object
   215                type: array
   216              creationTimestamp:
   217                description: Creation timestamp in RFC3339 text format.
   218                type: string
   219              externalIpv6Prefix:
   220                description: The range of external IPv6 addresses that are owned by
   221                  this subnetwork.
   222                type: string
   223              fingerprint:
   224                description: DEPRECATED. This field is not useful for users, and has
   225                  been removed as an output. Fingerprint of this resource. This field
   226                  is used internally during updates of this resource.
   227                type: string
   228              gatewayAddress:
   229                description: |-
   230                  The gateway address for default routes to reach destination addresses
   231                  outside this subnetwork.
   232                type: string
   233              ipv6CidrRange:
   234                description: The range of internal IPv6 addresses that are owned by
   235                  this subnetwork.
   236                type: string
   237              observedGeneration:
   238                description: ObservedGeneration is the generation of the resource
   239                  that was most recently observed by the Config Connector controller.
   240                  If this is equal to metadata.generation, then that means that the
   241                  current reported status reflects the most recent desired state of
   242                  the resource.
   243                type: integer
   244              selfLink:
   245                type: string
   246            type: object
   247        type: object
   248    served: true
   249    storage: true

View as plain text