bgppeers.crd.projectcalico.org created 2021-08-30 18:56:44, version 3223

apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"apiextensions.k8s.io/v1","kind":"CustomResourceDefinition","metadata":{"annotations":{},"name":"bgppeers.crd.projectcalico.org"},"spec":{"group":"crd.projectcalico.org","names":{"kind":"BGPPeer","listKind":"BGPPeerList","plural":"bgppeers","singular":"bgppeer"},"scope":"Cluster","versions":[{"name":"v1","schema":{"openAPIV3Schema":{"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":"BGPPeerSpec
      contains the specification for a BGPPeer resource.","properties":{"asNumber":{"description":"The
      AS Number of the peer.","format":"int32","type":"integer"},"keepOriginalNextHop":{"description":"Option
      to keep the original nexthop field when routes are sent to a BGP Peer. Setting
      \"true\" configures the selected BGP Peers node to use the \"next hop keep;\"
      instead of \"next hop self;\"(default) in the specific branch of the Node on
      \"bird.cfg\".","type":"boolean"},"node":{"description":"The node name identifying
      the Calico node instance that is targeted by this peer. If this is not set,
      and no nodeSelector is specified, then this BGP peer selects all nodes in the
      cluster.","type":"string"},"nodeSelector":{"description":"Selector for the nodes
      that should have this peering.  When this is set, the Node field must be empty.","type":"string"},"password":{"description":"Optional
      BGP password for the peerings generated by this BGPPeer resource.","properties":{"secretKeyRef":{"description":"Selects
      a key of a secret in the node pod''s namespace.","properties":{"key":{"description":"The
      key of the secret to select from.  Must be a valid secret key.","type":"string"},"name":{"description":"Name
      of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
      TODO: Add other useful fields. apiVersion, kind, uid?","type":"string"},"optional":{"description":"Specify
      whether the Secret or its key must be defined","type":"boolean"}},"required":["key"],"type":"object"}},"type":"object"},"peerIP":{"description":"The
      IP address of the peer followed by an optional port number to peer with. If
      port number is given, format should be `[\u003cIPv6\u003e]:port` or `\u003cIPv4\u003e:\u003cport\u003e`
      for IPv4. If optional port number is not set, and this peer IP and ASNumber
      belongs to a calico/node with ListenPort set in BGPConfiguration, then we use
      that port to peer.","type":"string"},"peerSelector":{"description":"Selector
      for the remote nodes to peer with.  When this is set, the PeerIP and ASNumber
      fields must be empty.  For each peering between the local node and selected
      remote nodes, we configure an IPv4 peering if both ends have NodeBGPSpec.IPv4Address
      specified, and an IPv6 peering if both ends have NodeBGPSpec.IPv6Address specified.  The
      remote AS number comes from the remote node''s NodeBGPSpec.ASNumber, or the
      global default if that is not set.","type":"string"},"sourceAddress":{"description":"Specifies
      whether and how to configure a source address for the peerings generated by
      this BGPPeer resource.  Default value \"UseNodeIP\" means to configure the node
      IP as the source address.  \"None\" means not to configure a source address.","type":"string"}},"type":"object"}},"type":"object"}},"served":true,"storage":true}]},"status":{"acceptedNames":{"kind":"","plural":""},"conditions":[],"storedVersions":[]}}

      '
  creationTimestamp: '2021-08-30T18:56:44Z'
  generation: 1
  managedFields:
  - apiVersion: apiextensions.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:status:
        f:acceptedNames:
          f:kind: {}
          f:listKind: {}
          f:plural: {}
          f:singular: {}
        f:conditions:
          k:{"type":"Established"}:
            .: {}
            f:lastTransitionTime: {}
            f:message: {}
            f:reason: {}
            f:status: {}
            f:type: {}
          k:{"type":"NamesAccepted"}:
            .: {}
            f:lastTransitionTime: {}
            f:message: {}
            f:reason: {}
            f:status: {}
            f:type: {}
    manager: k3s
    operation: Update
    time: '2021-08-30T18:56:44Z'
  - apiVersion: apiextensions.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:kubectl.kubernetes.io/last-applied-configuration: {}
      f:spec:
        f:conversion:
          .: {}
          f:strategy: {}
        f:group: {}
        f:names:
          f:kind: {}
          f:listKind: {}
          f:plural: {}
          f:singular: {}
        f:scope: {}
        f:versions: {}
    manager: kubectl-client-side-apply
    operation: Update
    time: '2021-08-30T18:56:44Z'
  name: bgppeers.crd.projectcalico.org
  resourceVersion: '3223'
  uid: ad10efdd-2387-4eee-995a-8ed567392583
