Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/samples/v1alpha1_kruize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
# Supported values: "openshift", "minikube", "kind"
cluster_type: "openshift"
autotune_image: "quay.io/kruize/autotune_operator:0.11.1"
autotune_image: "quay.io/kruize/autotune_operator:0.11.2"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · OLM examples deploy old image

When an OLM user creates a Kruize resource from the bundle's alm-examples, the CSV's alm-examples supplies quay.io/kruize/autotune_operator:0.11 explicitly, so deployKruizeComponents passes that value to the generator instead of using the new default, and the resource deploys the old image instead of 0.11.2.

Update the CSV's embedded alm-examples image to quay.io/kruize/autotune_operator:0.11.2.

Prompt for AI agents
In `config/samples/v1alpha1_kruize.yaml` at line 11:

**OLM examples deploy old image**

When an OLM user creates a Kruize resource from the bundle's `alm-examples`, the CSV's `alm-examples` supplies `quay.io/kruize/autotune_operator:0.11` explicitly, so `deployKruizeComponents` passes that value to the generator instead of using the new default, and the resource deploys the old image instead of 0.11.2.

Update the CSV's embedded `alm-examples` image to `quay.io/kruize/autotune_operator:0.11.2`.

autotune_ui_image: "quay.io/kruize/kruize-ui:0.1.0"
optimizer_image: "quay.io/kruize/kruize-optimizer:0.0.1"
# For OpenShift, use: "openshift-tuning", Minikube/KIND, use: "monitoring"
Expand Down
2 changes: 1 addition & 1 deletion internal/constants/kruize_images.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const (
// Default container image versions
const (
// defaultAutotuneImageTag is the default tag for Kruize Autotune image
defaultAutotuneImageTag = "0.11.1"
defaultAutotuneImageTag = "0.11.2"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Medium · Existing deployments keep old image

When the operator is upgraded while an existing Kruize CR has an empty autotune_image, the generator resolves the new default, but reconcileNamespacedResource returns without updating the existing Deployment, so installations continue running the old image.

Update the reconciliation path to apply the newly resolved image to existing Deployments.

Prompt for AI agents
In `internal/constants/kruize_images.go` at line 36:

**Existing deployments keep old image**

When the operator is upgraded while an existing Kruize CR has an empty `autotune_image`, the generator resolves the new default, but `reconcileNamespacedResource` returns without updating the existing Deployment, so installations continue running the old image.

Update the reconciliation path to apply the newly resolved image to existing Deployments.


// defaultUIImageTag is the default tag for Kruize UI image
defaultUIImageTag = "0.1.0"
Expand Down
Loading