...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/crds/compute_v1beta1_computeresourcepolicy.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/crds

     1# Copyright 2020 Google LLC
     2#
     3# Licensed under the Apache License, Version 2.0 (the "License");
     4# you may not use this file except in compliance with the License.
     5# You may obtain a copy of the License at
     6#
     7#     http://www.apache.org/licenses/LICENSE-2.0
     8#
     9# Unless required by applicable law or agreed to in writing, software
    10# distributed under the License is distributed on an "AS IS" BASIS,
    11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12# See the License for the specific language governing permissions and
    13# limitations under the License.
    14
    15apiVersion: apiextensions.k8s.io/v1
    16kind: CustomResourceDefinition
    17metadata:
    18  annotations:
    19    cnrm.cloud.google.com/version: 1.106.0
    20  creationTimestamp: null
    21  labels:
    22    cnrm.cloud.google.com/managed-by-kcc: "true"
    23    cnrm.cloud.google.com/stability-level: stable
    24    cnrm.cloud.google.com/system: "true"
    25    cnrm.cloud.google.com/tf2crd: "true"
    26  name: computeresourcepolicies.compute.cnrm.cloud.google.com
    27spec:
    28  group: compute.cnrm.cloud.google.com
    29  names:
    30    categories:
    31    - gcp
    32    kind: ComputeResourcePolicy
    33    plural: computeresourcepolicies
    34    shortNames:
    35    - gcpcomputeresourcepolicy
    36    - gcpcomputeresourcepolicies
    37    singular: computeresourcepolicy
    38  scope: Namespaced
    39  versions:
    40  - additionalPrinterColumns:
    41    - jsonPath: .metadata.creationTimestamp
    42      name: Age
    43      type: date
    44    - description: When 'True', the most recent reconcile of the resource succeeded
    45      jsonPath: .status.conditions[?(@.type=='Ready')].status
    46      name: Ready
    47      type: string
    48    - description: The reason for the value in 'Ready'
    49      jsonPath: .status.conditions[?(@.type=='Ready')].reason
    50      name: Status
    51      type: string
    52    - description: The last transition time for the value in 'Status'
    53      jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime
    54      name: Status Age
    55      type: date
    56    name: v1beta1
    57    schema:
    58      openAPIV3Schema:
    59        properties:
    60          apiVersion:
    61            description: 'apiVersion defines the versioned schema of this representation
    62              of an object. Servers should convert recognized schemas to the latest
    63              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
    64            type: string
    65          kind:
    66            description: 'kind is a string value representing the REST resource this
    67              object represents. Servers may infer this from the endpoint the client
    68              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
    69            type: string
    70          metadata:
    71            type: object
    72          spec:
    73            properties:
    74              description:
    75                description: Immutable. An optional description of this resource.
    76                  Provide this property when you create the resource.
    77                type: string
    78              diskConsistencyGroupPolicy:
    79                description: Immutable. Replication consistency group for asynchronous
    80                  disk replication.
    81                properties:
    82                  enabled:
    83                    description: Immutable. Enable disk consistency on the resource
    84                      policy.
    85                    type: boolean
    86                required:
    87                - enabled
    88                type: object
    89              groupPlacementPolicy:
    90                description: Immutable. Resource policy for instances used for placement
    91                  configuration.
    92                properties:
    93                  availabilityDomainCount:
    94                    description: |-
    95                      Immutable. The number of availability domains instances will be spread across. If two instances are in different
    96                      availability domain, they will not be put in the same low latency network.
    97                    type: integer
    98                  collocation:
    99                    description: |-
   100                      Immutable. Collocation specifies whether to place VMs inside the same availability domain on the same low-latency network.
   101                      Specify 'COLLOCATED' to enable collocation. Can only be specified with 'vm_count'. If compute instances are created
   102                      with a COLLOCATED policy, then exactly 'vm_count' instances must be created at the same time with the resource policy
   103                      attached. Possible values: ["COLLOCATED"].
   104                    type: string
   105                  maxDistance:
   106                    description: Immutable. Specifies the number of max logical switches.
   107                    type: integer
   108                  vmCount:
   109                    description: |-
   110                      Immutable. Number of VMs in this placement group. Google does not recommend that you use this field
   111                      unless you use a compact policy and you want your policy to work only if it contains this
   112                      exact number of VMs.
   113                    type: integer
   114                type: object
   115              instanceSchedulePolicy:
   116                description: Immutable. Resource policy for scheduling instance operations.
   117                properties:
   118                  expirationTime:
   119                    description: Immutable. The expiration time of the schedule. The
   120                      timestamp is an RFC3339 string.
   121                    type: string
   122                  startTime:
   123                    description: Immutable. The start time of the schedule. The timestamp
   124                      is an RFC3339 string.
   125                    type: string
   126                  timeZone:
   127                    description: |-
   128                      Immutable. Specifies the time zone to be used in interpreting the schedule. The value of this field must be a time zone name
   129                      from the tz database: http://en.wikipedia.org/wiki/Tz_database.
   130                    type: string
   131                  vmStartSchedule:
   132                    description: Immutable. Specifies the schedule for starting instances.
   133                    properties:
   134                      schedule:
   135                        description: Immutable. Specifies the frequency for the operation,
   136                          using the unix-cron format.
   137                        type: string
   138                    required:
   139                    - schedule
   140                    type: object
   141                  vmStopSchedule:
   142                    description: Immutable. Specifies the schedule for stopping instances.
   143                    properties:
   144                      schedule:
   145                        description: Immutable. Specifies the frequency for the operation,
   146                          using the unix-cron format.
   147                        type: string
   148                    required:
   149                    - schedule
   150                    type: object
   151                required:
   152                - timeZone
   153                type: object
   154              region:
   155                description: Immutable. Region where resource policy resides.
   156                type: string
   157              resourceID:
   158                description: Immutable. Optional. The name of the resource. Used for
   159                  creation and acquisition. When unset, the value of `metadata.name`
   160                  is used as the default.
   161                type: string
   162              snapshotSchedulePolicy:
   163                description: Immutable. Policy for creating snapshots of persistent
   164                  disks.
   165                properties:
   166                  retentionPolicy:
   167                    description: Immutable. Retention policy applied to snapshots
   168                      created by this resource policy.
   169                    properties:
   170                      maxRetentionDays:
   171                        description: Immutable. Maximum age of the snapshot that is
   172                          allowed to be kept.
   173                        type: integer
   174                      onSourceDiskDelete:
   175                        description: |-
   176                          Immutable. Specifies the behavior to apply to scheduled snapshots when
   177                          the source disk is deleted. Default value: "KEEP_AUTO_SNAPSHOTS" Possible values: ["KEEP_AUTO_SNAPSHOTS", "APPLY_RETENTION_POLICY"].
   178                        type: string
   179                    required:
   180                    - maxRetentionDays
   181                    type: object
   182                  schedule:
   183                    description: Immutable. Contains one of an 'hourlySchedule', 'dailySchedule',
   184                      or 'weeklySchedule'.
   185                    properties:
   186                      dailySchedule:
   187                        description: Immutable. The policy will execute every nth
   188                          day at the specified time.
   189                        properties:
   190                          daysInCycle:
   191                            description: Immutable. The number of days between snapshots.
   192                            type: integer
   193                          startTime:
   194                            description: |-
   195                              Immutable. This must be in UTC format that resolves to one of
   196                              00:00, 04:00, 08:00, 12:00, 16:00, or 20:00. For example,
   197                              both 13:00-5 and 08:00 are valid.
   198                            type: string
   199                        required:
   200                        - daysInCycle
   201                        - startTime
   202                        type: object
   203                      hourlySchedule:
   204                        description: Immutable. The policy will execute every nth
   205                          hour starting at the specified time.
   206                        properties:
   207                          hoursInCycle:
   208                            description: Immutable. The number of hours between snapshots.
   209                            type: integer
   210                          startTime:
   211                            description: |-
   212                              Immutable. Time within the window to start the operations.
   213                              It must be in an hourly format "HH:MM",
   214                              where HH : [00-23] and MM : [00] GMT.
   215                              eg: 21:00.
   216                            type: string
   217                        required:
   218                        - hoursInCycle
   219                        - startTime
   220                        type: object
   221                      weeklySchedule:
   222                        description: Immutable. Allows specifying a snapshot time
   223                          for each day of the week.
   224                        properties:
   225                          dayOfWeeks:
   226                            description: Immutable. May contain up to seven (one for
   227                              each day of the week) snapshot times.
   228                            items:
   229                              properties:
   230                                day:
   231                                  description: 'Immutable. The day of the week to
   232                                    create the snapshot. e.g. MONDAY Possible values:
   233                                    ["MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY",
   234                                    "FRIDAY", "SATURDAY", "SUNDAY"].'
   235                                  type: string
   236                                startTime:
   237                                  description: |-
   238                                    Immutable. Time within the window to start the operations.
   239                                    It must be in format "HH:MM", where HH : [00-23] and MM : [00-00] GMT.
   240                                  type: string
   241                              required:
   242                              - day
   243                              - startTime
   244                              type: object
   245                            type: array
   246                        required:
   247                        - dayOfWeeks
   248                        type: object
   249                    type: object
   250                  snapshotProperties:
   251                    description: Immutable. Properties with which the snapshots are
   252                      created, such as labels.
   253                    properties:
   254                      chainName:
   255                        description: |-
   256                          Immutable. Creates the new snapshot in the snapshot chain labeled with the
   257                          specified name. The chain name must be 1-63 characters long and comply
   258                          with RFC1035.
   259                        type: string
   260                      guestFlush:
   261                        description: Immutable. Whether to perform a 'guest aware'
   262                          snapshot.
   263                        type: boolean
   264                      labels:
   265                        additionalProperties:
   266                          type: string
   267                        description: Immutable. A set of key-value pairs.
   268                        type: object
   269                      storageLocations:
   270                        description: |-
   271                          Immutable. Cloud Storage bucket location to store the auto snapshot
   272                          (regional or multi-regional).
   273                        items:
   274                          type: string
   275                        type: array
   276                    type: object
   277                required:
   278                - schedule
   279                type: object
   280            required:
   281            - region
   282            type: object
   283          status:
   284            properties:
   285              conditions:
   286                description: Conditions represent the latest available observation
   287                  of the resource's current state.
   288                items:
   289                  properties:
   290                    lastTransitionTime:
   291                      description: Last time the condition transitioned from one status
   292                        to another.
   293                      type: string
   294                    message:
   295                      description: Human-readable message indicating details about
   296                        last transition.
   297                      type: string
   298                    reason:
   299                      description: Unique, one-word, CamelCase reason for the condition's
   300                        last transition.
   301                      type: string
   302                    status:
   303                      description: Status is the status of the condition. Can be True,
   304                        False, Unknown.
   305                      type: string
   306                    type:
   307                      description: Type is the type of the condition.
   308                      type: string
   309                  type: object
   310                type: array
   311              observedGeneration:
   312                description: ObservedGeneration is the generation of the resource
   313                  that was most recently observed by the Config Connector controller.
   314                  If this is equal to metadata.generation, then that means that the
   315                  current reported status reflects the most recent desired state of
   316                  the resource.
   317                type: integer
   318              selfLink:
   319                type: string
   320            type: object
   321        required:
   322        - spec
   323        type: object
   324    served: true
   325    storage: true
   326    subresources:
   327      status: {}
   328status:
   329  acceptedNames:
   330    kind: ""
   331    plural: ""
   332  conditions: []
   333  storedVersions: []

View as plain text