Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

azure/config: remove unsupported sharing profile groups #100

Merged
merged 1 commit into from
Dec 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading