diff --git a/pkg/server/server_test.go b/pkg/server/server_test.go index f39cf59ad..bacf858fc 100644 --- a/pkg/server/server_test.go +++ b/pkg/server/server_test.go @@ -907,12 +907,12 @@ func TestAuthenticateVerifierNodeMappingCRD(t *testing.T) { "aws-iam-authenticator:0123456789012:TestNodeRole", []string{"system:nodes", "system:bootstrappers"}, map[string]authenticationv1beta1.ExtraValue{ - "arn": authenticationv1beta1.ExtraValue{"arn:aws:iam::0123456789012:role/TestNodeRole"}, - "canonicalArn": authenticationv1beta1.ExtraValue{"arn:aws:iam::0123456789012:role/TestNodeRole"}, - "sessionName": authenticationv1beta1.ExtraValue{"i-0c6f21bf1f24f9708"}, - "accessKeyId": authenticationv1beta1.ExtraValue{""}, - "principalId": authenticationv1beta1.ExtraValue{"TestNodeRole"}, - "sigs.k8s.io/aws-iam-authenticator/principalId": authenticationv1beta1.ExtraValue{"TestNodeRole"}, + "arn": {"arn:aws:iam::0123456789012:role/TestNodeRole"}, + "canonicalArn": {"arn:aws:iam::0123456789012:role/TestNodeRole"}, + "sessionName": {"i-0c6f21bf1f24f9708"}, + "accessKeyId": {""}, + "principalId": {"TestNodeRole"}, + "sigs.k8s.io/aws-iam-authenticator/principalId": {"TestNodeRole"}, })) validateMetrics(t, validateOpts{success: 1})