File tree Expand file tree Collapse file tree 3 files changed +657
-0
lines changed Expand file tree Collapse file tree 3 files changed +657
-0
lines changed Original file line number Diff line number Diff line change 2564
2564
]
2565
2565
}
2566
2566
}
2567
+ },
2568
+ "networkPolicy" : {
2569
+ "type" : " object" ,
2570
+ "default" : {
2571
+ "enabled" : false
2572
+ },
2573
+ "title" : " Configuration for NetworkPolicy" ,
2574
+ "required" : [
2575
+ " enabled"
2576
+ ],
2577
+ "properties" : {
2578
+ "enabled" : {
2579
+ "type" : " boolean" ,
2580
+ "default" : false ,
2581
+ "title" : " Enable NetworkPolicy" ,
2582
+ "examples" : [
2583
+ false ,
2584
+ true
2585
+ ]
2586
+ },
2587
+ "policyTypes" : {
2588
+ "type" : " array" ,
2589
+ "default" : [
2590
+ " Ingress" ,
2591
+ " Egress"
2592
+ ],
2593
+ "title" : " Types of policy to create" ,
2594
+ "items" : {
2595
+ "type" : " string" ,
2596
+ "enum" : [
2597
+ " Ingress" ,
2598
+ " Egress"
2599
+ ]
2600
+ },
2601
+ "examples" : [
2602
+ [
2603
+ " Ingress"
2604
+ ],
2605
+ [
2606
+ " Egress"
2607
+ ],
2608
+ [
2609
+ " Ingress" ,
2610
+ " Egress"
2611
+ ]
2612
+ ]
2613
+ },
2614
+ "podSelector" : {
2615
+ "type" : " object" ,
2616
+ "default" : {},
2617
+ "title" : " Label selector for pods (defaults to ingress controller pods)" ,
2618
+ "examples" : [
2619
+ {},
2620
+ {
2621
+ "matchLabels" : {
2622
+ "app" : " nginx-ingress"
2623
+ }
2624
+ }
2625
+ ]
2626
+ },
2627
+ "ingress" : {
2628
+ "type" : " array" ,
2629
+ "default" : [
2630
+ {
2631
+ "from" : [],
2632
+ "ports" : [
2633
+ {
2634
+ "protocol" : " TCP" ,
2635
+ "port" : 80
2636
+ },
2637
+ {
2638
+ "protocol" : " TCP" ,
2639
+ "port" : 443
2640
+ }
2641
+ ]
2642
+ }
2643
+ ],
2644
+ "title" : " Ingress rules" ,
2645
+ "items" : {
2646
+ "type" : " object" ,
2647
+ "properties" : {
2648
+ "from" : {
2649
+ "type" : " array" ,
2650
+ "title" : " List of peer selectors (e.g. namespaces, pods)" ,
2651
+ "items" : {
2652
+ "type" : " object"
2653
+ }
2654
+ },
2655
+ "ports" : {
2656
+ "type" : " array" ,
2657
+ "title" : " List of ports and protocols" ,
2658
+ "items" : {
2659
+ "type" : " object" ,
2660
+ "properties" : {
2661
+ "protocol" : {
2662
+ "type" : " string" ,
2663
+ "enum" : [
2664
+ " TCP" ,
2665
+ " UDP" ,
2666
+ " SCTP"
2667
+ ]
2668
+ },
2669
+ "port" : {
2670
+ "type" : [
2671
+ " integer" ,
2672
+ " string"
2673
+ ]
2674
+ }
2675
+ }
2676
+ }
2677
+ }
2678
+ }
2679
+ }
2680
+ },
2681
+ "egress" : {
2682
+ "type" : " array" ,
2683
+ "default" : [
2684
+ {
2685
+ "to" : [],
2686
+ "ports" : [
2687
+ {
2688
+ "protocol" : " UDP" ,
2689
+ "port" : 53
2690
+ }
2691
+ ]
2692
+ }
2693
+ ],
2694
+ "title" : " Egress rules" ,
2695
+ "items" : {
2696
+ "type" : " object" ,
2697
+ "properties" : {
2698
+ "to" : {
2699
+ "type" : " array" ,
2700
+ "title" : " List of peer selectors" ,
2701
+ "items" : {
2702
+ "type" : " object"
2703
+ }
2704
+ },
2705
+ "ports" : {
2706
+ "type" : " array" ,
2707
+ "title" : " List of ports and protocols" ,
2708
+ "items" : {
2709
+ "type" : " object" ,
2710
+ "properties" : {
2711
+ "protocol" : {
2712
+ "type" : " string" ,
2713
+ "enum" : [
2714
+ " TCP" ,
2715
+ " UDP" ,
2716
+ " SCTP"
2717
+ ]
2718
+ },
2719
+ "port" : {
2720
+ "type" : [
2721
+ " integer" ,
2722
+ " string"
2723
+ ]
2724
+ }
2725
+ }
2726
+ }
2727
+ }
2728
+ }
2729
+ }
2730
+ }
2731
+ }
2567
2732
}
2568
2733
},
2569
2734
"examples" : [
You can’t perform that action at this time.
0 commit comments