open-cluster-management.io/governance-policy-propagator@v0.13.0/deploy/crds/policy.open-cluster-management.io_placementbindings.yaml (about)

     1  ---
     2  apiVersion: apiextensions.k8s.io/v1
     3  kind: CustomResourceDefinition
     4  metadata:
     5    annotations:
     6      controller-gen.kubebuilder.io/version: v0.14.0
     7    name: placementbindings.policy.open-cluster-management.io
     8  spec:
     9    group: policy.open-cluster-management.io
    10    names:
    11      kind: PlacementBinding
    12      listKind: PlacementBindingList
    13      plural: placementbindings
    14      shortNames:
    15      - pb
    16      singular: placementbinding
    17    scope: Namespaced
    18    versions:
    19    - name: v1
    20      schema:
    21        openAPIV3Schema:
    22          description: PlacementBinding is the Schema for the placementbindings API
    23          properties:
    24            apiVersion:
    25              description: |-
    26                APIVersion defines the versioned schema of this representation of an object.
    27                Servers should convert recognized schemas to the latest internal value, and
    28                may reject unrecognized values.
    29                More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    30              type: string
    31            bindingOverrides:
    32              description: BindingOverrides defines the overrides to the Subjects
    33              properties:
    34                remediationAction:
    35                  description: This field overrides the policy remediationAction on
    36                    target clusters
    37                  enum:
    38                  - Enforce
    39                  - enforce
    40                  type: string
    41              type: object
    42            kind:
    43              description: |-
    44                Kind is a string value representing the REST resource this object represents.
    45                Servers may infer this from the endpoint the client submits requests to.
    46                Cannot be updated.
    47                In CamelCase.
    48                More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    49              type: string
    50            metadata:
    51              type: object
    52            placementRef:
    53              description: PlacementSubject defines the resource that can be used as
    54                PlacementBinding placementRef
    55              properties:
    56                apiGroup:
    57                  enum:
    58                  - apps.open-cluster-management.io
    59                  - cluster.open-cluster-management.io
    60                  minLength: 1
    61                  type: string
    62                kind:
    63                  enum:
    64                  - PlacementRule
    65                  - Placement
    66                  minLength: 1
    67                  type: string
    68                name:
    69                  minLength: 1
    70                  type: string
    71              required:
    72              - apiGroup
    73              - kind
    74              - name
    75              type: object
    76            status:
    77              description: PlacementBindingStatus defines the observed state of PlacementBinding
    78              type: object
    79            subFilter:
    80              description: This field provides the ability to select a subset of bound
    81                clusters
    82              enum:
    83              - restricted
    84              type: string
    85            subjects:
    86              items:
    87                description: Subject defines the resource that can be used as PlacementBinding
    88                  subject
    89                properties:
    90                  apiGroup:
    91                    enum:
    92                    - policy.open-cluster-management.io
    93                    minLength: 1
    94                    type: string
    95                  kind:
    96                    enum:
    97                    - Policy
    98                    - PolicySet
    99                    minLength: 1
   100                    type: string
   101                  name:
   102                    minLength: 1
   103                    type: string
   104                required:
   105                - apiGroup
   106                - kind
   107                - name
   108                type: object
   109              minItems: 1
   110              type: array
   111          required:
   112          - placementRef
   113          - subjects
   114          type: object
   115      served: true
   116      storage: true
   117      subresources:
   118        status: {}