mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
cli: set placeholder uid for QEMU / MiniConstellation (#1069)
This commit is contained in:
parent
fc8a43f4f1
commit
2d326ea3f0
@ -52,7 +52,7 @@ func checkForMiniCluster(fileHandler file.Handler) error {
|
|||||||
if idFile.CloudProvider != cloudprovider.QEMU {
|
if idFile.CloudProvider != cloudprovider.QEMU {
|
||||||
return errors.New("cluster is not a QEMU based Constellation")
|
return errors.New("cluster is not a QEMU based Constellation")
|
||||||
}
|
}
|
||||||
if idFile.UID != "mini" {
|
if idFile.UID != constants.MiniConstellationUID {
|
||||||
return errors.New("cluster is not a MiniConstellation cluster")
|
return errors.New("cluster is not a MiniConstellation cluster")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ func (m *miniUpCmd) createMiniCluster(ctx context.Context, fileHandler file.Hand
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
idFile.UID = "mini" // use UID "mini" to identify MiniConstellation clusters.
|
idFile.UID = constants.MiniConstellationUID // use UID "mini" to identify MiniConstellation clusters.
|
||||||
m.log.Debugf("Cluster id file contains %v", idFile)
|
m.log.Debugf("Cluster id file contains %v", idFile)
|
||||||
return fileHandler.WriteJSON(constants.ClusterIDsFileName, idFile, file.OptNone)
|
return fileHandler.WriteJSON(constants.ClusterIDsFileName, idFile, file.OptNone)
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,10 @@ output "ip" {
|
|||||||
value = module.control_plane.instance_ips[0]
|
value = module.control_plane.instance_ips[0]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output "uid" {
|
||||||
|
value = "qemu" // placeholder
|
||||||
|
}
|
||||||
|
|
||||||
output "initSecret" {
|
output "initSecret" {
|
||||||
value = random_password.initSecret.result
|
value = random_password.initSecret.result
|
||||||
sensitive = true
|
sensitive = true
|
||||||
|
@ -141,6 +141,8 @@ const (
|
|||||||
// EnvVarAzureClientSecretValue is environment variable to overwrite
|
// EnvVarAzureClientSecretValue is environment variable to overwrite
|
||||||
// provider.azure.clientSecretValue .
|
// provider.azure.clientSecretValue .
|
||||||
EnvVarAzureClientSecretValue = EnvVarPrefix + "AZURE_CLIENT_SECRET_VALUE"
|
EnvVarAzureClientSecretValue = EnvVarPrefix + "AZURE_CLIENT_SECRET_VALUE"
|
||||||
|
// MiniConstellationUID is a sentinel value for the UID of a mini constellation.
|
||||||
|
MiniConstellationUID = "mini"
|
||||||
|
|
||||||
//
|
//
|
||||||
// Kubernetes.
|
// Kubernetes.
|
||||||
|
Loading…
Reference in New Issue
Block a user