Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Leggett <benjamin.leggett@solo.io>
  • Loading branch information
bleggett committed Apr 26, 2024
1 parent 64a633a commit b237453
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions tests/integration/ambient/cnirepair/main_test.go
Expand Up @@ -109,7 +109,7 @@ func SetupApps(t resource.Context, i istio.Instance, apps *EchoDeployments) erro
Prefix: "echo",
Inject: false,
Labels: map[string]string{
constants.DataplaneMode: "ambient",
constants.DataplaneModeLabel: "ambient",
},
})
if err != nil {
Expand Down Expand Up @@ -143,12 +143,12 @@ func SetupApps(t resource.Context, i istio.Instance, apps *EchoDeployments) erro
{
Replicas: 1,
Version: "v1",
Annotations: echo.NewAnnotations().Set(echo.AmbientType, constants.AmbientRedirectionDisabled),
Annotations: map[string]string{constants.AmbientRedirection: constants.AmbientRedirectionDisabled},
},
{
Replicas: 1,
Version: "v2",
Annotations: echo.NewAnnotations().Set(echo.AmbientType, constants.AmbientRedirectionDisabled),
Annotations: map[string]string{constants.AmbientRedirection: constants.AmbientRedirectionDisabled},
},
},
}).
Expand All @@ -161,15 +161,15 @@ func SetupApps(t resource.Context, i istio.Instance, apps *EchoDeployments) erro
{
Replicas: 1,
Version: "v1",
Annotations: echo.NewAnnotations().Set(echo.AmbientType, constants.AmbientRedirectionDisabled),
Annotations: map[string]string{constants.AmbientRedirection: constants.AmbientRedirectionDisabled},
Labels: map[string]string{
"sidecar.istio.io/inject": "true",
},
},
{
Replicas: 1,
Version: "v2",
Annotations: echo.NewAnnotations().Set(echo.AmbientType, constants.AmbientRedirectionDisabled),
Annotations: map[string]string{constants.AmbientRedirection: constants.AmbientRedirectionDisabled},
Labels: map[string]string{
"sidecar.istio.io/inject": "true",
},
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/security/file_mounted_certs/main_test.go
Expand Up @@ -368,7 +368,7 @@ func setupApps(ctx resource.Context, customNs namespace.Getter, customCfg *[]ech
annotation.SidecarUserVolumeMount.Name: sidecarVolumeMounts,
// the default bootstrap template does not support reusing values from the `ISTIO_META_TLS_CLIENT_*` environment variables
// see security/pkg/nodeagent/cache/secretcache.go:generateFileSecret() for details
annotation.ProxyConfig.Name: `{"controlPlaneAuthPolicy":"MUTUAL_TLS","proxyMetadata":` + strings.Replace(ProxyMetadataJSON, "\n", "", -1)+`}`,
annotation.ProxyConfig.Name: `{"controlPlaneAuthPolicy":"MUTUAL_TLS","proxyMetadata":` + strings.Replace(ProxyMetadataJSON, "\n", "", -1) + `}`,
},
}},
}
Expand All @@ -393,7 +393,7 @@ func setupApps(ctx resource.Context, customNs namespace.Getter, customCfg *[]ech
annotation.SidecarUserVolumeMount.Name: sidecarVolumeMounts,
// the default bootstrap template does not support reusing values from the `ISTIO_META_TLS_CLIENT_*` environment variables
// see security/pkg/nodeagent/cache/secretcache.go:generateFileSecret() for details
annotation.ProxyConfig.Name: `{"controlPlaneAuthPolicy":"MUTUAL_TLS","proxyMetadata":` + strings.Replace(ProxyMetadataJSON, "\n", "", -1)+`}`,
annotation.ProxyConfig.Name: `{"controlPlaneAuthPolicy":"MUTUAL_TLS","proxyMetadata":` + strings.Replace(ProxyMetadataJSON, "\n", "", -1) + `}`,
},
}},
}
Expand Down

0 comments on commit b237453

Please sign in to comment.