зеркало из https://github.com/Azure/ARO-RP.git
Merge pull request #2235 from CloudFitSoftware/zjones/private_cluster_flag
Add Private Cluster Flag for Local Development
This commit is contained in:
Коммит
c9366e811b
|
@ -108,6 +108,8 @@
|
|||
CLUSTER=<cluster-name> go run ./hack/cluster delete
|
||||
```
|
||||
|
||||
By default, a public cluster will be created. In order to create a private cluster, set the `PRIVATE_CLUSTER` environment variable to `true` prior to creation. Internet access from the cluster can also be restricted by setting the `NO_INTERNET` environment variable to `true`.
|
||||
|
||||
[1]: https://docs.microsoft.com/en-us/azure/openshift/tutorial-create-cluster
|
||||
|
||||
1. The following additional RP endpoints are available but not exposed via `az
|
||||
|
|
|
@ -147,7 +147,7 @@ func (c *Cluster) Create(ctx context.Context, vnetResourceGroup, clusterName str
|
|||
|
||||
visibility := api.VisibilityPublic
|
||||
|
||||
if os.Getenv("NO_INTERNET") != "" {
|
||||
if os.Getenv("PRIVATE_CLUSTER") != "" || os.Getenv("NO_INTERNET") != "" {
|
||||
visibility = api.VisibilityPrivate
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче