Skip to content

Commit

Permalink
azure/config: remove unsupported sharing profile groups
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
  • Loading branch information
katexochen committed Dec 4, 2024
1 parent f831cbe commit 137f7b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,13 @@ Will be created if it does not exist.
- Required: no
- Template: yes

Sharing profile to use for the gallery image. One of `community`, `groups`, `private`.
Sharing profile to use for the gallery image. One of `community`, `private`. Sharing profile `groups` currently isn't supported.
Community images are publicly available, group images are available to a specific group of users, private images are only available to the owner.

### `base.azure.sharingNamePrefix` / `variant.<name>.azure.sharingNamePrefix`

- Default: none
- Required: if `sharingProfile` is `community` or `groups`
- Required: if `sharingProfile` is `community`
- Template: yes

Prefix for the shared image name. Example: `"myimage"`.
Expand Down
2 changes: 1 addition & 1 deletion config/validation.rego
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ deny[msg] {
deny[msg] {
input.Provider == "azure"
input.Azure.SharingProfile != ""
allowed := ["community", "groups", "private"]
allowed := ["community", "private"]
not input.Azure.SharingProfile in allowed

msg = sprintf("sharing profile %q must be one of %s for provider azure", [input.Azure.SharingProfile, allowed])
Expand Down

0 comments on commit 137f7b6

Please sign in to comment.