automatic image updates from public repos with selected tags feature added
All checks were successful
Lint / Run on Ubuntu (push) Successful in 1m30s
Tests / Run on Ubuntu (push) Successful in 1m38s

This commit is contained in:
2025-05-04 19:24:31 +05:00
parent 8029529f89
commit 8d581652a4
9 changed files with 397 additions and 13 deletions

View File

@@ -41,6 +41,33 @@ spec:
spec:
description: NodeTainterConfigSpec defines the desired state of NodeTainterConfig.
properties:
imageUpdatePolicy:
description: ImageUpdatePolicy defines the policy for automatic image
updates.
properties:
checkInterval:
default: 1h
description: |-
CheckInterval specifies how often to check for image updates (e.g., "5m", "1h", "15m").
Minimum interval recommended: 5m to avoid rate limiting.
pattern: ^([0-9]+(s|m|h))+$
type: string
enabled:
description: Enabled toggles the image update feature.
type: boolean
monitoredTags:
description: |-
MonitoredTags is a list of keywords found in image tags that trigger update checks.
Example: ["latest", "master", "dev"]
items:
type: string
type: array
restartAnnotation:
description: |-
RestartAnnotation is the annotation key used to trigger deployment restarts.
If empty, a default will be used (e.g., "image-updater.my-operator.com/restartedAt").
type: string
type: object
labelRules:
additionalProperties:
type: string

View File

@@ -21,6 +21,14 @@ rules:
- patch
- update
- watch
- apiGroups:
- ""
resources:
- pods
verbs:
- get
- list
- watch
- apiGroups:
- apps
resources:

View File

@@ -16,3 +16,8 @@ spec:
cpuLimit: "500m"
memoryLimit: "512Mi"
optOutLabelKey: "andy.vendetti.ru/skip-resource-defaults"
imageUpdatePolicy:
enabled: true
checkInterval: "5m"
monitoredTags: ["latest", "dev"]
# restartAnnotation: "andy.vendetti.ru/restartedAt"