Skip to content

Commit 02541b7

Browse files
authored
chore(imageupdater): sync Image Updater CRD with upstream (#1176)
Signed-off-by: dkarpele <karpelevich@gmail.com>
1 parent 178dd90 commit 02541b7

3 files changed

Lines changed: 242 additions & 96 deletions

File tree

bundle/manifests/argocd-image-updater.argoproj.io_imageupdaters.yaml

Lines changed: 120 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,20 @@ spec:
1414
singular: imageupdater
1515
scope: Namespaced
1616
versions:
17-
- name: v1alpha1
17+
- additionalPrinterColumns:
18+
- jsonPath: .status.applicationsMatched
19+
name: Apps
20+
type: integer
21+
- jsonPath: .status.imagesManaged
22+
name: Images
23+
type: integer
24+
- jsonPath: .status.lastCheckedAt
25+
name: Last Checked
26+
type: date
27+
- jsonPath: .status.conditions[?(@.type=="Ready")].status
28+
name: Ready
29+
type: string
30+
name: v1alpha1
1831
schema:
1932
openAPIV3Schema:
2033
description: ImageUpdater is the Schema for the imageupdaters API
@@ -306,6 +319,25 @@ spec:
306319
Branch to commit updates to.
307320
Required if write-back method is Git and this is not specified at the spec level.
308321
type: string
322+
pullRequest:
323+
description: |-
324+
PullRequest configures creation of pull requests when writing back image updates to Git.
325+
When set, the controller opens a PR instead of pushing to the branch.
326+
If not specified write back config method is `git`.
327+
properties:
328+
github:
329+
description: GitHub configures PR creation via the
330+
GitHub API.
331+
type: object
332+
gitlab:
333+
description: GitLab configures MR creation via the
334+
GitLab API.
335+
type: object
336+
type: object
337+
x-kubernetes-validations:
338+
- message: Exactly one of github or gitlab must be set
339+
rule: '(has(self.github) ? 1 : 0) + (has(self.gitlab)
340+
? 1 : 0) == 1'
309341
repository:
310342
description: |-
311343
Repository URL to commit changes to.
@@ -390,14 +422,6 @@ spec:
390422
This acts as the default if not overridden at a more specific level.
391423
type: string
392424
type: object
393-
namespace:
394-
description: |-
395-
Namespace indicates the target namespace of the applications.
396-
397-
Deprecated: This field is deprecated and will be removed in a future release.
398-
The controller now uses the ImageUpdater CR's namespace (metadata.namespace)
399-
to determine which namespace to search for applications. This field is ignored.
400-
type: string
401425
writeBackConfig:
402426
description: |-
403427
WriteBackConfig provides global default settings for how and where to write back image updates.
@@ -413,6 +437,25 @@ spec:
413437
Branch to commit updates to.
414438
Required if write-back method is Git and this is not specified at the spec level.
415439
type: string
440+
pullRequest:
441+
description: |-
442+
PullRequest configures creation of pull requests when writing back image updates to Git.
443+
When set, the controller opens a PR instead of pushing to the branch.
444+
If not specified write back config method is `git`.
445+
properties:
446+
github:
447+
description: GitHub configures PR creation via the GitHub
448+
API.
449+
type: object
450+
gitlab:
451+
description: GitLab configures MR creation via the GitLab
452+
API.
453+
type: object
454+
type: object
455+
x-kubernetes-validations:
456+
- message: Exactly one of github or gitlab must be set
457+
rule: '(has(self.github) ? 1 : 0) + (has(self.gitlab) ?
458+
1 : 0) == 1'
416459
repository:
417460
description: |-
418461
Repository URL to commit changes to.
@@ -444,7 +487,15 @@ spec:
444487
status:
445488
description: ImageUpdaterStatus defines the observed state of ImageUpdater
446489
properties:
490+
applicationsMatched:
491+
description: ApplicationsMatched is the number of Argo CD applications
492+
matched by this CR's selectors.
493+
format: int32
494+
minimum: 0
495+
type: integer
447496
conditions:
497+
description: Conditions represent the latest available observations
498+
of the resource's state.
448499
items:
449500
description: Condition contains details for one aspect of the current
450501
state of this API Resource.
@@ -500,48 +551,73 @@ spec:
500551
- type
501552
type: object
502553
type: array
503-
imageStatus:
504-
description: ImageStatus indicates the detailed status for the list
505-
of managed images
554+
x-kubernetes-list-map-keys:
555+
- type
556+
x-kubernetes-list-type: map
557+
imagesManaged:
558+
description: ImagesManaged is the number of images that were eligible
559+
for update checking.
560+
format: int32
561+
minimum: 0
562+
type: integer
563+
lastCheckedAt:
564+
description: LastCheckedAt indicates when the controller last checked
565+
for image updates.
566+
format: date-time
567+
type: string
568+
lastUpdatedAt:
569+
description: LastUpdatedAt indicates when the controller last performed
570+
an image update.
571+
format: date-time
572+
type: string
573+
observedGeneration:
574+
description: ObservedGeneration is the most recent generation observed
575+
by the controller.
576+
format: int64
577+
minimum: 0
578+
type: integer
579+
recentUpdates:
580+
description: RecentUpdates contains the list of image updates performed
581+
during the last update cycle.
506582
items:
507-
description: ImageStatus contains information for an image:version
508-
and its update status in hosting applications
583+
description: RecentUpdate records a single image update performed
584+
during the last update.
509585
properties:
510-
applications:
511-
description: Applications contains a list of applications and
512-
when the image was last updated therein
513-
items:
514-
description: ImageApplicationLastUpdated contains information
515-
for an application and when the image was last updated therein
516-
properties:
517-
appName:
518-
description: AppName indicates and namespace and the application
519-
name
520-
type: string
521-
lastUpdatedAt:
522-
description: LastUpdatedAt indicates when the image in
523-
this application was last updated
524-
format: date-time
525-
type: string
526-
required:
527-
- appName
528-
type: object
529-
type: array
530-
name:
531-
description: Name indicates the image name
586+
alias:
587+
description: Alias is the alias of the image configuration that
588+
was updated.
532589
type: string
533-
version:
534-
description: Version indicates the image version
590+
applicationsUpdated:
591+
description: ApplicationsUpdated is the number of applications
592+
in which this image was updated.
593+
format: int32
594+
minimum: 0
595+
type: integer
596+
image:
597+
description: Image is the full image reference.
598+
type: string
599+
message:
600+
description: Message provides a human-readable description of
601+
the update action.
602+
type: string
603+
newVersion:
604+
description: NewVersion is the new tag or digest the image was
605+
updated to.
606+
type: string
607+
updatedAt:
608+
description: UpdatedAt is the timestamp when the update was
609+
applied.
610+
format: date-time
535611
type: string
536612
required:
537-
- name
538-
- version
613+
- alias
614+
- applicationsUpdated
615+
- image
616+
- newVersion
617+
- updatedAt
539618
type: object
540619
type: array
541-
reconciledAt:
542-
description: LastUpdatedAt indicates when the image updater last ran
543-
format: date-time
544-
type: string
620+
x-kubernetes-list-type: atomic
545621
type: object
546622
type: object
547623
served: true

bundle/manifests/gitops-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ metadata:
190190
capabilities: Deep Insights
191191
console.openshift.io/plugins: '["gitops-plugin"]'
192192
containerImage: quay.io/redhat-developer/gitops-operator
193-
createdAt: "2026-06-03T18:12:37Z"
193+
createdAt: "2026-06-11T15:05:37Z"
194194
description: Enables teams to adopt GitOps principles for managing cluster configurations
195195
and application delivery across hybrid multi-cluster Kubernetes environments.
196196
features.operators.openshift.io/disconnected: "true"

0 commit comments

Comments
 (0)