@@ -3,7 +3,7 @@ apiVersion: apiextensions.k8s.io/v1
33kind : CustomResourceDefinition
44metadata :
55 annotations :
6- controller-gen.kubebuilder.io/version : v0.16.1
6+ controller-gen.kubebuilder.io/version : v0.19.0
77 {{- if .Values.crds.keep }}
88 " helm.sh/resource-policy " : keep
99 {{- end }}
2424 singular : imageupdater
2525 scope : Namespaced
2626 versions :
27- - name : v1alpha1
27+ - additionalPrinterColumns :
28+ - jsonPath : .status.applicationsMatched
29+ name : Apps
30+ type : integer
31+ - jsonPath : .status.imagesManaged
32+ name : Images
33+ type : integer
34+ - jsonPath : .status.lastCheckedAt
35+ name : Last Checked
36+ type : date
37+ - jsonPath : .status.conditions[?(@.type=="Ready")].status
38+ name : Ready
39+ type : string
40+ name : v1alpha1
2841 schema :
2942 openAPIV3Schema :
3043 description : ImageUpdater is the Schema for the imageupdaters API
@@ -316,6 +329,25 @@ spec:
316329 Branch to commit updates to.
317330 Required if write-back method is Git and this is not specified at the spec level.
318331 type : string
332+ pullRequest :
333+ description : |-
334+ PullRequest configures creation of pull requests when writing back image updates to Git.
335+ When set, the controller opens a PR instead of pushing to the branch.
336+ If not specified write back config method is `git`.
337+ properties :
338+ github :
339+ description : GitHub configures PR creation via the
340+ GitHub API.
341+ type : object
342+ gitlab :
343+ description : GitLab configures MR creation via the
344+ GitLab API.
345+ type : object
346+ type : object
347+ x-kubernetes-validations :
348+ - message : Exactly one of github or gitlab must be set
349+ rule : ' (has(self.github) ? 1 : 0) + (has(self.gitlab)
350+ ? 1 : 0) == 1'
319351 repository :
320352 description : |-
321353 Repository URL to commit changes to.
@@ -326,7 +358,7 @@ spec:
326358 description : |-
327359 WriteBackTarget defines the path and type of file to update in the Git repository.
328360 Examples: "helmvalues:./helm/values.yaml", "kustomization:./kustomize/overlays/production".
329- For ApplicationSet usage, `{{ quote "{{ .app.path.path }}" }}` should be resolved by ApplicationSet
361+ For ApplicationSet usage, `{{ .app.path.path }}` should be resolved by ApplicationSet
330362 before this CR is generated, resulting in a concrete path here.
331363 Required if write-back method is Git and this is not specified at the spec level.
332364 type : string
@@ -400,14 +432,6 @@ spec:
400432 This acts as the default if not overridden at a more specific level.
401433 type : string
402434 type : object
403- namespace :
404- description : |-
405- Namespace indicates the target namespace of the applications.
406-
407- Deprecated: This field is deprecated and will be removed in a future release.
408- The controller now uses the ImageUpdater CR's namespace (metadata.namespace)
409- to determine which namespace to search for applications. This field is ignored.
410- type : string
411435 writeBackConfig :
412436 description : |-
413437 WriteBackConfig provides global default settings for how and where to write back image updates.
@@ -423,6 +447,25 @@ spec:
423447 Branch to commit updates to.
424448 Required if write-back method is Git and this is not specified at the spec level.
425449 type : string
450+ pullRequest :
451+ description : |-
452+ PullRequest configures creation of pull requests when writing back image updates to Git.
453+ When set, the controller opens a PR instead of pushing to the branch.
454+ If not specified write back config method is `git`.
455+ properties :
456+ github :
457+ description : GitHub configures PR creation via the GitHub
458+ API.
459+ type : object
460+ gitlab :
461+ description : GitLab configures MR creation via the GitLab
462+ API.
463+ type : object
464+ type : object
465+ x-kubernetes-validations :
466+ - message : Exactly one of github or gitlab must be set
467+ rule : ' (has(self.github) ? 1 : 0) + (has(self.gitlab) ?
468+ 1 : 0) == 1'
426469 repository :
427470 description : |-
428471 Repository URL to commit changes to.
@@ -433,7 +476,7 @@ spec:
433476 description : |-
434477 WriteBackTarget defines the path and type of file to update in the Git repository.
435478 Examples: "helmvalues:./helm/values.yaml", "kustomization:./kustomize/overlays/production".
436- For ApplicationSet usage, `{{ quote "{{ .app.path.path }}" }}` should be resolved by ApplicationSet
479+ For ApplicationSet usage, `{{ .app.path.path }}` should be resolved by ApplicationSet
437480 before this CR is generated, resulting in a concrete path here.
438481 Required if write-back method is Git and this is not specified at the spec level.
439482 type : string
@@ -454,7 +497,15 @@ spec:
454497 status :
455498 description : ImageUpdaterStatus defines the observed state of ImageUpdater
456499 properties :
500+ applicationsMatched :
501+ description : ApplicationsMatched is the number of Argo CD applications
502+ matched by this CR's selectors.
503+ format : int32
504+ minimum : 0
505+ type : integer
457506 conditions :
507+ description : Conditions represent the latest available observations
508+ of the resource's state.
458509 items :
459510 description : Condition contains details for one aspect of the current
460511 state of this API Resource.
@@ -510,48 +561,73 @@ spec:
510561 - type
511562 type : object
512563 type : array
513- imageStatus :
514- description : ImageStatus indicates the detailed status for the list
515- of managed images
564+ x-kubernetes-list-map-keys :
565+ - type
566+ x-kubernetes-list-type : map
567+ imagesManaged :
568+ description : ImagesManaged is the number of images that were eligible
569+ for update checking.
570+ format : int32
571+ minimum : 0
572+ type : integer
573+ lastCheckedAt :
574+ description : LastCheckedAt indicates when the controller last checked
575+ for image updates.
576+ format : date-time
577+ type : string
578+ lastUpdatedAt :
579+ description : LastUpdatedAt indicates when the controller last performed
580+ an image update.
581+ format : date-time
582+ type : string
583+ observedGeneration :
584+ description : ObservedGeneration is the most recent generation observed
585+ by the controller.
586+ format : int64
587+ minimum : 0
588+ type : integer
589+ recentUpdates :
590+ description : RecentUpdates contains the list of image updates performed
591+ during the last update cycle.
516592 items :
517- description : ImageStatus contains information for an image:version
518- and its update status in hosting applications
593+ description : RecentUpdate records a single image update performed
594+ during the last update.
519595 properties :
520- applications :
521- description : Applications contains a list of applications and
522- when the image was last updated therein
523- items :
524- description : ImageApplicationLastUpdated contains information
525- for an application and when the image was last updated therein
526- properties :
527- appName :
528- description : AppName indicates and namespace and the application
529- name
530- type : string
531- lastUpdatedAt :
532- description : LastUpdatedAt indicates when the image in
533- this application was last updated
534- format : date-time
535- type : string
536- required :
537- - appName
538- type : object
539- type : array
540- name :
541- description : Name indicates the image name
596+ alias :
597+ description : Alias is the alias of the image configuration that
598+ was updated.
542599 type : string
543- version :
544- description : Version indicates the image version
600+ applicationsUpdated :
601+ description : ApplicationsUpdated is the number of applications
602+ in which this image was updated.
603+ format : int32
604+ minimum : 0
605+ type : integer
606+ image :
607+ description : Image is the full image reference.
608+ type : string
609+ message :
610+ description : Message provides a human-readable description of
611+ the update action.
612+ type : string
613+ newVersion :
614+ description : NewVersion is the new tag or digest the image was
615+ updated to.
616+ type : string
617+ updatedAt :
618+ description : UpdatedAt is the timestamp when the update was
619+ applied.
620+ format : date-time
545621 type : string
546622 required :
547- - name
548- - version
623+ - alias
624+ - applicationsUpdated
625+ - image
626+ - newVersion
627+ - updatedAt
549628 type : object
550629 type : array
551- reconciledAt :
552- description : LastUpdatedAt indicates when the image updater last ran
553- format : date-time
554- type : string
630+ x-kubernetes-list-type : atomic
555631 type : object
556632 type : object
557633 served : true
0 commit comments