You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ image-cache-daemon [flags]
22
22
### Options
23
23
24
24
```
25
+
--configmap-selector string The selector to use when monitoring for ConfigMap sources (default "app.kubernetes.io/part-of=image-cache-daemon")
25
26
-h, --help help for image-cache-daemon
26
27
--image stringArray Images that should be pre-fetched
27
28
--node-name string The node name to pull to
@@ -33,4 +34,28 @@ image-cache-daemon [flags]
33
34
--watch-argo-cluster-workflow-templates Whether or not to watch cluster workflow templates (default true)
34
35
--watch-argo-cron-workflows Whether or not to watch cron workflows (default true)
35
36
--watch-argo-workflow-templates Whether or not to watch workflow templates (default true)
37
+
--watch-configmaps Whether or not to watch ConfigMaps for images to pull. Must match the --config-map-selector (default true)
38
+
```
39
+
40
+
## Sources
41
+
42
+
### ConfigMap
43
+
44
+
The ConfigMap source is useful when you want to separate the list of images that you're pulling from the installation of the cache daemon. It's also useful if you have a dynamic list
45
+
of images to pull that aren't part of one of the other sources.
46
+
47
+
By default, all ConfigMaps that match the label selector `"app.kubernetes.io/part-of=image-cache-daemon"` will be considered as a source for the cache daemon in any namespace that it has privileges to read. If you would like to restrict the set of ConfigMaps that it reads, you can so do by changing the selector, or restricting the namespaces that the cache daemon can read via RBAC.
rootCmd.Flags().StringVar(&podUUID, "pod-uid", os.Getenv("POD_UUD"), "The owning pod UID")
148
157
rootCmd.Flags().StringVar(&podNamespace, "pod-namespace", os.Getenv("POD_NAMESPACE"), "The namespace this pod is running in")
149
158
rootCmd.Flags().StringVar(&wardenImage, "warden-image", "exiges/image-cache-warden:latest", "The image that copies a binary to pulled containers to replace the entrypoint")
159
+
rootCmd.Flags().StringVar(&configmapSelector, "configmap-selector", "app.kubernetes.io/part-of=image-cache-daemon", "The selector to use when monitoring for ConfigMap sources")
150
160
rootCmd.Flags().BoolVar(&watchArgoWorkflowTemplates, "watch-argo-workflow-templates", true, "Whether or not to watch workflow templates")
151
161
rootCmd.Flags().BoolVar(&watchArgoClusterWorkflowTemplates, "watch-argo-cluster-workflow-templates", true, "Whether or not to watch cluster workflow templates")
152
162
rootCmd.Flags().BoolVar(&watchArgoCronWorkflows, "watch-argo-cron-workflows", true, "Whether or not to watch cron workflows")
163
+
rootCmd.Flags().BoolVar(&watchConfigMaps, "watch-configmaps", true, "Whether or not to watch ConfigMaps for images to pull. Must match the --config-map-selector")
153
164
rootCmd.Flags().DurationVar(&resyncPeriod, "resync-period", time.Minute*15, "How often the daemon should re-pull images from all of the sources. Set to 0 to disable.")
0 commit comments