apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: "2026-05-08T15:18:50Z"
  generateName: capo-controller-manager-65565fdb7f-
  labels:
    cluster.x-k8s.io/provider: infrastructure-openstack
    control-plane: capo-controller-manager
    pod-template-hash: 65565fdb7f
  name: capo-controller-manager-65565fdb7f-99qwx
  namespace: capo-system
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: capo-controller-manager-65565fdb7f
    uid: 2be156d3-3b1e-4f6b-8db7-97ce98f26b33
  resourceVersion: "27131"
  uid: c8643f5e-10dd-4079-99d4-d599e0659298
spec:
  containers:
  - args:
    - --leader-elect
    - --v=2
    - --diagnostics-address=127.0.0.1:8080
    - --insecure-diagnostics=true
    command:
    - /manager
    env:
    - name: CLUSTER_API_OPENSTACK_INSTANCE_CREATE_TIMEOUT
      value: "10"
    image: harbor.atmosphere.dev/registry.k8s.io/capi-openstack/capi-openstack-controller:v0.12.7
    imagePullPolicy: IfNotPresent
    livenessProbe:
      failureThreshold: 3
      httpGet:
        path: /healthz
        port: healthz
        scheme: HTTP
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    name: manager
    ports:
    - containerPort: 9443
      name: webhook-server
      protocol: TCP
    - containerPort: 9440
      name: healthz
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /readyz
        port: healthz
        scheme: HTTP
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    securityContext:
      allowPrivilegeEscalation: false
      capabilities:
        drop:
        - ALL
      privileged: false
      runAsGroup: 65532
      runAsUser: 65532
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: FallbackToLogsOnError
    volumeMounts:
    - mountPath: /tmp/k8s-webhook-server/serving-certs
      name: cert
      readOnly: true
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-9p4nk
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    runAsNonRoot: true
    seccompProfile:
      type: RuntimeDefault
  serviceAccount: capo-manager
  serviceAccountName: capo-manager
  terminationGracePeriodSeconds: 10
  tolerations:
  - effect: NoSchedule
    key: node-role.kubernetes.io/master
  - effect: NoSchedule
    key: node-role.kubernetes.io/control-plane
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300
  volumes:
  - name: cert
    secret:
      defaultMode: 420
      secretName: capo-webhook-service-cert
  - name: kube-api-access-9p4nk
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          expirationSeconds: 3607
          path: token
      - configMap:
          items:
          - key: ca.crt
            path: ca.crt
          name: kube-root-ca.crt
      - downwardAPI:
          items:
          - fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
            path: namespace
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2026-05-08T15:18:50Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-05-08T15:27:22Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-05-08T15:27:22Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-05-08T15:18:50Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://2782edef5b793c393c5b6904420f3e8a3c2b8d112e681d306eb25972ac0fe672
    image: harbor.atmosphere.dev/registry.k8s.io/capi-openstack/capi-openstack-controller:v0.12.7
    imageID: harbor.atmosphere.dev/registry.k8s.io/capi-openstack/capi-openstack-controller@sha256:b964c2f374ad4f26a593749d3c737492d5c1821db143b26596c9285b9055a8b4
    lastState:
      terminated:
        containerID: containerd://1565a34aa50b9c8058a7ab1353ce87e1ea9cce2f0df30020163372b4468984fa
        exitCode: 1
        finishedAt: "2026-05-08T15:26:49Z"
        message: |
          4/tools/cache/reflector.go:243: watch of *v1alpha1.OpenStackFloatingIPPool ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
          I0508 15:25:47.977886       1 controller.go:239] "All workers finished" controller="openstackfloatingippool" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackFloatingIPPool"
          I0508 15:25:47.977916       1 controller.go:239] "All workers finished" controller="openstackmachine" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackMachine"
          I0508 15:25:47.977988       1 server.go:249] "Shutting down webhook server with timeout of 1 minute" logger="controller-runtime.webhook"
          I0508 15:25:47.978051       1 server.go:68] "shutting down server" name="health probe" addr="[::]:9440"
          W0508 15:25:47.978080       1 reflector.go:484] pkg/mod/k8s.io/client-go@v0.31.14/tools/cache/reflector.go:243: watch of *v1alpha1.OpenStackServer ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
          I0508 15:25:47.978101       1 controller.go:239] "All workers finished" controller="openstackcluster" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackCluster"
          W0508 15:25:47.978138       1 reflector.go:484] pkg/mod/k8s.io/client-go@v0.31.14/tools/cache/reflector.go:243: watch of *v1beta1.IPAddress ended with: an error on the server ("unable to decode an event from the watch stream: context canceled") has prevented the request from succeeding
          I0508 15:25:47.978088       1 server.go:254] "Shutting down metrics server with timeout of 1 minute" logger="controller-runtime.metrics"
          I0508 15:25:47.978539       1 controller.go:239] "All workers finished" controller="openstackserver" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackServer"
          E0508 15:25:47.982321       1 main.go:281] "problem running manager" err="leader election lost" logger="setup"
        reason: Error
        startedAt: "2026-05-08T15:24:26Z"
    name: manager
    ready: true
    restartCount: 2
    started: true
    state:
      running:
        startedAt: "2026-05-08T15:27:20Z"
  hostIP: 199.204.45.57
  phase: Running
  podIP: 10.0.0.242
  podIPs:
  - ip: 10.0.0.242
  qosClass: BestEffort
  startTime: "2026-05-08T15:18:50Z"
