
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.2.9
  creationTimestamp: null
  name: sidecarsets.apps.kruise.io
spec:
  additionalPrinterColumns:
  - JSONPath: .status.matchedPods
    description: The number of pods matched.
    name: MATCHED
    type: integer
  - JSONPath: .status.updatedPods
    description: The number of pods matched and updated.
    name: UPDATED
    type: integer
  - JSONPath: .status.readyPods
    description: The number of pods matched and ready.
    name: READY
    type: integer
  - JSONPath: .metadata.creationTimestamp
    description: CreationTimestamp is a timestamp representing the server time when
      this object was created. It is not guaranteed to be set in happens-before order
      across separate operations. Clients may not set this value. It is represented
      in RFC3339 form and is in UTC.
    name: AGE
    type: date
  group: apps.kruise.io
  names:
    kind: SidecarSet
    listKind: SidecarSetList
    plural: sidecarsets
    singular: sidecarset
  scope: Cluster
  subresources:
    status: {}
  validation:
    openAPIV3Schema:
      description: SidecarSet is the Schema for the sidecarsets API
      properties:
        apiVersion:
          description: 'APIVersion defines the versioned schema of this representation
            of an object. Servers should convert recognized schemas to the latest
            internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
          type: string
        kind:
          description: 'Kind is a string value representing the REST resource this
            object represents. Servers may infer this from the endpoint the client
            submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
          type: string
        metadata:
          type: object
        spec:
          description: SidecarSetSpec defines the desired state of SidecarSet
          properties:
            containers:
              description: Containers is the list of sidecar containers to be injected
                into the selected pod
              items:
                description: SidecarContainer defines the container of Sidecar
                type: object
              type: array
            initContainers:
              description: Containers is the list of init containers to be injected
                into the selected pod We will inject those containers by their name
                in ascending order We only inject init containers when a new pod is
                created, it does not apply to any existing pod
              items:
                description: SidecarContainer defines the container of Sidecar
                type: object
              type: array
            paused:
              description: Paused indicates that the sidecarset is paused and will
                not be processed by the sidecarset controller.
              type: boolean
            selector:
              description: selector is a label query over pods that should be injected
              properties:
                matchExpressions:
                  description: matchExpressions is a list of label selector requirements.
                    The requirements are ANDed.
                  items:
                    description: A label selector requirement is a selector that contains
                      values, a key, and an operator that relates the key and values.
                    properties:
                      key:
                        description: key is the label key that the selector applies
                          to.
                        type: string
                      operator:
                        description: operator represents a key's relationship to a
                          set of values. Valid operators are In, NotIn, Exists and
                          DoesNotExist.
                        type: string
                      values:
                        description: values is an array of string values. If the operator
                          is In or NotIn, the values array must be non-empty. If the
                          operator is Exists or DoesNotExist, the values array must
                          be empty. This array is replaced during a strategic merge
                          patch.
                        items:
                          type: string
                        type: array
                    required:
                    - key
                    - operator
                    type: object
                  type: array
                matchLabels:
                  additionalProperties:
                    type: string
                  description: matchLabels is a map of {key,value} pairs. A single
                    {key,value} in the matchLabels map is equivalent to an element
                    of matchExpressions, whose key field is "key", the operator is
                    "In", and the values array contains only "value". The requirements
                    are ANDed.
                  type: object
              type: object
            strategy:
              description: The sidecarset strategy to use to replace existing pods
                with new ones.
              properties:
                rollingUpdate:
                  description: RollingUpdateSidecarSet is used to communicate parameter
                  properties:
                    maxUnavailable:
                      anyOf:
                      - type: integer
                      - type: string
                      x-kubernetes-int-or-string: true
                  type: object
              type: object
            volumes:
              description: List of volumes that can be mounted by sidecar containers
              items:
                description: Volume represents a named volume in a pod that may be
                  accessed by any container in the pod.
                type: object
              type: array
          type: object
        status:
          description: SidecarSetStatus defines the observed state of SidecarSet
          properties:
            matchedPods:
              description: matchedPods is the number of Pods whose labels are matched
                with this SidecarSet's selector and are created after sidecarset creates
              format: int32
              type: integer
            observedGeneration:
              description: observedGeneration is the most recent generation observed
                for this SidecarSet. It corresponds to the SidecarSet's generation,
                which is updated on mutation by the API Server.
              format: int64
              type: integer
            readyPods:
              description: readyPods is the number of matched Pods that have a ready
                condition
              format: int32
              type: integer
            updatedPods:
              description: updatedPods is the number of matched Pods that are injected
                with the latest SidecarSet's containers
              format: int32
              type: integer
          required:
          - matchedPods
          - readyPods
          - updatedPods
          type: object
      type: object
  version: v1alpha1
  versions:
  - name: v1alpha1
    served: true
    storage: true
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
