Add AuthConfig struct and pass domains in AUTH_APPROVED_DOMAINS environment variable

This commit is contained in:
M. Mert Yildiran
2023-05-24 01:50:59 +03:00
parent 2126fc83a7
commit 4bb68afaaf
2 changed files with 9 additions and 0 deletions

View File

@@ -265,6 +265,10 @@ func (provider *Provider) BuildHubPod(opts *PodOptions) (*core.Pod, error) {
Name: "SCRIPTING_SCRIPTS",
Value: string(scriptsMarshalled),
},
{
Name: "AUTH_APPROVED_DOMAINS",
Value: strings.Join(config.Config.Tap.Ingress.Auth.ApprovedDomains, ","),
},
},
},
}