Skip to content

Commit 1799ef8

Browse files
committed
Add Network Policy component
1 parent 845d0f0 commit 1799ef8

1 file changed

Lines changed: 150 additions & 0 deletions

File tree

src/assets/metadata/apiVersions/others.json

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,5 +462,155 @@
462462
"type": "UnknownResource",
463463
"model": "DefaultModel",
464464
"icon": "question-mark"
465+
},
466+
{
467+
"type": "NetworkPolicy",
468+
"model": "DefaultModel",
469+
"icon": "resources/unlabeled/netpol",
470+
"url": "https://kubernetes.io/docs/concepts/services-networking/network-policies/",
471+
"description": "NetworkPolicy describes what network traffic is allowed for a set of Pods",
472+
"attributes": [
473+
{
474+
"name": "metadata",
475+
"type": "Object",
476+
"attributes": [
477+
{
478+
"name": "name",
479+
"type": "String",
480+
"required": true
481+
},
482+
{
483+
"name": "namespace",
484+
"type": "String"
485+
}
486+
]
487+
},
488+
{
489+
"name": "spec",
490+
"type": "Object",
491+
"displayName": "Specification",
492+
"expanded": true,
493+
"attributes": [
494+
{
495+
"name": "podSelector",
496+
"type": "Object",
497+
"required": true,
498+
"attributes": [
499+
{
500+
"name": "matchLabels",
501+
"type": "Object"
502+
}
503+
]
504+
},
505+
{
506+
"name": "policyTypes",
507+
"type": "Array",
508+
"attributes": [
509+
{
510+
"name": null,
511+
"type": "String",
512+
"required": true
513+
}
514+
]
515+
},
516+
{
517+
"name": "ingress",
518+
"type": "Array",
519+
"attributes": [
520+
{
521+
"name": "from",
522+
"type": "Array",
523+
"attributes": [
524+
{
525+
"name": "null",
526+
"type": "Array",
527+
"attributes": [
528+
{
529+
"name": "podSelector",
530+
"type": "Object",
531+
"attributes": [
532+
{
533+
"name": "matchLabels",
534+
"type": "Object"
535+
}
536+
]
537+
}
538+
]
539+
},
540+
{
541+
"name": "port",
542+
"type": "Object",
543+
"attributes": [
544+
{
545+
"name": "null",
546+
"type": "Array",
547+
"attributes": [
548+
{
549+
"name": "protocol",
550+
"type": "String"
551+
}
552+
]
553+
},
554+
{
555+
"name": "port",
556+
"type": "Number"
557+
}
558+
]
559+
}
560+
]
561+
}
562+
]
563+
},
564+
{
565+
"name": "egress",
566+
"type": "Array",
567+
"attributes": [
568+
{
569+
"name": "to",
570+
"type": "Object",
571+
"attributes": [
572+
{
573+
"name": "null",
574+
"type": "Array",
575+
"attributes": [
576+
{
577+
"name": "podSelector",
578+
"type": "Object",
579+
"attributes": [
580+
{
581+
"name": "matchLabels",
582+
"type": "Object"
583+
}
584+
]
585+
}
586+
]
587+
},
588+
{
589+
"name": "port",
590+
"type": "Object",
591+
"attributes": [
592+
{
593+
"name": "null",
594+
"type": "Array",
595+
"attributes": [
596+
{
597+
"name": "protocol",
598+
"type": "String"
599+
}
600+
]
601+
},
602+
{
603+
"name": "port",
604+
"type": "Number"
605+
}
606+
]
607+
}
608+
]
609+
}
610+
]
611+
}
612+
]
613+
}
614+
]
465615
}
466616
]

0 commit comments

Comments
 (0)