---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.16.3
  labels:
    managed: ""
    owner: ""
  name: podnetworkinstances.multitenancy.acn.azure.com
spec:
  group: multitenancy.acn.azure.com
  names:
    kind: PodNetworkInstance
    listKind: PodNetworkInstanceList
    plural: podnetworkinstances
    shortNames:
    - pni
    singular: podnetworkinstance
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - jsonPath: .status.status
      name: Status
      type: string
    - jsonPath: .spec.podNetworks
      name: PodNetworks
      priority: 1
      type: string
    name: v1alpha1
    schema:
      openAPIV3Schema:
        description: PodNetworkInstance is the Schema for the PodNetworkInstances
          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: PodNetworkInstanceSpec defines the desired state of PodNetworkInstance
            properties:
              defaultDenyACL:
                default: false
                description: DefaultDenyACL bool indicates whether default deny policy
                  will be present on the pods upon pod creation
                type: boolean
              podIPReservationSize:
                default: 0
                description: Deprecated - use PodNetworks
                type: integer
              podNetworkConfigs:
                description: |-
                  PodNetworkConfigs describes each PodNetwork to attach to a single Pod
                  optional for now in case orchestrator uses the deprecated fields
                items:
                  description: PodNetworkConfig describes a template for how to attach
                    a PodNetwork to a Pod
                  properties:
                    podIPReservationSize:
                      default: 0
                      description: PodIPReservationSize is the number of IP address
                        to statically reserve
                      type: integer
                    podNetwork:
                      description: PodNetwork is the name of a PodNetwork resource
                      type: string
                  required:
                  - podNetwork
                  type: object
                type: array
              podnetwork:
                description: Deprecated - use PodNetworks
                type: string
            type: object
          status:
            description: PodNetworkInstanceStatus defines the observed state of PodNetworkInstance
            properties:
              podIPAddresses:
                items:
                  type: string
                type: array
              podNetworkStatuses:
                additionalProperties:
                  description: PNIStatus indicates the status of PNI
                  enum:
                  - Ready
                  - CreateReservationSetError
                  - PodNetworkNotReady
                  - InsufficientIPAddressesOnSubnet
                  type: string
                type: object
              status:
                description: PNIStatus indicates the status of PNI
                enum:
                - Ready
                - CreateReservationSetError
                - PodNetworkNotReady
                - InsufficientIPAddressesOnSubnet
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
