...

Text file src/edge-infra.dev/test/fixtures/crds/gcp/resourcemanager.cnrm.cloud.google.com_resourcemanagerpolicies.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: resourcemanagerpolicies.resourcemanager.cnrm.cloud.google.com
     8spec:
     9  group: resourcemanager.cnrm.cloud.google.com
    10  names:
    11    kind: ResourceManagerPolicy
    12    listKind: ResourceManagerPolicyList
    13    plural: resourcemanagerpolicies
    14    singular: resourcemanagerpolicy
    15  scope: Namespaced
    16  versions:
    17  - name: v1beta1
    18    schema:
    19      openAPIV3Schema:
    20        description: ResourceManagerPolicy is the Schema for the resourcemanager 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              booleanPolicy:
    42                description: A boolean policy is a constraint that is either enforced
    43                  or not.
    44                properties:
    45                  enforced:
    46                    description: If true, then the Policy is enforced. If false, then
    47                      any configuration is acceptable.
    48                    type: boolean
    49                required:
    50                - enforced
    51                type: object
    52              constraint:
    53                description: Immutable. The name of the Constraint the Policy is configuring,
    54                  for example, serviceuser.services.
    55                type: string
    56              folderRef:
    57                description: |-
    58                  The folder on which to configure the constraint. Only one of
    59                  projectRef, folderRef, or organizationRef may be specified.
    60                properties:
    61                  external:
    62                    description: The external name of the referenced resource
    63                    type: string
    64                  kind:
    65                    description: Kind of the referent.
    66                    type: string
    67                  name:
    68                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
    69                    type: string
    70                  namespace:
    71                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
    72                    type: string
    73                type: object
    74              listPolicy:
    75                description: A policy that can define specific values that are allowed
    76                  or denied for the given constraint. It can also be used to allow
    77                  or deny all values. .
    78                properties:
    79                  allow:
    80                    description: One or the other must be set.
    81                    properties:
    82                      all:
    83                        description: The policy allows or denies all values.
    84                        type: boolean
    85                      values:
    86                        description: The policy can define specific values that are
    87                          allowed or denied.
    88                        items:
    89                          type: string
    90                        type: array
    91                    type: object
    92                  deny:
    93                    description: One or the other must be set.
    94                    properties:
    95                      all:
    96                        description: The policy allows or denies all values.
    97                        type: boolean
    98                      values:
    99                        description: The policy can define specific values that are
   100                          allowed or denied.
   101                        items:
   102                          type: string
   103                        type: array
   104                    type: object
   105                  inheritFromParent:
   106                    description: If set to true, the values from the effective Policy
   107                      of the parent resource are inherited, meaning the values set
   108                      in this Policy are added to the values inherited up the hierarchy.
   109                    type: boolean
   110                  suggestedValue:
   111                    description: The Google Cloud Console will try to default to a
   112                      configuration that matches the value specified in this field.
   113                    type: string
   114                type: object
   115              organizationRef:
   116                description: |-
   117                  The organization on which to configure the constraint. Only one of
   118                  projectRef, folderRef, or organizationRef may be specified.
   119                properties:
   120                  external:
   121                    description: The external name of the referenced resource
   122                    type: string
   123                  kind:
   124                    description: Kind of the referent.
   125                    type: string
   126                  name:
   127                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   128                    type: string
   129                  namespace:
   130                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   131                    type: string
   132                type: object
   133              projectRef:
   134                description: |-
   135                  The project on which to configure the constraint. Only one of
   136                  projectRef, folderRef, or organizationRef may be specified.
   137                properties:
   138                  external:
   139                    description: The external name of the referenced resource
   140                    type: string
   141                  kind:
   142                    description: Kind of the referent.
   143                    type: string
   144                  name:
   145                    description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names'
   146                    type: string
   147                  namespace:
   148                    description: 'Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/'
   149                    type: string
   150                type: object
   151              restorePolicy:
   152                description: A restore policy is a constraint to restore the default
   153                  policy.
   154                properties:
   155                  default:
   156                    description: May only be set to true. If set, then the default
   157                      Policy is restored.
   158                    type: boolean
   159                required:
   160                - default
   161                type: object
   162              version:
   163                description: Version of the Policy. Default version is 0.
   164                type: integer
   165            required:
   166            - constraint
   167            type: object
   168          status:
   169            properties:
   170              conditions:
   171                description: |-
   172                  Conditions represent the latest available observations of the
   173                  ResourceManagerPolicy's current state.
   174                items:
   175                  properties:
   176                    lastTransitionTime:
   177                      description: Last time the condition transitioned from one status
   178                        to another.
   179                      type: string
   180                    message:
   181                      description: Human-readable message indicating details about
   182                        last transition.
   183                      type: string
   184                    reason:
   185                      description: |-
   186                        Unique, one-word, CamelCase reason for the condition's last
   187                        transition.
   188                      type: string
   189                    status:
   190                      description: Status is the status of the condition. Can be True,
   191                        False, Unknown.
   192                      type: string
   193                    type:
   194                      description: Type is the type of the condition.
   195                      type: string
   196                  type: object
   197                type: array
   198              etag:
   199                description: The etag of the organization policy. etag is used for
   200                  optimistic concurrency control as a way to help prevent simultaneous
   201                  updates of a policy from overwriting each other.
   202                type: string
   203              observedGeneration:
   204                description: ObservedGeneration is the generation of the resource
   205                  that was most recently observed by the Config Connector controller.
   206                  If this is equal to metadata.generation, then that means that the
   207                  current reported status reflects the most recent desired state of
   208                  the resource.
   209                type: integer
   210              updateTime:
   211                description: 'The timestamp in RFC3339 UTC "Zulu" format, accurate
   212                  to nanoseconds, representing when the variable was last updated.
   213                  Example: "2016-10-09T12:33:37.578138407Z".'
   214                type: string
   215            type: object
   216        type: object
   217    served: true
   218    storage: true

View as plain text