Use same name for k8s config map key and filename of k8s config map version in joinservice

Signed-off-by: Malte Poll <mp@edgeless.systems>
This commit is contained in:
Malte Poll 2022-07-19 09:25:44 +02:00 committed by Malte Poll
parent 9f31e0a539
commit a660af05f1
2 changed files with 3 additions and 2 deletions

View File

@ -15,6 +15,7 @@ import (
"github.com/edgelesssys/constellation/bootstrapper/util" "github.com/edgelesssys/constellation/bootstrapper/util"
attestationtypes "github.com/edgelesssys/constellation/internal/attestation/types" attestationtypes "github.com/edgelesssys/constellation/internal/attestation/types"
"github.com/edgelesssys/constellation/internal/cloud/metadata" "github.com/edgelesssys/constellation/internal/cloud/metadata"
"github.com/edgelesssys/constellation/internal/constants"
"github.com/edgelesssys/constellation/internal/logger" "github.com/edgelesssys/constellation/internal/logger"
"github.com/edgelesssys/constellation/internal/versions" "github.com/edgelesssys/constellation/internal/versions"
"github.com/spf13/afero" "github.com/spf13/afero"
@ -380,7 +381,7 @@ func (k *KubeWrapper) setupK8sVersionConfigMap(ctx context.Context, k8sVersion s
Namespace: "kube-system", Namespace: "kube-system",
}, },
Data: map[string]string{ Data: map[string]string{
"K8sVersion": k8sVersion, constants.K8sVersion: k8sVersion,
}, },
} }

View File

@ -69,7 +69,7 @@ const (
MeasurementsFilename = "measurements" MeasurementsFilename = "measurements"
// IDFilename is the filename of Constellation's IDs. // IDFilename is the filename of Constellation's IDs.
IDFilename = "id" IDFilename = "id"
// K8sVersion is the filename of the mapped k8s-version configMap file. // K8sVersion is the filename of the mapped "k8s-version" configMap file.
K8sVersion = "k8s-version" K8sVersion = "k8s-version"
// //