Skip to content

Commit 9c98ccd

Browse files
authored
Merge pull request #105 from mohammedzee1000/netv1_ingress_gen
Adding required field to networkingv1 ingress generator
2 parents ea80050 + 9a357bf commit 9c98ccd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/devfile/generator/utils.go

+3
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,7 @@ func getIngressSpec(ingressSpecParams IngressSpecParams) *extensionsv1.IngressSp
339339
// getNetworkingV1IngressSpec gets a networking v1 ingress spec
340340
func getNetworkingV1IngressSpec(ingressSpecParams IngressSpecParams) *networkingv1.IngressSpec {
341341
path := "/"
342+
pathTypeImplementationSpecific := networkingv1.PathTypeImplementationSpecific
342343
if ingressSpecParams.Path != "" {
343344
path = ingressSpecParams.Path
344345
}
@@ -359,6 +360,8 @@ func getNetworkingV1IngressSpec(ingressSpecParams IngressSpecParams) *networking
359360
},
360361
},
361362
},
363+
//Field is required to be set based on attempt to create the ingress
364+
PathType: &pathTypeImplementationSpecific,
362365
},
363366
},
364367
},

0 commit comments

Comments
 (0)