apiVersion: apps/v1
kind: DaemonSet
metadata:
  annotations:
    deprecated.daemonset.template.generation: "1"
  creationTimestamp: "2026-04-06T12:17:10Z"
  generation: 1
  name: ovn-controller-metrics
  namespace: openstack
  ownerReferences:
  - apiVersion: ovn.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: OVNController
    name: ovncontroller
    uid: 2842c8e1-537d-46bb-b40a-4e51b284766a
  resourceVersion: "43414"
  uid: 49a84b78-3c13-4430-ae8a-de602b134bbc
spec:
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      metrics: enabled
      service: ovn-controller-metrics
  template:
    metadata:
      creationTimestamp: null
      labels:
        metrics: enabled
        service: ovn-controller-metrics
    spec:
      containers:
      - command:
        - /app/openstack-network-exporter
        env:
        - name: OPENSTACK_NETWORK_EXPORTER_YAML
          value: /etc/config/openstack-network-exporter.yaml
        - name: CONFIG_HASH
          value: n64h5dfh678h5dch96h598h85hfdh6bh67h56fhcfh6ch586h67bhdbh54fhb6h694h5dfh58dh95h677h666h76h7ch5fdh679h654h7fh5f9hb8q
        image: quay.io/openstack-k8s-operators/openstack-network-exporter:current-podified
        imagePullPolicy: IfNotPresent
        name: openstack-network-exporter
        resources: {}
        securityContext:
          capabilities:
            add:
            - NET_ADMIN
            - SYS_ADMIN
            - SYS_NICE
          privileged: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: FallbackToLogsOnError
        volumeMounts:
        - mountPath: /var/run/openvswitch
          name: ovs-rundir
          readOnly: true
        - mountPath: /var/run/ovn
          name: ovn-rundir
          readOnly: true
        - mountPath: /etc/config
          name: config
          readOnly: true
        - mountPath: /etc/pki/tls/certs/ovnmetrics.crt
          name: metrics-certs-tls-certs
          readOnly: true
          subPath: tls.crt
        - mountPath: /etc/pki/tls/private/ovnmetrics.key
          name: metrics-certs-tls-certs
          readOnly: true
          subPath: tls.key
        - mountPath: /etc/pki/tls/certs/ovndbca.crt
          name: metrics-certs-tls-certs
          readOnly: true
          subPath: ca.crt
        - mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
          name: combined-ca-bundle
          readOnly: true
          subPath: tls-ca-bundle.pem
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: ovncontroller-ovncontroller
      serviceAccountName: ovncontroller-ovncontroller
      terminationGracePeriodSeconds: 30
      volumes:
      - hostPath:
          path: /var/home/core/openstack/var/run/openvswitch
          type: DirectoryOrCreate
        name: ovs-rundir
      - hostPath:
          path: /var/home/core/openstack/var/run/ovn
          type: DirectoryOrCreate
        name: ovn-rundir
      - configMap:
          defaultMode: 420
          name: ovncontroller-metrics-config
        name: config
      - name: metrics-certs-tls-certs
        secret:
          defaultMode: 256
          secretName: cert-ovn-metrics
      - name: combined-ca-bundle
        secret:
          defaultMode: 292
          secretName: combined-ca-bundle
  updateStrategy:
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 1
    type: RollingUpdate
status:
  currentNumberScheduled: 1
  desiredNumberScheduled: 1
  numberAvailable: 1
  numberMisscheduled: 0
  numberReady: 1
  observedGeneration: 1
  updatedNumberScheduled: 1
