Skip to content

Commit

Permalink
add missing kind and apiVersion to object
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed Feb 6, 2024
1 parent 2a1a677 commit e2f1c6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion service/controller/resource/ciliumnetpol/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,10 @@ func toCiliumNetworkPolicy(v interface{}) (*unstructured.Unstructured, error) {

ciliumNetworkPolicy := &unstructured.Unstructured{
Object: map[string]interface{}{
"apiVersion": "cilium.io/v2",
"kind": "CiliumNetworkPolicy",
"metadata": map[string]interface{}{
"name": key.Namespace(cluster) + "-prometheus",
"name": key.ClusterID(cluster) + "-prometheus",
"namespace": key.Namespace(cluster),
"labels": map[string]string{
"app.kubernetes.io/name": "prometheus",
Expand Down

0 comments on commit e2f1c6a

Please sign in to comment.