mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-07 14:32:17 -04:00
Correctly deploy the AWS CCM (#1853)
* aws: stop using the imds api for tags * aws: disable tags in imds api * aws: only tag instances with non-lecagy tag * bootstrapper: always let coredns run before cilium * debugd: make debugd less noisy * fixup fix aws imds test * fixup unsued context * move getting instance id to readInstanceTag
This commit is contained in:
parent
4f63481b7d
commit
a2c98eb1d5
13 changed files with 687 additions and 163 deletions
|
@ -12,7 +12,7 @@ import "time"
|
|||
const (
|
||||
DebugdMetadataFlag = "constellation-debugd"
|
||||
GRPCTimeout = 5 * time.Minute
|
||||
DiscoverDebugdInterval = 30 * time.Second
|
||||
DiscoverDebugdInterval = 10 * time.Second
|
||||
DownloadRetryBackoff = 1 * time.Minute
|
||||
BinaryAccessMode = 0o755 // -rwxr-xr-x
|
||||
BootstrapperDeployFilename = "/run/state/bin/bootstrapper"
|
||||
|
|
|
@ -54,12 +54,13 @@ func (s *Scheduler) Start(ctx context.Context, wg *sync.WaitGroup) {
|
|||
ips, err := s.fetcher.DiscoverDebugdIPs(ctx)
|
||||
if err != nil {
|
||||
s.log.With(zap.Error(err)).Warnf("Discovering debugd IPs failed")
|
||||
continue
|
||||
}
|
||||
s.log.With(zap.Strings("ips", ips)).Infof("Discovered instances")
|
||||
s.download(ctx, ips)
|
||||
if s.deploymentDone && s.infoDone {
|
||||
return
|
||||
if err == nil {
|
||||
s.log.With(zap.Strings("ips", ips)).Infof("Discovered instances")
|
||||
s.download(ctx, ips)
|
||||
if s.deploymentDone && s.infoDone {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
select {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue