diff --git a/pkg/handlers/config_test.go b/pkg/handlers/config_test.go index 388c3c1a..7c74fcb5 100644 --- a/pkg/handlers/config_test.go +++ b/pkg/handlers/config_test.go @@ -43,6 +43,7 @@ func createExpectedBody(access_key string, secret_key string, cfg *types.Config) "gpu_available": false, "interLink_available": false, "yunikorn_enable": false, + "oidc_groups": nil, }, "minio_provider": map[string]interface{}{ "endpoint": cfg.MinIOProvider.Endpoint, diff --git a/pkg/types/config.go b/pkg/types/config.go index b871ba86..6ad0a3a9 100644 --- a/pkg/types/config.go +++ b/pkg/types/config.go @@ -183,7 +183,7 @@ type Config struct { // OIDCGroups OpenID comma-separated group list to grant access in the cluster. // Groups defined in the "eduperson_entitlement" OIDC scope, // as described here: https://docs.egi.eu/providers/check-in/sp/#10-groups - OIDCGroups []string `json:"-"` + OIDCGroups []string `json:"oidc_groups"` // IngressHost string `json:"-"`