using api constraint for test deployment options
This commit is contained in:
parent
2e4556a12c
commit
a5cdfc01f3
1 changed files with 2 additions and 2 deletions
|
@ -71,7 +71,7 @@ func WithDeploymentNamespace(n string) func(*deploymentOptions) {
|
||||||
func WithSvcTopologyAnnotations() func(*deploymentOptions) {
|
func WithSvcTopologyAnnotations() func(*deploymentOptions) {
|
||||||
return func(o *deploymentOptions) {
|
return func(o *deploymentOptions) {
|
||||||
o.svcAnnotations = map[string]string{
|
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,
|
80,
|
||||||
int32(options.replicas),
|
int32(options.replicas),
|
||||||
nil, nil,
|
nil, nil,
|
||||||
//Required to get hostname information
|
// Required to get hostname information
|
||||||
[]corev1.EnvVar{
|
[]corev1.EnvVar{
|
||||||
{
|
{
|
||||||
Name: "HTTPBUN_INFO_ENABLED",
|
Name: "HTTPBUN_INFO_ENABLED",
|
||||||
|
|
Loading…
Reference in a new issue