fix : update ImageUpdateAutomation to use .Changed instead of deprecated .Updated field #5250
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What changed?
Updated the
messageTemplate
field in the ImageUpdateAutomation resource to use.Changed.Images
instead of the deprecated.Updated.Images
field.Why?
The Flux image-automation-controller v1 API deprecated the
.Updated
template field in favor of.Changed
. The CRD documentation states:Using the deprecated field could cause issues with newer versions of Flux and prevents the dev resources from properly demonstrating current best practices.
Files changed
tools/dev-resources/image-policy/podinfo-image-update-automation.yaml
Verification
All resources in
tools/dev-resources
have been validated:kubectl get
commandsThe resources can be applied using:
Fixes the issue where developers using the sample deployment resources would see deprecated field usage.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
10.244.0.10
/usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --node-ip=172.18.0.2 --node-labels= --pod-infra-container-image=registry.k8s.io/pause:3.10.1 --provider-id=kind://docker/test-dev-resources/test-dev-resources-control-plane --runtime-cgroups=/system.slice/containerd.service
(packet block)10.244.0.3
/usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --node-ip=172.18.0.2 --node-labels= --pod-infra-container-image=registry.k8s.io/pause:3.10.1 --provider-id=kind://docker/test-dev-resources/test-dev-resources-control-plane --runtime-cgroups=/system.slice/containerd.service
(packet block)10.244.0.4
/usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --node-ip=172.18.0.2 --node-labels= --pod-infra-container-image=registry.k8s.io/pause:3.10.1 --provider-id=kind://docker/test-dev-resources/test-dev-resources-control-plane --runtime-cgroups=/system.slice/containerd.service
(packet block)10.244.0.5
/usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --node-ip=172.18.0.2 --node-labels= --pod-infra-container-image=registry.k8s.io/pause:3.10.1 --provider-id=kind://docker/test-dev-resources/test-dev-resources-control-plane --runtime-cgroups=/system.slice/containerd.service
(packet block)10.244.0.6
/usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --node-ip=172.18.0.2 --node-labels= --pod-infra-container-image=registry.k8s.io/pause:3.10.1 --provider-id=kind://docker/test-dev-resources/test-dev-resources-control-plane --runtime-cgroups=/system.slice/containerd.service
(packet block)10.244.0.7
/usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --node-ip=172.18.0.2 --node-labels= --pod-infra-container-image=registry.k8s.io/pause:3.10.1 --provider-id=kind://docker/test-dev-resources/test-dev-resources-control-plane --runtime-cgroups=/system.slice/containerd.service
(packet block)10.244.0.8
/usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --node-ip=172.18.0.2 --node-labels= --pod-infra-container-image=registry.k8s.io/pause:3.10.1 --provider-id=kind://docker/test-dev-resources/test-dev-resources-control-plane --runtime-cgroups=/system.slice/containerd.service
(packet block)10.244.0.9
/usr/bin/kubelet --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf --kubeconfig=/etc/kubernetes/kubelet.conf --config=/var/lib/kubelet/config.yaml --node-ip=172.18.0.2 --node-labels= --pod-infra-container-image=registry.k8s.io/pause:3.10.1 --provider-id=kind://docker/test-dev-resources/test-dev-resources-control-plane --runtime-cgroups=/system.slice/containerd.service
(packet block)1164932772709279746.1309702655845493395
/coredns -conf /etc/coredns/Corefile
(dns block)2130457696441284333.3075999588063013010
/coredns -conf /etc/coredns/Corefile
(dns block)3249526845029377753.3131220860631069716
/coredns -conf /etc/coredns/Corefile
(dns block)54431273706179470.1042304047230757268
/coredns -conf /etc/coredns/Corefile
(dns block)7960923873720595517.6501378685945402161
8618234498239263128.8479008927510081715
/coredns -conf /etc/coredns/Corefile
(dns block)fluxcd.io
curl -s REDACTED
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
Fixes #5249
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.