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

     1  apiVersion: apiextensions.k8s.io/v1
     2  kind: CustomResourceDefinition
     3  metadata:
     4    name: placementdecisions.cluster.open-cluster-management.io
     5  spec:
     6    group: cluster.open-cluster-management.io
     7    names:
     8      kind: PlacementDecision
     9      listKind: PlacementDecisionList
    10      plural: placementdecisions
    11      singular: placementdecision
    12    scope: Namespaced
    13    preserveUnknownFields: false
    14    versions:
    15    - name: v1alpha1
    16      schema:
    17        openAPIV3Schema:
    18          description: "PlacementDecision indicates a decision from a placement PlacementDecision
    19            should has a label cluster.open-cluster-management.io/placement={placement
    20            name} to reference a certain placement. \n If a placement has spec.numberOfClusters
    21            specified, the total number of decisions contained in status.decisions of
    22            PlacementDecisions should always be NumberOfClusters; otherwise, the total
    23            number of decisions should be the number of ManagedClusters which match
    24            the placement requirements. \n Some of the decisions might be empty when
    25            there are no enough ManagedClusters meet the placement requirements."
    26          type: object
    27          properties:
    28            apiVersion:
    29              description: 'APIVersion defines the versioned schema of this representation
    30                of an object. Servers should convert recognized schemas to the latest
    31                internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
    32              type: string
    33            kind:
    34              description: 'Kind is a string value representing the REST resource this
    35                object represents. Servers may infer this from the endpoint the client
    36                submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
    37              type: string
    38            metadata:
    39              type: object
    40            status:
    41              description: Status represents the current status of the PlacementDecision
    42              type: object
    43              required:
    44              - decisions
    45              properties:
    46                decisions:
    47                  description: Decisions is a slice of decisions according to a placement
    48                    The number of decisions should not be larger than 100
    49                  type: array
    50                  items:
    51                    description: ClusterDecision represents a decision from a placement
    52                      An empty ClusterDecision indicates it is not scheduled yet.
    53                    type: object
    54                    required:
    55                    - clusterName
    56                    - reason
    57                    properties:
    58                      clusterName:
    59                        description: ClusterName is the name of the ManagedCluster.
    60                          If it is not empty, its value should be unique cross all placement
    61                          decisions for the Placement.
    62                        type: string
    63                      reason:
    64                        description: Reason represents the reason why the ManagedCluster
    65                          is selected.
    66                        type: string
    67      served: true
    68      storage: true
    69      subresources:
    70        status: {}
    71  status:
    72    acceptedNames:
    73      kind: ""
    74      plural: ""
    75    conditions: []
    76    storedVersions: []