Skip to content

Commit

Permalink
feat(directives): optional images for kustomize-set-image
Browse files Browse the repository at this point in the history
Signed-off-by: Hidde Beydals <[email protected]>
  • Loading branch information
hiddeco committed Dec 10, 2024
1 parent ad9e16f commit 622a656
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 1 addition & 3 deletions internal/directives/schemas/kustomize-set-image-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,10 @@
},
"images": {
"type": "array",
"description": "Images is a list of container images to set or update in the Kustomization file.",
"minItems": 1,
"description": "Images is a list of container images to set or update in the Kustomization file. When left unspecified, all images from the Freight collection will be set in the Kustomization file. Unless there is an ambiguous image name (for example, due to two Warehouses subscribing to the same repository)q, which requires manual configuration.",
"items": {
"type": "object",
"additionalProperties": false,
"required": ["image"],
"properties": {
"digest": {
"type": "string",
Expand Down
7 changes: 5 additions & 2 deletions internal/directives/zz_config_types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/src/gen/directives/kustomize-set-image-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"images": {
"type": "array",
"description": "Images is a list of container images to set or update in the Kustomization file.",
"description": "Images is a list of container images to set or update in the Kustomization file. When left unspecified, all images from the Freight collection will be set in the Kustomization file. Unless there is an ambiguous image name (for example, due to two Warehouses subscribing to the same repository), which requires manual configuration.",
"items": {
"type": "object",
"additionalProperties": false,
Expand Down

0 comments on commit 622a656

Please sign in to comment.