Skip to content

Commit

Permalink
Comment out code that sets the ingress class
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wregglesworth committed Jun 17, 2024
1 parent 6609fe6 commit cc01090
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions external/ingresser.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ func (i *Ingresser) Create(ctx context.Context, opts *IngressOptions) (*netv1.In
ObjectMeta: metav1.ObjectMeta{
Name: opts.Name,
Namespace: opts.Namespace,
Annotations: map[string]string{
"kubernetes.io/ingress.class": i.class,
},
//Annotations: map[string]string{
// "kubernetes.io/ingress.class": i.class,
//},
},
Spec: netv1.IngressSpec{
DefaultBackend: backend,
Expand Down Expand Up @@ -99,9 +99,9 @@ func (i *Ingresser) Update(ctx context.Context, opts *IngressOptions) (*netv1.In
ObjectMeta: metav1.ObjectMeta{
Name: opts.Name,
Namespace: opts.Namespace,
Annotations: map[string]string{
"kubernetes.io/ingress.class": i.class,
},
//Annotations: map[string]string{
// "kubernetes.io/ingress.class": i.class,
//},
},
Spec: netv1.IngressSpec{
DefaultBackend: backend,
Expand Down
6 changes: 3 additions & 3 deletions internal/ingresses.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ func (i *Internal) getIngress(ctx context.Context, job *model.Job, svc *apiv1.Se
return &netv1.Ingress{
ObjectMeta: metav1.ObjectMeta{
Name: job.InvocationID,
Annotations: map[string]string{
"kubernetes.io/ingress.class": "nginx",
},
// Annotations: map[string]string{
// "kubernetes.io/ingress.class": "nginx",
// },
Labels: labels,
},
Spec: netv1.IngressSpec{
Expand Down

0 comments on commit cc01090

Please sign in to comment.