...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/config/crds/resources/apiextensions.k8s.io_v1_customresourcedefinition_osconfigospolicyassignments.osconfig.cnrm.cloud.google.com.yaml

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

     1apiVersion: apiextensions.k8s.io/v1
     2kind: CustomResourceDefinition
     3metadata:
     4  annotations:
     5    cnrm.cloud.google.com/version: 0.0.0-dev
     6  creationTimestamp: null
     7  labels:
     8    cnrm.cloud.google.com/dcl2crd: "true"
     9    cnrm.cloud.google.com/managed-by-kcc: "true"
    10    cnrm.cloud.google.com/stability-level: stable
    11    cnrm.cloud.google.com/system: "true"
    12  name: osconfigospolicyassignments.osconfig.cnrm.cloud.google.com
    13spec:
    14  group: osconfig.cnrm.cloud.google.com
    15  names:
    16    categories:
    17    - gcp
    18    kind: OSConfigOSPolicyAssignment
    19    plural: osconfigospolicyassignments
    20    shortNames:
    21    - gcposconfigospolicyassignment
    22    - gcposconfigospolicyassignments
    23    singular: osconfigospolicyassignment
    24  preserveUnknownFields: false
    25  scope: Namespaced
    26  versions:
    27  - additionalPrinterColumns:
    28    - jsonPath: .metadata.creationTimestamp
    29      name: Age
    30      type: date
    31    - description: When 'True', the most recent reconcile of the resource succeeded
    32      jsonPath: .status.conditions[?(@.type=='Ready')].status
    33      name: Ready
    34      type: string
    35    - description: The reason for the value in 'Ready'
    36      jsonPath: .status.conditions[?(@.type=='Ready')].reason
    37      name: Status
    38      type: string
    39    - description: The last transition time for the value in 'Status'
    40      jsonPath: .status.conditions[?(@.type=='Ready')].lastTransitionTime
    41      name: Status Age
    42      type: date
    43    name: v1beta1
    44    schema:
    45      openAPIV3Schema:
    46        properties:
    47          apiVersion:
    48            description: 'apiVersion defines the versioned schema of this representation
    49              of an object. Servers should convert recognized schemas to the latest
    50              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources'
    51            type: string
    52          kind:
    53            description: 'kind is a string value representing the REST resource this
    54              object represents. Servers may infer this from the endpoint the client
    55              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds'
    56            type: string
    57          metadata:
    58            type: object
    59          spec:
    60            properties:
    61              description:
    62                description: OS policy assignment description. Length of the description
    63                  is limited to 1024 characters.
    64                type: string
    65              instanceFilter:
    66                description: Required. Filter to select VMs.
    67                properties:
    68                  all:
    69                    description: Target all VMs in the project. If true, no other
    70                      criteria is permitted.
    71                    type: boolean
    72                  exclusionLabels:
    73                    description: List of label sets used for VM exclusion. If the
    74                      list has more than one label set, the VM is excluded if any
    75                      of the label sets are applicable for the VM.
    76                    items:
    77                      properties:
    78                        labels:
    79                          additionalProperties:
    80                            type: string
    81                          description: Labels are identified by key/value pairs in
    82                            this map. A VM should contain all the key/value pairs
    83                            specified in this map to be selected.
    84                          type: object
    85                      type: object
    86                    type: array
    87                  inclusionLabels:
    88                    description: List of label sets used for VM inclusion. If the
    89                      list has more than one `LabelSet`, the VM is included if any
    90                      of the label sets are applicable for the VM.
    91                    items:
    92                      properties:
    93                        labels:
    94                          additionalProperties:
    95                            type: string
    96                          description: Labels are identified by key/value pairs in
    97                            this map. A VM should contain all the key/value pairs
    98                            specified in this map to be selected.
    99                          type: object
   100                      type: object
   101                    type: array
   102                  inventories:
   103                    description: List of inventories to select VMs. A VM is selected
   104                      if its inventory data matches at least one of the following
   105                      inventories.
   106                    items:
   107                      properties:
   108                        osShortName:
   109                          description: Required. The OS short name
   110                          type: string
   111                        osVersion:
   112                          description: The OS version Prefix matches are supported
   113                            if asterisk(*) is provided as the last character. For
   114                            example, to match all versions with a major version of
   115                            `7`, specify the following value for this field `7.*`
   116                            An empty string matches all OS versions.
   117                          type: string
   118                      required:
   119                      - osShortName
   120                      type: object
   121                    type: array
   122                type: object
   123              location:
   124                description: Immutable. The location for the resource
   125                type: string
   126              osPolicies:
   127                description: Required. List of OS policies to be applied to the VMs.
   128                items:
   129                  properties:
   130                    allowNoResourceGroupMatch:
   131                      description: This flag determines the OS policy compliance status
   132                        when none of the resource groups within the policy are applicable
   133                        for a VM. Set this value to `true` if the policy needs to
   134                        be reported as compliant even if the policy has nothing to
   135                        validate or enforce.
   136                      type: boolean
   137                    description:
   138                      description: Policy description. Length of the description is
   139                        limited to 1024 characters.
   140                      type: string
   141                    id:
   142                      description: 'Required. The id of the OS policy with the following
   143                        restrictions: * Must contain only lowercase letters, numbers,
   144                        and hyphens. * Must start with a letter. * Must be between
   145                        1-63 characters. * Must end with a number or a letter. * Must
   146                        be unique within the assignment.'
   147                      type: string
   148                    mode:
   149                      description: 'Required. Policy mode Possible values: MODE_UNSPECIFIED,
   150                        VALIDATION, ENFORCEMENT'
   151                      type: string
   152                    resourceGroups:
   153                      description: Required. List of resource groups for the policy.
   154                        For a particular VM, resource groups are evaluated in the
   155                        order specified and the first resource group that is applicable
   156                        is selected and the rest are ignored. If none of the resource
   157                        groups are applicable for a VM, the VM is considered to be
   158                        non-compliant w.r.t this policy. This behavior can be toggled
   159                        by the flag `allow_no_resource_group_match`
   160                      items:
   161                        properties:
   162                          inventoryFilters:
   163                            description: 'List of inventory filters for the resource
   164                              group. The resources in this resource group are applied
   165                              to the target VM if it satisfies at least one of the
   166                              following inventory filters. For example, to apply this
   167                              resource group to VMs running either `RHEL` or `CentOS`
   168                              operating systems, specify 2 items for the list with
   169                              following values: inventory_filters[0].os_short_name=''rhel''
   170                              and inventory_filters[1].os_short_name=''centos'' If
   171                              the list is empty, this resource group will be applied
   172                              to the target VM unconditionally.'
   173                            items:
   174                              properties:
   175                                osShortName:
   176                                  description: Required. The OS short name
   177                                  type: string
   178                                osVersion:
   179                                  description: The OS version Prefix matches are supported
   180                                    if asterisk(*) is provided as the last character.
   181                                    For example, to match all versions with a major
   182                                    version of `7`, specify the following value for
   183                                    this field `7.*` An empty string matches all OS
   184                                    versions.
   185                                  type: string
   186                              required:
   187                              - osShortName
   188                              type: object
   189                            type: array
   190                          resources:
   191                            description: Required. List of resources configured for
   192                              this resource group. The resources are executed in the
   193                              exact order specified here.
   194                            items:
   195                              properties:
   196                                exec:
   197                                  description: Exec resource
   198                                  properties:
   199                                    enforce:
   200                                      description: What to run to bring this resource
   201                                        into the desired state. An exit code of 100
   202                                        indicates "success", any other exit code indicates
   203                                        a failure running enforce.
   204                                      properties:
   205                                        args:
   206                                          description: Optional arguments to pass
   207                                            to the source during execution.
   208                                          items:
   209                                            type: string
   210                                          type: array
   211                                        file:
   212                                          description: A remote or local file.
   213                                          properties:
   214                                            allowInsecure:
   215                                              description: 'Defaults to false. When
   216                                                false, files are subject to validations
   217                                                based on the file type: Remote: A
   218                                                checksum must be specified. Cloud
   219                                                Storage: An object generation number
   220                                                must be specified.'
   221                                              type: boolean
   222                                            gcs:
   223                                              description: A Cloud Storage object.
   224                                              properties:
   225                                                bucket:
   226                                                  description: Required. Bucket of
   227                                                    the Cloud Storage object.
   228                                                  type: string
   229                                                generation:
   230                                                  description: Generation number of
   231                                                    the Cloud Storage object.
   232                                                  format: int64
   233                                                  type: integer
   234                                                object:
   235                                                  description: Required. Name of the
   236                                                    Cloud Storage object.
   237                                                  type: string
   238                                              required:
   239                                              - bucket
   240                                              - object
   241                                              type: object
   242                                            localPath:
   243                                              description: A local path within the
   244                                                VM to use.
   245                                              type: string
   246                                            remote:
   247                                              description: A generic remote file.
   248                                              properties:
   249                                                sha256Checksum:
   250                                                  description: SHA256 checksum of
   251                                                    the remote file.
   252                                                  type: string
   253                                                uri:
   254                                                  description: Required. URI from
   255                                                    which to fetch the object. It
   256                                                    should contain both the protocol
   257                                                    and path following the format
   258                                                    `{protocol}://{location}`.
   259                                                  type: string
   260                                              required:
   261                                              - uri
   262                                              type: object
   263                                          type: object
   264                                        interpreter:
   265                                          description: 'Required. The script interpreter
   266                                            to use. Possible values: INTERPRETER_UNSPECIFIED,
   267                                            NONE, SHELL, POWERSHELL'
   268                                          type: string
   269                                        outputFilePath:
   270                                          description: Only recorded for enforce Exec.
   271                                            Path to an output file (that is created
   272                                            by this Exec) whose content will be recorded
   273                                            in OSPolicyResourceCompliance after a
   274                                            successful run. Absence or failure to
   275                                            read this file will result in this ExecResource
   276                                            being non-compliant. Output file size
   277                                            is limited to 100K bytes.
   278                                          type: string
   279                                        script:
   280                                          description: An inline script. The size
   281                                            of the script is limited to 1024 characters.
   282                                          type: string
   283                                      required:
   284                                      - interpreter
   285                                      type: object
   286                                    validate:
   287                                      description: Required. What to run to validate
   288                                        this resource is in the desired state. An
   289                                        exit code of 100 indicates "in desired state",
   290                                        and exit code of 101 indicates "not in desired
   291                                        state". Any other exit code indicates a failure
   292                                        running validate.
   293                                      properties:
   294                                        args:
   295                                          description: Optional arguments to pass
   296                                            to the source during execution.
   297                                          items:
   298                                            type: string
   299                                          type: array
   300                                        file:
   301                                          description: A remote or local file.
   302                                          properties:
   303                                            allowInsecure:
   304                                              description: 'Defaults to false. When
   305                                                false, files are subject to validations
   306                                                based on the file type: Remote: A
   307                                                checksum must be specified. Cloud
   308                                                Storage: An object generation number
   309                                                must be specified.'
   310                                              type: boolean
   311                                            gcs:
   312                                              description: A Cloud Storage object.
   313                                              properties:
   314                                                bucket:
   315                                                  description: Required. Bucket of
   316                                                    the Cloud Storage object.
   317                                                  type: string
   318                                                generation:
   319                                                  description: Generation number of
   320                                                    the Cloud Storage object.
   321                                                  format: int64
   322                                                  type: integer
   323                                                object:
   324                                                  description: Required. Name of the
   325                                                    Cloud Storage object.
   326                                                  type: string
   327                                              required:
   328                                              - bucket
   329                                              - object
   330                                              type: object
   331                                            localPath:
   332                                              description: A local path within the
   333                                                VM to use.
   334                                              type: string
   335                                            remote:
   336                                              description: A generic remote file.
   337                                              properties:
   338                                                sha256Checksum:
   339                                                  description: SHA256 checksum of
   340                                                    the remote file.
   341                                                  type: string
   342                                                uri:
   343                                                  description: Required. URI from
   344                                                    which to fetch the object. It
   345                                                    should contain both the protocol
   346                                                    and path following the format
   347                                                    `{protocol}://{location}`.
   348                                                  type: string
   349                                              required:
   350                                              - uri
   351                                              type: object
   352                                          type: object
   353                                        interpreter:
   354                                          description: 'Required. The script interpreter
   355                                            to use. Possible values: INTERPRETER_UNSPECIFIED,
   356                                            NONE, SHELL, POWERSHELL'
   357                                          type: string
   358                                        outputFilePath:
   359                                          description: Only recorded for enforce Exec.
   360                                            Path to an output file (that is created
   361                                            by this Exec) whose content will be recorded
   362                                            in OSPolicyResourceCompliance after a
   363                                            successful run. Absence or failure to
   364                                            read this file will result in this ExecResource
   365                                            being non-compliant. Output file size
   366                                            is limited to 100K bytes.
   367                                          type: string
   368                                        script:
   369                                          description: An inline script. The size
   370                                            of the script is limited to 1024 characters.
   371                                          type: string
   372                                      required:
   373                                      - interpreter
   374                                      type: object
   375                                  required:
   376                                  - validate
   377                                  type: object
   378                                file:
   379                                  description: File resource
   380                                  properties:
   381                                    content:
   382                                      description: A a file with this content. The
   383                                        size of the content is limited to 1024 characters.
   384                                      type: string
   385                                    file:
   386                                      description: A remote or local source.
   387                                      properties:
   388                                        allowInsecure:
   389                                          description: 'Defaults to false. When false,
   390                                            files are subject to validations based
   391                                            on the file type: Remote: A checksum must
   392                                            be specified. Cloud Storage: An object
   393                                            generation number must be specified.'
   394                                          type: boolean
   395                                        gcs:
   396                                          description: A Cloud Storage object.
   397                                          properties:
   398                                            bucket:
   399                                              description: Required. Bucket of the
   400                                                Cloud Storage object.
   401                                              type: string
   402                                            generation:
   403                                              description: Generation number of the
   404                                                Cloud Storage object.
   405                                              format: int64
   406                                              type: integer
   407                                            object:
   408                                              description: Required. Name of the Cloud
   409                                                Storage object.
   410                                              type: string
   411                                          required:
   412                                          - bucket
   413                                          - object
   414                                          type: object
   415                                        localPath:
   416                                          description: A local path within the VM
   417                                            to use.
   418                                          type: string
   419                                        remote:
   420                                          description: A generic remote file.
   421                                          properties:
   422                                            sha256Checksum:
   423                                              description: SHA256 checksum of the
   424                                                remote file.
   425                                              type: string
   426                                            uri:
   427                                              description: Required. URI from which
   428                                                to fetch the object. It should contain
   429                                                both the protocol and path following
   430                                                the format `{protocol}://{location}`.
   431                                              type: string
   432                                          required:
   433                                          - uri
   434                                          type: object
   435                                      type: object
   436                                    path:
   437                                      description: Required. The absolute path of
   438                                        the file within the VM.
   439                                      type: string
   440                                    permissions:
   441                                      description: 'Consists of three octal digits
   442                                        which represent, in order, the permissions
   443                                        of the owner, group, and other users for the
   444                                        file (similarly to the numeric mode used in
   445                                        the linux chmod utility). Each digit represents
   446                                        a three bit number with the 4 bit corresponding
   447                                        to the read permissions, the 2 bit corresponds
   448                                        to the write bit, and the one bit corresponds
   449                                        to the execute permission. Default behavior
   450                                        is 755. Below are some examples of permissions
   451                                        and their associated values: read, write,
   452                                        and execute: 7 read and execute: 5 read and
   453                                        write: 6 read only: 4'
   454                                      type: string
   455                                    state:
   456                                      description: 'Required. Desired state of the
   457                                        file. Possible values: OS_POLICY_COMPLIANCE_STATE_UNSPECIFIED,
   458                                        COMPLIANT, NON_COMPLIANT, UNKNOWN, NO_OS_POLICIES_APPLICABLE'
   459                                      type: string
   460                                  required:
   461                                  - path
   462                                  - state
   463                                  type: object
   464                                id:
   465                                  description: 'Required. The id of the resource with
   466                                    the following restrictions: * Must contain only
   467                                    lowercase letters, numbers, and hyphens. * Must
   468                                    start with a letter. * Must be between 1-63 characters.
   469                                    * Must end with a number or a letter. * Must be
   470                                    unique within the OS policy.'
   471                                  type: string
   472                                pkg:
   473                                  description: Package resource
   474                                  properties:
   475                                    apt:
   476                                      description: A package managed by Apt.
   477                                      properties:
   478                                        name:
   479                                          description: Required. Package name.
   480                                          type: string
   481                                      required:
   482                                      - name
   483                                      type: object
   484                                    deb:
   485                                      description: A deb package file.
   486                                      properties:
   487                                        pullDeps:
   488                                          description: 'Whether dependencies should
   489                                            also be installed. - install when false:
   490                                            `dpkg -i package` - install when true:
   491                                            `apt-get update && apt-get -y install
   492                                            package.deb`'
   493                                          type: boolean
   494                                        source:
   495                                          description: Required. A deb package.
   496                                          properties:
   497                                            allowInsecure:
   498                                              description: 'Defaults to false. When
   499                                                false, files are subject to validations
   500                                                based on the file type: Remote: A
   501                                                checksum must be specified. Cloud
   502                                                Storage: An object generation number
   503                                                must be specified.'
   504                                              type: boolean
   505                                            gcs:
   506                                              description: A Cloud Storage object.
   507                                              properties:
   508                                                bucket:
   509                                                  description: Required. Bucket of
   510                                                    the Cloud Storage object.
   511                                                  type: string
   512                                                generation:
   513                                                  description: Generation number of
   514                                                    the Cloud Storage object.
   515                                                  format: int64
   516                                                  type: integer
   517                                                object:
   518                                                  description: Required. Name of the
   519                                                    Cloud Storage object.
   520                                                  type: string
   521                                              required:
   522                                              - bucket
   523                                              - object
   524                                              type: object
   525                                            localPath:
   526                                              description: A local path within the
   527                                                VM to use.
   528                                              type: string
   529                                            remote:
   530                                              description: A generic remote file.
   531                                              properties:
   532                                                sha256Checksum:
   533                                                  description: SHA256 checksum of
   534                                                    the remote file.
   535                                                  type: string
   536                                                uri:
   537                                                  description: Required. URI from
   538                                                    which to fetch the object. It
   539                                                    should contain both the protocol
   540                                                    and path following the format
   541                                                    `{protocol}://{location}`.
   542                                                  type: string
   543                                              required:
   544                                              - uri
   545                                              type: object
   546                                          type: object
   547                                      required:
   548                                      - source
   549                                      type: object
   550                                    desiredState:
   551                                      description: 'Required. The desired state the
   552                                        agent should maintain for this package. Possible
   553                                        values: DESIRED_STATE_UNSPECIFIED, INSTALLED,
   554                                        REMOVED'
   555                                      type: string
   556                                    googet:
   557                                      description: A package managed by GooGet.
   558                                      properties:
   559                                        name:
   560                                          description: Required. Package name.
   561                                          type: string
   562                                      required:
   563                                      - name
   564                                      type: object
   565                                    msi:
   566                                      description: An MSI package.
   567                                      properties:
   568                                        properties:
   569                                          description: Additional properties to use
   570                                            during installation. This should be in
   571                                            the format of Property=Setting. Appended
   572                                            to the defaults of `ACTION=INSTALL REBOOT=ReallySuppress`.
   573                                          items:
   574                                            type: string
   575                                          type: array
   576                                        source:
   577                                          description: Required. The MSI package.
   578                                          properties:
   579                                            allowInsecure:
   580                                              description: 'Defaults to false. When
   581                                                false, files are subject to validations
   582                                                based on the file type: Remote: A
   583                                                checksum must be specified. Cloud
   584                                                Storage: An object generation number
   585                                                must be specified.'
   586                                              type: boolean
   587                                            gcs:
   588                                              description: A Cloud Storage object.
   589                                              properties:
   590                                                bucket:
   591                                                  description: Required. Bucket of
   592                                                    the Cloud Storage object.
   593                                                  type: string
   594                                                generation:
   595                                                  description: Generation number of
   596                                                    the Cloud Storage object.
   597                                                  format: int64
   598                                                  type: integer
   599                                                object:
   600                                                  description: Required. Name of the
   601                                                    Cloud Storage object.
   602                                                  type: string
   603                                              required:
   604                                              - bucket
   605                                              - object
   606                                              type: object
   607                                            localPath:
   608                                              description: A local path within the
   609                                                VM to use.
   610                                              type: string
   611                                            remote:
   612                                              description: A generic remote file.
   613                                              properties:
   614                                                sha256Checksum:
   615                                                  description: SHA256 checksum of
   616                                                    the remote file.
   617                                                  type: string
   618                                                uri:
   619                                                  description: Required. URI from
   620                                                    which to fetch the object. It
   621                                                    should contain both the protocol
   622                                                    and path following the format
   623                                                    `{protocol}://{location}`.
   624                                                  type: string
   625                                              required:
   626                                              - uri
   627                                              type: object
   628                                          type: object
   629                                      required:
   630                                      - source
   631                                      type: object
   632                                    rpm:
   633                                      description: An rpm package file.
   634                                      properties:
   635                                        pullDeps:
   636                                          description: 'Whether dependencies should
   637                                            also be installed. - install when false:
   638                                            `rpm --upgrade --replacepkgs package.rpm`
   639                                            - install when true: `yum -y install package.rpm`
   640                                            or `zypper -y install package.rpm`'
   641                                          type: boolean
   642                                        source:
   643                                          description: Required. An rpm package.
   644                                          properties:
   645                                            allowInsecure:
   646                                              description: 'Defaults to false. When
   647                                                false, files are subject to validations
   648                                                based on the file type: Remote: A
   649                                                checksum must be specified. Cloud
   650                                                Storage: An object generation number
   651                                                must be specified.'
   652                                              type: boolean
   653                                            gcs:
   654                                              description: A Cloud Storage object.
   655                                              properties:
   656                                                bucket:
   657                                                  description: Required. Bucket of
   658                                                    the Cloud Storage object.
   659                                                  type: string
   660                                                generation:
   661                                                  description: Generation number of
   662                                                    the Cloud Storage object.
   663                                                  format: int64
   664                                                  type: integer
   665                                                object:
   666                                                  description: Required. Name of the
   667                                                    Cloud Storage object.
   668                                                  type: string
   669                                              required:
   670                                              - bucket
   671                                              - object
   672                                              type: object
   673                                            localPath:
   674                                              description: A local path within the
   675                                                VM to use.
   676                                              type: string
   677                                            remote:
   678                                              description: A generic remote file.
   679                                              properties:
   680                                                sha256Checksum:
   681                                                  description: SHA256 checksum of
   682                                                    the remote file.
   683                                                  type: string
   684                                                uri:
   685                                                  description: Required. URI from
   686                                                    which to fetch the object. It
   687                                                    should contain both the protocol
   688                                                    and path following the format
   689                                                    `{protocol}://{location}`.
   690                                                  type: string
   691                                              required:
   692                                              - uri
   693                                              type: object
   694                                          type: object
   695                                      required:
   696                                      - source
   697                                      type: object
   698                                    yum:
   699                                      description: A package managed by YUM.
   700                                      properties:
   701                                        name:
   702                                          description: Required. Package name.
   703                                          type: string
   704                                      required:
   705                                      - name
   706                                      type: object
   707                                    zypper:
   708                                      description: A package managed by Zypper.
   709                                      properties:
   710                                        name:
   711                                          description: Required. Package name.
   712                                          type: string
   713                                      required:
   714                                      - name
   715                                      type: object
   716                                  required:
   717                                  - desiredState
   718                                  type: object
   719                                repository:
   720                                  description: Package repository resource
   721                                  properties:
   722                                    apt:
   723                                      description: An Apt Repository.
   724                                      properties:
   725                                        archiveType:
   726                                          description: 'Required. Type of archive
   727                                            files in this repository. Possible values:
   728                                            ARCHIVE_TYPE_UNSPECIFIED, DEB, DEB_SRC'
   729                                          type: string
   730                                        components:
   731                                          description: Required. List of components
   732                                            for this repository. Must contain at least
   733                                            one item.
   734                                          items:
   735                                            type: string
   736                                          type: array
   737                                        distribution:
   738                                          description: Required. Distribution of this
   739                                            repository.
   740                                          type: string
   741                                        gpgKey:
   742                                          description: URI of the key file for this
   743                                            repository. The agent maintains a keyring
   744                                            at `/etc/apt/trusted.gpg.d/osconfig_agent_managed.gpg`.
   745                                          type: string
   746                                        uri:
   747                                          description: Required. URI for this repository.
   748                                          type: string
   749                                      required:
   750                                      - archiveType
   751                                      - components
   752                                      - distribution
   753                                      - uri
   754                                      type: object
   755                                    goo:
   756                                      description: A Goo Repository.
   757                                      properties:
   758                                        name:
   759                                          description: Required. The name of the repository.
   760                                          type: string
   761                                        url:
   762                                          description: Required. The url of the repository.
   763                                          type: string
   764                                      required:
   765                                      - name
   766                                      - url
   767                                      type: object
   768                                    yum:
   769                                      description: A Yum Repository.
   770                                      properties:
   771                                        baseUrl:
   772                                          description: Required. The location of the
   773                                            repository directory.
   774                                          type: string
   775                                        displayName:
   776                                          description: The display name of the repository.
   777                                          type: string
   778                                        gpgKeys:
   779                                          description: URIs of GPG keys.
   780                                          items:
   781                                            type: string
   782                                          type: array
   783                                        id:
   784                                          description: Required. A one word, unique
   785                                            name for this repository. This is the
   786                                            `repo id` in the yum config file and also
   787                                            the `display_name` if `display_name` is
   788                                            omitted. This id is also used as the unique
   789                                            identifier when checking for resource
   790                                            conflicts.
   791                                          type: string
   792                                      required:
   793                                      - baseUrl
   794                                      - id
   795                                      type: object
   796                                    zypper:
   797                                      description: A Zypper Repository.
   798                                      properties:
   799                                        baseUrl:
   800                                          description: Required. The location of the
   801                                            repository directory.
   802                                          type: string
   803                                        displayName:
   804                                          description: The display name of the repository.
   805                                          type: string
   806                                        gpgKeys:
   807                                          description: URIs of GPG keys.
   808                                          items:
   809                                            type: string
   810                                          type: array
   811                                        id:
   812                                          description: Required. A one word, unique
   813                                            name for this repository. This is the
   814                                            `repo id` in the zypper config file and
   815                                            also the `display_name` if `display_name`
   816                                            is omitted. This id is also used as the
   817                                            unique identifier when checking for GuestPolicy
   818                                            conflicts.
   819                                          type: string
   820                                      required:
   821                                      - baseUrl
   822                                      - id
   823                                      type: object
   824                                  type: object
   825                              required:
   826                              - id
   827                              type: object
   828                            type: array
   829                        required:
   830                        - resources
   831                        type: object
   832                      type: array
   833                  required:
   834                  - id
   835                  - mode
   836                  - resourceGroups
   837                  type: object
   838                type: array
   839              projectRef:
   840                description: Immutable. The Project that this resource belongs to.
   841                oneOf:
   842                - not:
   843                    required:
   844                    - external
   845                  required:
   846                  - name
   847                - not:
   848                    anyOf:
   849                    - required:
   850                      - name
   851                    - required:
   852                      - namespace
   853                  required:
   854                  - external
   855                properties:
   856                  external:
   857                    description: |-
   858                      The project for the resource
   859
   860                      Allowed value: The Google Cloud resource name of a `Project` resource (format: `projects/{{name}}`).
   861                    type: string
   862                  name:
   863                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   864                    type: string
   865                  namespace:
   866                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   867                    type: string
   868                type: object
   869              resourceID:
   870                description: Immutable. Optional. The name of the resource. Used for
   871                  creation and acquisition. When unset, the value of `metadata.name`
   872                  is used as the default.
   873                type: string
   874              rollout:
   875                description: 'Required. Rollout to deploy the OS policy assignment.
   876                  A rollout is triggered in the following situations: 1) OSPolicyAssignment
   877                  is created. 2) OSPolicyAssignment is updated and the update contains
   878                  changes to one of the following fields: - instance_filter - os_policies
   879                  3) OSPolicyAssignment is deleted.'
   880                properties:
   881                  disruptionBudget:
   882                    description: Required. The maximum number (or percentage) of VMs
   883                      per zone to disrupt at any given moment.
   884                    properties:
   885                      fixed:
   886                        description: Specifies a fixed value.
   887                        format: int64
   888                        type: integer
   889                      percent:
   890                        description: Specifies the relative value defined as a percentage,
   891                          which will be multiplied by a reference value.
   892                        format: int64
   893                        type: integer
   894                    type: object
   895                  minWaitDuration:
   896                    description: Required. This determines the minimum duration of
   897                      time to wait after the configuration changes are applied through
   898                      the current rollout. A VM continues to count towards the `disruption_budget`
   899                      at least until this duration of time has passed after configuration
   900                      changes are applied.
   901                    type: string
   902                required:
   903                - disruptionBudget
   904                - minWaitDuration
   905                type: object
   906              skipAwaitRollout:
   907                description: Set to true to skip awaiting rollout during resource
   908                  creation and update.
   909                type: boolean
   910            required:
   911            - instanceFilter
   912            - location
   913            - osPolicies
   914            - projectRef
   915            - rollout
   916            type: object
   917          status:
   918            properties:
   919              baseline:
   920                description: Output only. Indicates that this revision has been successfully
   921                  rolled out in this zone and new VMs will be assigned OS policies
   922                  from this revision. For a given OS policy assignment, there is only
   923                  one revision with a value of `true` for this field.
   924                type: boolean
   925              conditions:
   926                description: Conditions represent the latest available observation
   927                  of the resource's current state.
   928                items:
   929                  properties:
   930                    lastTransitionTime:
   931                      description: Last time the condition transitioned from one status
   932                        to another.
   933                      type: string
   934                    message:
   935                      description: Human-readable message indicating details about
   936                        last transition.
   937                      type: string
   938                    reason:
   939                      description: Unique, one-word, CamelCase reason for the condition's
   940                        last transition.
   941                      type: string
   942                    status:
   943                      description: Status is the status of the condition. Can be True,
   944                        False, Unknown.
   945                      type: string
   946                    type:
   947                      description: Type is the type of the condition.
   948                      type: string
   949                  type: object
   950                type: array
   951              deleted:
   952                description: Output only. Indicates that this revision deletes the
   953                  OS policy assignment.
   954                type: boolean
   955              etag:
   956                description: The etag for this OS policy assignment. If this is provided
   957                  on update, it must match the server's etag.
   958                type: string
   959              observedGeneration:
   960                description: ObservedGeneration is the generation of the resource
   961                  that was most recently observed by the Config Connector controller.
   962                  If this is equal to metadata.generation, then that means that the
   963                  current reported status reflects the most recent desired state of
   964                  the resource.
   965                type: integer
   966              reconciling:
   967                description: 'Output only. Indicates that reconciliation is in progress
   968                  for the revision. This value is `true` when the `rollout_state`
   969                  is one of: * IN_PROGRESS * CANCELLING'
   970                type: boolean
   971              revisionCreateTime:
   972                description: Output only. The timestamp that the revision was created.
   973                format: date-time
   974                type: string
   975              revisionId:
   976                description: Output only. The assignment revision ID A new revision
   977                  is committed whenever a rollout is triggered for a OS policy assignment
   978                type: string
   979              rolloutState:
   980                description: 'Output only. OS policy assignment rollout state Possible
   981                  values: ROLLOUT_STATE_UNSPECIFIED, IN_PROGRESS, CANCELLING, CANCELLED,
   982                  SUCCEEDED'
   983                type: string
   984              uid:
   985                description: Output only. Server generated unique id for the OS policy
   986                  assignment resource.
   987                type: string
   988            type: object
   989        required:
   990        - spec
   991        type: object
   992    served: true
   993    storage: true
   994    subresources:
   995      status: {}
   996status:
   997  acceptedNames:
   998    kind: ""
   999    plural: ""
  1000  conditions: []
  1001  storedVersions: []

View as plain text