using api constraint for test deployment options

This commit is contained in:
logica0419 2023-08-08 17:37:55 +09:00
parent 2e4556a12c
commit a5cdfc01f3

View file

@ -71,7 +71,7 @@ func WithDeploymentNamespace(n string) func(*deploymentOptions) {
func WithSvcTopologyAnnotations() func(*deploymentOptions) {
return func(o *deploymentOptions) {
o.svcAnnotations = map[string]string{
"service.kubernetes.io/topology-mode": "auto",
corev1.AnnotationTopologyMode: "auto",
}
}
}
@ -213,7 +213,7 @@ func (f *Framework) NewHttpbunDeployment(opts ...func(*deploymentOptions)) strin
80,
int32(options.replicas),
nil, nil,
//Required to get hostname information
// Required to get hostname information
[]corev1.EnvVar{
{
Name: "HTTPBUN_INFO_ENABLED",