mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-09-21 05:24:43 -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
|
@ -54,6 +54,7 @@ type Client interface {
|
|||
AddNodeSelectorsToDeployment(ctx context.Context, selectors map[string]string, name string, namespace string) error
|
||||
ListAllNamespaces(ctx context.Context) (*corev1.NamespaceList, error)
|
||||
AnnotateNode(ctx context.Context, nodeName, annotationKey, annotationValue string) error
|
||||
EnforceCoreDNSSpread(ctx context.Context) error
|
||||
}
|
||||
|
||||
type componentsInstaller interface {
|
||||
|
|
|
@ -125,7 +125,8 @@ func (k *KubeWrapper) InitCluster(
|
|||
|
||||
// Step 2: configure kubeadm init config
|
||||
ccmSupported := cloudprovider.FromString(k.cloudProvider) == cloudprovider.Azure ||
|
||||
cloudprovider.FromString(k.cloudProvider) == cloudprovider.GCP
|
||||
cloudprovider.FromString(k.cloudProvider) == cloudprovider.GCP ||
|
||||
cloudprovider.FromString(k.cloudProvider) == cloudprovider.AWS
|
||||
initConfig := k.configProvider.InitConfiguration(ccmSupported, versionString)
|
||||
initConfig.SetNodeIP(nodeIP)
|
||||
initConfig.SetClusterName(clusterName)
|
||||
|
|
|
@ -544,6 +544,7 @@ type stubKubectl struct {
|
|||
waitForCRDsErr error
|
||||
listAllNamespacesErr error
|
||||
annotateNodeErr error
|
||||
enforceCoreDNSSpreadErr error
|
||||
|
||||
listAllNamespacesResp *corev1.NamespaceList
|
||||
}
|
||||
|
@ -576,6 +577,10 @@ func (s *stubKubectl) ListAllNamespaces(_ context.Context) (*corev1.NamespaceLis
|
|||
return s.listAllNamespacesResp, s.listAllNamespacesErr
|
||||
}
|
||||
|
||||
func (s *stubKubectl) EnforceCoreDNSSpread(_ context.Context) error {
|
||||
return s.enforceCoreDNSSpreadErr
|
||||
}
|
||||
|
||||
type stubHelmClient struct {
|
||||
ciliumError error
|
||||
certManagerError error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue