From 7f9797bed6026acf21bf87ff2a244e195e5cfa89 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:56:23 +0100 Subject: [PATCH] azure/config: remove unsupported sharing profile groups Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- README.md | 4 ++-- config/validation.rego | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a7dcca9..aa3dc5e 100644 --- a/README.md +++ b/README.md @@ -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..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"`. diff --git a/config/validation.rego b/config/validation.rego index 288a7ae..35b52c7 100644 --- a/config/validation.rego +++ b/config/validation.rego @@ -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])