Skip to content

Commit

Permalink
fix go build error
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed Feb 5, 2024
1 parent f406834 commit c4b743d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions service/controller/resource/ciliumnetpol/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ import (
"github.com/giantswarm/k8sclient/v7/pkg/k8sclient"
"github.com/giantswarm/microerror"
"github.com/giantswarm/micrologger"
"github.com/giantswarm/prometheus-meta-operator/v2/service/key"
"k8s.io/apimachinery/pkg/apis/meta/v1/unstructured"

"github.com/giantswarm/prometheus-meta-operator/v2/service/key"
)

const (
Expand Down Expand Up @@ -64,6 +65,7 @@ func toCiliumNetworkPolicy(v interface{}) (*unstructured.Unstructured, error) {
"kube-apiserver",
"cluster",
},
},
map[string]interface{}{
"toEntities": []string{
"world",
Expand Down Expand Up @@ -101,7 +103,7 @@ func toCiliumNetworkPolicy(v interface{}) (*unstructured.Unstructured, error) {
},
},
},
}
},
}

return ciliumNetworkPolicy, nil
Expand Down

0 comments on commit c4b743d

Please sign in to comment.