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 ade7067
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion service/controller/resource/ciliumnetpol/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"

"github.com/giantswarm/microerror"
"github.com/giantswarm/prometheus-meta-operator/v2/service/key"
apierrors "k8s.io/apimachinery/pkg/api/errors"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
)
Expand Down
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 ade7067

Please sign in to comment.