spec:
  conversion:
    strategy: None
  group: crd.projectcalico.org
  names:
    kind: BGPPeer
    listKind: BGPPeerList
    plural: bgppeers
    singular: bgppeer
  scope: Cluster
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        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: BGPPeerSpec contains the specification for a BGPPeer resource.
            properties:
              asNumber:
                description: The AS Number of the peer.
                format: int32
                type: integer
              keepOriginalNextHop:
                description: Option to keep the original nexthop field when routes
                  are sent to a BGP Peer. Setting "true" configures the selected BGP
                  Peers node to use the "next hop keep;" instead of "next hop self;"(default)
                  in the specific branch of the Node on "bird.cfg".
                type: boolean
              node:
                description: The node name identifying the Calico node instance that
                  is targeted by this peer. If this is not set, and no nodeSelector
                  is specified, then this BGP peer selects all nodes in the cluster.
                type: string
              nodeSelector:
                description: Selector for the nodes that should have this peering.  When
                  this is set, the Node field must be empty.
                type: string
              password:
                description: Optional BGP password for the peerings generated by this
                  BGPPeer resource.
                properties:
                  secretKeyRef:
                    description: Selects a key of a secret in the node pod's namespace.
                    properties:
                      key:
                        description: The key of the secret to select from.  Must be
                          a valid secret key.
                        type: string
                      name:
                        description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
                          TODO: Add other useful fields. apiVersion, kind, uid?'
                        type: string
                      optional:
                        description: Specify whether the Secret or its key must be
                          defined
                        type: boolean
                    required:
                    - key
                    type: object
                type: object
              peerIP:
                description: The IP address of the peer followed by an optional port
                  number to peer with. If port number is given, format should be `[<IPv6>]:port`
                  or `<IPv4>:<port>` for IPv4. If optional port number is not set,
                  and this peer IP and ASNumber belongs to a calico/node with ListenPort
                  set in BGPConfiguration, then we use that port to peer.
                type: string
              peerSelector:
                description: Selector for the remote nodes to peer with.  When this
                  is set, the PeerIP and ASNumber fields must be empty.  For each
                  peering between the local node and selected remote nodes, we configure
                  an IPv4 peering if both ends have NodeBGPSpec.IPv4Address specified,
                  and an IPv6 peering if both ends have NodeBGPSpec.IPv6Address specified.  The
                  remote AS number comes from the remote node's NodeBGPSpec.ASNumber,
                  or the global default if that is not set.
                type: string
              sourceAddress:
                description: Specifies whether and how to configure a source address
                  for the peerings generated by this BGPPeer resource.  Default value
                  "UseNodeIP" means to configure the node IP as the source address.  "None"
                  means not to configure a source address.
                type: string
            type: object
        type: object
    served: true
    storage: true
status:
  acceptedNames:
    kind: BGPPeer
    listKind: BGPPeerList
    plural: bgppeers
    singular: bgppeer
  conditions:
  - lastTransitionTime: '2021-08-30T18:56:44Z'
    message: no conflicts found
    reason: NoConflicts
    status: 'True'
    type: NamesAccepted
  - lastTransitionTime: '2021-08-30T18:56:44Z'
    message: the initial names have been accepted
    reason: InitialNamesAccepted
    status: 'True'
    type: Established
  storedVersions:
  - v1