Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-11239

Apicast Operator prevents oc rollout restart command

XMLWordPrintable

    • False
    • None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      oc rollout restart deployment/xx doesn't work with APIcast pods that are managed by apicast-operator; the operator reconciles the operation like this.

      {"level":"info","ts":1722495481.2791226,"logger":"controllers.APIcast","msg":"Reconciling APIcast","apicast":"apicast/example-apicast"}
      {"level":"info","ts":1722495481.279401,"logger":"controllers.APIcast","msg":"Updated object Deployment/apicast-example-apicast","apicast":"apicast/example-apicast"}
      {"level":"info","ts":1722495481.2872841,"logger":"controllers.APIcast","msg":"Successfully reconciled","apicast":"apicast/example-apicast"}
      

      oc rollout restart adds kubectl.kubernetes.io/restartedAt annotation to PodTemplateSpec in Deployment, and apicast-operator seems to watch the change and reconcile if it is added.
      https://github.com/3scale/apicast-operator/blob/03b6be5ae7ad7388ea796cf575547d4a0f19d88b/pkg/reconcilers/deployment.go#L109-L121

              Unassigned Unassigned
              rhn-support-tkonishi Takayuki Konishi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: