networkpolicies.crd.projectcalico.org created 2021-08-30 18:56:44, version 3263

   1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: '{"apiVersion":"apiextensions.k8s.io/v1","kind":"CustomResourceDefinition","metadata":{"annotations":{},"name":"networkpolicies.crd.projectcalico.org"},"spec":{"group":"crd.projectcalico.org","names":{"kind":"NetworkPolicy","listKind":"NetworkPolicyList","plural":"networkpolicies","singular":"networkpolicy"},"scope":"Namespaced","versions":[{"name":"v1","schema":{"openAPIV3Schema":{"properties":{"apiVersion":{"description":"APIVersion
      defines the versioned schema of this representation of an object. Servers should
      convert recognized schemas to the latest internal value, and may reject unrecognized
      values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources","type":"string"},"kind":{"description":"Kind
      is a string value representing the REST resource this object represents. Servers
      may infer this from the endpoint the client submits requests to. Cannot be updated.
      In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds","type":"string"},"metadata":{"type":"object"},"spec":{"properties":{"egress":{"description":"The
      ordered set of egress rules.  Each rule contains a set of packet match criteria
      and a corresponding action to apply.","items":{"description":"A Rule encapsulates
      a set of match criteria and an action.  Both selector-based security Policy
      and security Profiles reference rules - separated out as a list of rules for
      both ingress and egress packet matching. \n Each positive match criteria has
      a negated version, prefixed with \"Not\". All the match criteria within a rule
      must be satisfied for a packet to match. A single rule can contain the positive
      and negative version of a match and both must be satisfied for the rule to match.","properties":{"action":{"type":"string"},"destination":{"description":"Destination
      contains the match criteria that apply to destination entity.","properties":{"namespaceSelector":{"description":"NamespaceSelector
      is an optional field that contains a selector expression. Only traffic that
      originates from (or terminates at) endpoints within the selected namespaces
      will be matched. When both NamespaceSelector and Selector are defined on the
      same rule, then only workload endpoints that are matched by both selectors will
      be selected by the rule. \n For NetworkPolicy, an empty NamespaceSelector implies
      that the Selector is limited to selecting only workload endpoints in the same
      namespace as the NetworkPolicy. \n For NetworkPolicy, `global()` NamespaceSelector
      implies that the Selector is limited to selecting only GlobalNetworkSet or HostEndpoint.
      \n For GlobalNetworkPolicy, an empty NamespaceSelector implies the Selector
      applies to workload endpoints across all namespaces.","type":"string"},"nets":{"description":"Nets
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) IP addresses in any of the given subnets.","items":{"type":"string"},"type":"array"},"notNets":{"description":"NotNets
      is the negated version of the Nets field.","items":{"type":"string"},"type":"array"},"notPorts":{"description":"NotPorts
      is the negated version of the Ports field. Since only some protocols have ports,
      if any ports are specified it requires the Protocol match in the Rule to be
      set to \"TCP\" or \"UDP\".","items":{"anyOf":[{"type":"integer"},{"type":"string"}],"pattern":"^.*","x-kubernetes-int-or-string":true},"type":"array"},"notSelector":{"description":"NotSelector
      is the negated version of the Selector field.  See Selector field for subtleties
      with negated selectors.","type":"string"},"ports":{"description":"Ports is an
      optional field that restricts the rule to only apply to traffic that has a source
      (destination) port that matches one of these ranges/values. This value is a
      list of integers or strings that represent ranges of ports. \n Since only some
      protocols have ports, if any ports are specified it requires the Protocol match
      in the Rule to be set to \"TCP\" or \"UDP\".","items":{"anyOf":[{"type":"integer"},{"type":"string"}],"pattern":"^.*","x-kubernetes-int-or-string":true},"type":"array"},"selector":{"description":"Selector
      is an optional field that contains a selector expression (see Policy for sample
      syntax).  Only traffic that originates from (terminates at) endpoints matching
      the selector will be matched. \n Note that: in addition to the negated version
      of the Selector (see NotSelector below), the selector expression syntax itself
      supports negation.  The two types of negation are subtly different. One negates
      the set of matched endpoints, the other negates the whole match: \n \tSelector
      = \"!has(my_label)\" matches packets that are from other Calico-controlled \tendpoints
      that do not have the label \"my_label\". \n \tNotSelector = \"has(my_label)\"
      matches packets that are not from Calico-controlled \tendpoints that do have
      the label \"my_label\". \n The effect is that the latter will accept packets
      from non-Calico sources whereas the former is limited to packets from Calico-controlled
      endpoints.","type":"string"},"serviceAccounts":{"description":"ServiceAccounts
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a matching service account.","properties":{"names":{"description":"Names
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a service account whose name is in
      the list.","items":{"type":"string"},"type":"array"},"selector":{"description":"Selector
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a service account that matches the
      given label selector. If both Names and Selector are specified then they are
      AND''ed.","type":"string"}},"type":"object"}},"type":"object"},"http":{"description":"HTTP
      contains match criteria that apply to HTTP requests.","properties":{"methods":{"description":"Methods
      is an optional field that restricts the rule to apply only to HTTP requests
      that use one of the listed HTTP Methods (e.g. GET, PUT, etc.) Multiple methods
      are OR''d together.","items":{"type":"string"},"type":"array"},"paths":{"description":"Paths
      is an optional field that restricts the rule to apply to HTTP requests that
      use one of the listed HTTP Paths. Multiple paths are OR''d together. e.g: -
      exact: /foo - prefix: /bar NOTE: Each entry may ONLY specify either a `exact`
      or a `prefix` match. The validator will check for it.","items":{"description":"HTTPPath
      specifies an HTTP path to match. It may be either of the form: exact: \u003cpath\u003e:
      which matches the path exactly or prefix: \u003cpath-prefix\u003e: which matches
      the path prefix","properties":{"exact":{"type":"string"},"prefix":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"icmp":{"description":"ICMP
      is an optional field that restricts the rule to apply to a specific type and
      code of ICMP traffic.  This should only be specified if the Protocol field is
      set to \"ICMP\" or \"ICMPv6\".","properties":{"code":{"description":"Match on
      a specific ICMP code.  If specified, the Type value must also be specified.
      This is a technical limitation imposed by the kernel''s iptables firewall, which
      Calico uses to enforce the rule.","type":"integer"},"type":{"description":"Match
      on a specific ICMP type.  For example a value of 8 refers to ICMP Echo Request
      (i.e. pings).","type":"integer"}},"type":"object"},"ipVersion":{"description":"IPVersion
      is an optional field that restricts the rule to only match a specific IP version.","type":"integer"},"metadata":{"description":"Metadata
      contains additional information for this rule","properties":{"annotations":{"additionalProperties":{"type":"string"},"description":"Annotations
      is a set of key value pairs that give extra information about the rule","type":"object"}},"type":"object"},"notICMP":{"description":"NotICMP
      is the negated version of the ICMP field.","properties":{"code":{"description":"Match
      on a specific ICMP code.  If specified, the Type value must also be specified.
      This is a technical limitation imposed by the kernel''s iptables firewall, which
      Calico uses to enforce the rule.","type":"integer"},"type":{"description":"Match
      on a specific ICMP type.  For example a value of 8 refers to ICMP Echo Request
      (i.e. pings).","type":"integer"}},"type":"object"},"notProtocol":{"anyOf":[{"type":"integer"},{"type":"string"}],"description":"NotProtocol
      is the negated version of the Protocol field.","pattern":"^.*","x-kubernetes-int-or-string":true},"protocol":{"anyOf":[{"type":"integer"},{"type":"string"}],"description":"Protocol
      is an optional field that restricts the rule to only apply to traffic of a specific
      IP protocol. Required if any of the EntityRules contain Ports (because ports
      only apply to certain protocols). \n Must be one of these string values: \"TCP\",
      \"UDP\", \"ICMP\", \"ICMPv6\", \"SCTP\", \"UDPLite\" or an integer in the range
      1-255.","pattern":"^.*","x-kubernetes-int-or-string":true},"source":{"description":"Source
      contains the match criteria that apply to source entity.","properties":{"namespaceSelector":{"description":"NamespaceSelector
      is an optional field that contains a selector expression. Only traffic that
      originates from (or terminates at) endpoints within the selected namespaces
      will be matched. When both NamespaceSelector and Selector are defined on the
      same rule, then only workload endpoints that are matched by both selectors will
      be selected by the rule. \n For NetworkPolicy, an empty NamespaceSelector implies
      that the Selector is limited to selecting only workload endpoints in the same
      namespace as the NetworkPolicy. \n For NetworkPolicy, `global()` NamespaceSelector
      implies that the Selector is limited to selecting only GlobalNetworkSet or HostEndpoint.
      \n For GlobalNetworkPolicy, an empty NamespaceSelector implies the Selector
      applies to workload endpoints across all namespaces.","type":"string"},"nets":{"description":"Nets
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) IP addresses in any of the given subnets.","items":{"type":"string"},"type":"array"},"notNets":{"description":"NotNets
      is the negated version of the Nets field.","items":{"type":"string"},"type":"array"},"notPorts":{"description":"NotPorts
      is the negated version of the Ports field. Since only some protocols have ports,
      if any ports are specified it requires the Protocol match in the Rule to be
      set to \"TCP\" or \"UDP\".","items":{"anyOf":[{"type":"integer"},{"type":"string"}],"pattern":"^.*","x-kubernetes-int-or-string":true},"type":"array"},"notSelector":{"description":"NotSelector
      is the negated version of the Selector field.  See Selector field for subtleties
      with negated selectors.","type":"string"},"ports":{"description":"Ports is an
      optional field that restricts the rule to only apply to traffic that has a source
      (destination) port that matches one of these ranges/values. This value is a
      list of integers or strings that represent ranges of ports. \n Since only some
      protocols have ports, if any ports are specified it requires the Protocol match
      in the Rule to be set to \"TCP\" or \"UDP\".","items":{"anyOf":[{"type":"integer"},{"type":"string"}],"pattern":"^.*","x-kubernetes-int-or-string":true},"type":"array"},"selector":{"description":"Selector
      is an optional field that contains a selector expression (see Policy for sample
      syntax).  Only traffic that originates from (terminates at) endpoints matching
      the selector will be matched. \n Note that: in addition to the negated version
      of the Selector (see NotSelector below), the selector expression syntax itself
      supports negation.  The two types of negation are subtly different. One negates
      the set of matched endpoints, the other negates the whole match: \n \tSelector
      = \"!has(my_label)\" matches packets that are from other Calico-controlled \tendpoints
      that do not have the label \"my_label\". \n \tNotSelector = \"has(my_label)\"
      matches packets that are not from Calico-controlled \tendpoints that do have
      the label \"my_label\". \n The effect is that the latter will accept packets
      from non-Calico sources whereas the former is limited to packets from Calico-controlled
      endpoints.","type":"string"},"serviceAccounts":{"description":"ServiceAccounts
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a matching service account.","properties":{"names":{"description":"Names
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a service account whose name is in
      the list.","items":{"type":"string"},"type":"array"},"selector":{"description":"Selector
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a service account that matches the
      given label selector. If both Names and Selector are specified then they are
      AND''ed.","type":"string"}},"type":"object"}},"type":"object"}},"required":["action"],"type":"object"},"type":"array"},"ingress":{"description":"The
      ordered set of ingress rules.  Each rule contains a set of packet match criteria
      and a corresponding action to apply.","items":{"description":"A Rule encapsulates
      a set of match criteria and an action.  Both selector-based security Policy
      and security Profiles reference rules - separated out as a list of rules for
      both ingress and egress packet matching. \n Each positive match criteria has
      a negated version, prefixed with \"Not\". All the match criteria within a rule
      must be satisfied for a packet to match. A single rule can contain the positive
      and negative version of a match and both must be satisfied for the rule to match.","properties":{"action":{"type":"string"},"destination":{"description":"Destination
      contains the match criteria that apply to destination entity.","properties":{"namespaceSelector":{"description":"NamespaceSelector
      is an optional field that contains a selector expression. Only traffic that
      originates from (or terminates at) endpoints within the selected namespaces
      will be matched. When both NamespaceSelector and Selector are defined on the
      same rule, then only workload endpoints that are matched by both selectors will
      be selected by the rule. \n For NetworkPolicy, an empty NamespaceSelector implies
      that the Selector is limited to selecting only workload endpoints in the same
      namespace as the NetworkPolicy. \n For NetworkPolicy, `global()` NamespaceSelector
      implies that the Selector is limited to selecting only GlobalNetworkSet or HostEndpoint.
      \n For GlobalNetworkPolicy, an empty NamespaceSelector implies the Selector
      applies to workload endpoints across all namespaces.","type":"string"},"nets":{"description":"Nets
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) IP addresses in any of the given subnets.","items":{"type":"string"},"type":"array"},"notNets":{"description":"NotNets
      is the negated version of the Nets field.","items":{"type":"string"},"type":"array"},"notPorts":{"description":"NotPorts
      is the negated version of the Ports field. Since only some protocols have ports,
      if any ports are specified it requires the Protocol match in the Rule to be
      set to \"TCP\" or \"UDP\".","items":{"anyOf":[{"type":"integer"},{"type":"string"}],"pattern":"^.*","x-kubernetes-int-or-string":true},"type":"array"},"notSelector":{"description":"NotSelector
      is the negated version of the Selector field.  See Selector field for subtleties
      with negated selectors.","type":"string"},"ports":{"description":"Ports is an
      optional field that restricts the rule to only apply to traffic that has a source
      (destination) port that matches one of these ranges/values. This value is a
      list of integers or strings that represent ranges of ports. \n Since only some
      protocols have ports, if any ports are specified it requires the Protocol match
      in the Rule to be set to \"TCP\" or \"UDP\".","items":{"anyOf":[{"type":"integer"},{"type":"string"}],"pattern":"^.*","x-kubernetes-int-or-string":true},"type":"array"},"selector":{"description":"Selector
      is an optional field that contains a selector expression (see Policy for sample
      syntax).  Only traffic that originates from (terminates at) endpoints matching
      the selector will be matched. \n Note that: in addition to the negated version
      of the Selector (see NotSelector below), the selector expression syntax itself
      supports negation.  The two types of negation are subtly different. One negates
      the set of matched endpoints, the other negates the whole match: \n \tSelector
      = \"!has(my_label)\" matches packets that are from other Calico-controlled \tendpoints
      that do not have the label \"my_label\". \n \tNotSelector = \"has(my_label)\"
      matches packets that are not from Calico-controlled \tendpoints that do have
      the label \"my_label\". \n The effect is that the latter will accept packets
      from non-Calico sources whereas the former is limited to packets from Calico-controlled
      endpoints.","type":"string"},"serviceAccounts":{"description":"ServiceAccounts
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a matching service account.","properties":{"names":{"description":"Names
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a service account whose name is in
      the list.","items":{"type":"string"},"type":"array"},"selector":{"description":"Selector
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a service account that matches the
      given label selector. If both Names and Selector are specified then they are
      AND''ed.","type":"string"}},"type":"object"}},"type":"object"},"http":{"description":"HTTP
      contains match criteria that apply to HTTP requests.","properties":{"methods":{"description":"Methods
      is an optional field that restricts the rule to apply only to HTTP requests
      that use one of the listed HTTP Methods (e.g. GET, PUT, etc.) Multiple methods
      are OR''d together.","items":{"type":"string"},"type":"array"},"paths":{"description":"Paths
      is an optional field that restricts the rule to apply to HTTP requests that
      use one of the listed HTTP Paths. Multiple paths are OR''d together. e.g: -
      exact: /foo - prefix: /bar NOTE: Each entry may ONLY specify either a `exact`
      or a `prefix` match. The validator will check for it.","items":{"description":"HTTPPath
      specifies an HTTP path to match. It may be either of the form: exact: \u003cpath\u003e:
      which matches the path exactly or prefix: \u003cpath-prefix\u003e: which matches
      the path prefix","properties":{"exact":{"type":"string"},"prefix":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"},"icmp":{"description":"ICMP
      is an optional field that restricts the rule to apply to a specific type and
      code of ICMP traffic.  This should only be specified if the Protocol field is
      set to \"ICMP\" or \"ICMPv6\".","properties":{"code":{"description":"Match on
      a specific ICMP code.  If specified, the Type value must also be specified.
      This is a technical limitation imposed by the kernel''s iptables firewall, which
      Calico uses to enforce the rule.","type":"integer"},"type":{"description":"Match
      on a specific ICMP type.  For example a value of 8 refers to ICMP Echo Request
      (i.e. pings).","type":"integer"}},"type":"object"},"ipVersion":{"description":"IPVersion
      is an optional field that restricts the rule to only match a specific IP version.","type":"integer"},"metadata":{"description":"Metadata
      contains additional information for this rule","properties":{"annotations":{"additionalProperties":{"type":"string"},"description":"Annotations
      is a set of key value pairs that give extra information about the rule","type":"object"}},"type":"object"},"notICMP":{"description":"NotICMP
      is the negated version of the ICMP field.","properties":{"code":{"description":"Match
      on a specific ICMP code.  If specified, the Type value must also be specified.
      This is a technical limitation imposed by the kernel''s iptables firewall, which
      Calico uses to enforce the rule.","type":"integer"},"type":{"description":"Match
      on a specific ICMP type.  For example a value of 8 refers to ICMP Echo Request
      (i.e. pings).","type":"integer"}},"type":"object"},"notProtocol":{"anyOf":[{"type":"integer"},{"type":"string"}],"description":"NotProtocol
      is the negated version of the Protocol field.","pattern":"^.*","x-kubernetes-int-or-string":true},"protocol":{"anyOf":[{"type":"integer"},{"type":"string"}],"description":"Protocol
      is an optional field that restricts the rule to only apply to traffic of a specific
      IP protocol. Required if any of the EntityRules contain Ports (because ports
      only apply to certain protocols). \n Must be one of these string values: \"TCP\",
      \"UDP\", \"ICMP\", \"ICMPv6\", \"SCTP\", \"UDPLite\" or an integer in the range
      1-255.","pattern":"^.*","x-kubernetes-int-or-string":true},"source":{"description":"Source
      contains the match criteria that apply to source entity.","properties":{"namespaceSelector":{"description":"NamespaceSelector
      is an optional field that contains a selector expression. Only traffic that
      originates from (or terminates at) endpoints within the selected namespaces
      will be matched. When both NamespaceSelector and Selector are defined on the
      same rule, then only workload endpoints that are matched by both selectors will
      be selected by the rule. \n For NetworkPolicy, an empty NamespaceSelector implies
      that the Selector is limited to selecting only workload endpoints in the same
      namespace as the NetworkPolicy. \n For NetworkPolicy, `global()` NamespaceSelector
      implies that the Selector is limited to selecting only GlobalNetworkSet or HostEndpoint.
      \n For GlobalNetworkPolicy, an empty NamespaceSelector implies the Selector
      applies to workload endpoints across all namespaces.","type":"string"},"nets":{"description":"Nets
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) IP addresses in any of the given subnets.","items":{"type":"string"},"type":"array"},"notNets":{"description":"NotNets
      is the negated version of the Nets field.","items":{"type":"string"},"type":"array"},"notPorts":{"description":"NotPorts
      is the negated version of the Ports field. Since only some protocols have ports,
      if any ports are specified it requires the Protocol match in the Rule to be
      set to \"TCP\" or \"UDP\".","items":{"anyOf":[{"type":"integer"},{"type":"string"}],"pattern":"^.*","x-kubernetes-int-or-string":true},"type":"array"},"notSelector":{"description":"NotSelector
      is the negated version of the Selector field.  See Selector field for subtleties
      with negated selectors.","type":"string"},"ports":{"description":"Ports is an
      optional field that restricts the rule to only apply to traffic that has a source
      (destination) port that matches one of these ranges/values. This value is a
      list of integers or strings that represent ranges of ports. \n Since only some
      protocols have ports, if any ports are specified it requires the Protocol match
      in the Rule to be set to \"TCP\" or \"UDP\".","items":{"anyOf":[{"type":"integer"},{"type":"string"}],"pattern":"^.*","x-kubernetes-int-or-string":true},"type":"array"},"selector":{"description":"Selector
      is an optional field that contains a selector expression (see Policy for sample
      syntax).  Only traffic that originates from (terminates at) endpoints matching
      the selector will be matched. \n Note that: in addition to the negated version
      of the Selector (see NotSelector below), the selector expression syntax itself
      supports negation.  The two types of negation are subtly different. One negates
      the set of matched endpoints, the other negates the whole match: \n \tSelector
      = \"!has(my_label)\" matches packets that are from other Calico-controlled \tendpoints
      that do not have the label \"my_label\". \n \tNotSelector = \"has(my_label)\"
      matches packets that are not from Calico-controlled \tendpoints that do have
      the label \"my_label\". \n The effect is that the latter will accept packets
      from non-Calico sources whereas the former is limited to packets from Calico-controlled
      endpoints.","type":"string"},"serviceAccounts":{"description":"ServiceAccounts
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a matching service account.","properties":{"names":{"description":"Names
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a service account whose name is in
      the list.","items":{"type":"string"},"type":"array"},"selector":{"description":"Selector
      is an optional field that restricts the rule to only apply to traffic that originates
      from (or terminates at) a pod running as a service account that matches the
      given label selector. If both Names and Selector are specified then they are
      AND''ed.","type":"string"}},"type":"object"}},"type":"object"}},"required":["action"],"type":"object"},"type":"array"},"order":{"description":"Order
      is an optional field that specifies the order in which the policy is applied.
      Policies with higher \"order\" are applied after those with lower order.  If
      the order is omitted, it may be considered to be \"infinite\" - i.e. the policy
      will be applied last.  Policies with identical order will be applied in alphanumerical
      order based on the Policy \"Name\".","type":"number"},"selector":{"description":"The
      selector is an expression used to pick pick out the endpoints that the policy
      should be applied to. \n Selector expressions follow this syntax: \n \tlabel
      == \"string_literal\"  -\u003e  comparison, e.g. my_label == \"foo bar\" \tlabel
      != \"string_literal\"   -\u003e  not equal; also matches if label is not present
      \tlabel in { \"a\", \"b\", \"c\", ... }  -\u003e  true if the value of label
      X is one of \"a\", \"b\", \"c\" \tlabel not in { \"a\", \"b\", \"c\", ... }  -\u003e  true
      if the value of label X is not one of \"a\", \"b\", \"c\" \thas(label_name)  -\u003e
      True if that label is present \t! expr -\u003e negation of expr \texpr \u0026\u0026
      expr  -\u003e Short-circuit and \texpr || expr  -\u003e Short-circuit or \t(
      expr ) -\u003e parens for grouping \tall() or the empty selector -\u003e matches
      all endpoints. \n Label names are allowed to contain alphanumerics, -, _ and
      /. String literals are more permissive but they do not support escape characters.
      \n Examples (with made-up labels): \n \ttype == \"webserver\" \u0026\u0026 deployment
      == \"prod\" \ttype in {\"frontend\", \"backend\"} \tdeployment != \"dev\" \t!
      has(label_name)","type":"string"},"serviceAccountSelector":{"description":"ServiceAccountSelector
      is an optional field for an expression used to select a pod based on service
      accounts.","type":"string"},"types":{"description":"Types indicates whether
      this policy applies to ingress, or to egress, or to both.  When not explicitly
      specified (and so the value on creation is empty or nil), Calico defaults Types
      according to what Ingress and Egress are present in the policy.  The default
      is: \n - [ PolicyTypeIngress ], if there are no Egress rules (including the
      case where there are   also no Ingress rules) \n - [ PolicyTypeEgress ], if
      there are Egress rules but no Ingress rules \n - [ PolicyTypeIngress, PolicyTypeEgress
      ], if there are both Ingress and Egress rules. \n When the policy is read back
      again, Types will always be one of these values, never empty or nil.","items":{"description":"PolicyType
      enumerates the possible values of the PolicySpec Types field.","type":"string"},"type":"array"}},"type":"object"}},"type":"object"}},"served":true,"storage":true}]},"status":{"acceptedNames":{"kind":"","plural":""},"conditions":[],"storedVersions":[]}}

      '
  creationTimestamp: '2021-08-30T18:56:44Z'
  generation: 1
  managedFields:
  - apiVersion: apiextensions.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:status:
        f:acceptedNames:
          f:kind: {}
          f:listKind: {}
          f:plural: {}
          f:singular: {}
        f:conditions:
          k:{"type":"Established"}:
            .: {}
            f:lastTransitionTime: {}
            f:message: {}
            f:reason: {}
            f:status: {}
            f:type: {}
          k:{"type":"NamesAccepted"}:
            .: {}
            f:lastTransitionTime: {}
            f:message: {}
            f:reason: {}
            f:status: {}
            f:type: {}
    manager: k3s
    operation: Update
    time: '2021-08-30T18:56:44Z'
  - apiVersion: apiextensions.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:kubectl.kubernetes.io/last-applied-configuration: {}
      f:spec:
        f:conversion:
          .: {}
          f:strategy: {}
        f:group: {}
        f:names:
          f:kind: {}
          f:listKind: {}
          f:plural: {}
          f:singular: {}
        f:scope: {}
        f:versions: {}
    manager: kubectl-client-side-apply
    operation: Update
    time: '2021-08-30T18:56:44Z'
  name: networkpolicies.crd.projectcalico.org
  resourceVersion: '3263'
  uid: 1978fd03-a39c-4c63-902d-6903705ee934
spec:
  conversion:
    strategy: None
  group: crd.projectcalico.org
  names:
    kind: NetworkPolicy
    listKind: NetworkPolicyList
    plural: networkpolicies
    singular: networkpolicy
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        properties:
          apiVersion:
            description: 'APIVersion defines the versioned schema of this representation
              of an object. Servers should convert recognized schemas to the latest
              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
            type: string
          kind:
            description: 'Kind is a string value representing the REST resource this
              object represents. Servers may infer this from the endpoint the client
              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
            type: string
          metadata:
            type: object
          spec:
            properties:
              egress:
                description: The ordered set of egress rules.  Each rule contains
                  a set of packet match criteria and a corresponding action to apply.
                items:
                  description: "A Rule encapsulates a set of match criteria and an\
                    \ action.  Both selector-based security Policy and security Profiles\
                    \ reference rules - separated out as a list of rules for both\
                    \ ingress and egress packet matching. \n Each positive match criteria\
                    \ has a negated version, prefixed with \"Not\". All the match\
                    \ criteria within a rule must be satisfied for a packet to match.\
                    \ A single rule can contain the positive and negative version\
                    \ of a match and both must be satisfied for the rule to match."
                  properties:
                    action:
                      type: string
                    destination:
                      description: Destination contains the match criteria that apply
                        to destination entity.
                      properties:
                        namespaceSelector:
                          description: "NamespaceSelector is an optional field that\
                            \ contains a selector expression. Only traffic that originates\
                            \ from (or terminates at) endpoints within the selected\
                            \ namespaces will be matched. When both NamespaceSelector\
                            \ and Selector are defined on the same rule, then only\
                            \ workload endpoints that are matched by both selectors\
                            \ will be selected by the rule. \n For NetworkPolicy,\
                            \ an empty NamespaceSelector implies that the Selector\
                            \ is limited to selecting only workload endpoints in the\
                            \ same namespace as the NetworkPolicy. \n For NetworkPolicy,\
                            \ `global()` NamespaceSelector implies that the Selector\
                            \ is limited to selecting only GlobalNetworkSet or HostEndpoint.\
                            \ \n For GlobalNetworkPolicy, an empty NamespaceSelector\
                            \ implies the Selector applies to workload endpoints across\
                            \ all namespaces."
                          type: string
                        nets:
                          description: Nets is an optional field that restricts the
                            rule to only apply to traffic that originates from (or
                            terminates at) IP addresses in any of the given subnets.
                          items:
                            type: string
                          type: array
                        notNets:
                          description: NotNets is the negated version of the Nets
                            field.
                          items:
                            type: string
                          type: array
                        notPorts:
                          description: NotPorts is the negated version of the Ports
                            field. Since only some protocols have ports, if any ports
                            are specified it requires the Protocol match in the Rule
                            to be set to "TCP" or "UDP".
                          items:
                            anyOf:
                            - type: integer
                            - type: string
                            pattern: ^.*
                            x-kubernetes-int-or-string: true
                          type: array
                        notSelector:
                          description: NotSelector is the negated version of the Selector
                            field.  See Selector field for subtleties with negated
                            selectors.
                          type: string
                        ports:
                          description: "Ports is an optional field that restricts\
                            \ the rule to only apply to traffic that has a source\
                            \ (destination) port that matches one of these ranges/values.\
                            \ This value is a list of integers or strings that represent\
                            \ ranges of ports. \n Since only some protocols have ports,\
                            \ if any ports are specified it requires the Protocol\
                            \ match in the Rule to be set to \"TCP\" or \"UDP\"."
                          items:
                            anyOf:
                            - type: integer
                            - type: string
                            pattern: ^.*
                            x-kubernetes-int-or-string: true
                          type: array
                        selector:
                          description: "Selector is an optional field that contains\
                            \ a selector expression (see Policy for sample syntax).\
                            \  Only traffic that originates from (terminates at) endpoints\
                            \ matching the selector will be matched. \n Note that:\
                            \ in addition to the negated version of the Selector (see\
                            \ NotSelector below), the selector expression syntax itself\
                            \ supports negation.  The two types of negation are subtly\
                            \ different. One negates the set of matched endpoints,\
                            \ the other negates the whole match: \n \tSelector = \"\
                            !has(my_label)\" matches packets that are from other Calico-controlled\
                            \ \tendpoints that do not have the label \"my_label\"\
                            . \n \tNotSelector = \"has(my_label)\" matches packets\
                            \ that are not from Calico-controlled \tendpoints that\
                            \ do have the label \"my_label\". \n The effect is that\
                            \ the latter will accept packets from non-Calico sources\
                            \ whereas the former is limited to packets from Calico-controlled\
                            \ endpoints."
                          type: string
                        serviceAccounts:
                          description: ServiceAccounts is an optional field that restricts
                            the rule to only apply to traffic that originates from
                            (or terminates at) a pod running as a matching service
                            account.
                          properties:
                            names:
                              description: Names is an optional field that restricts
                                the rule to only apply to traffic that originates
                                from (or terminates at) a pod running as a service
                                account whose name is in the list.
                              items:
                                type: string
                              type: array
                            selector:
                              description: Selector is an optional field that restricts
                                the rule to only apply to traffic that originates
                                from (or terminates at) a pod running as a service
                                account that matches the given label selector. If
                                both Names and Selector are specified then they are
                                AND'ed.
                              type: string
                          type: object
                      type: object
                    http:
                      description: HTTP contains match criteria that apply to HTTP
                        requests.
                      properties:
                        methods:
                          description: Methods is an optional field that restricts
                            the rule to apply only to HTTP requests that use one of
                            the listed HTTP Methods (e.g. GET, PUT, etc.) Multiple
                            methods are OR'd together.
                          items:
                            type: string
                          type: array
                        paths:
                          description: 'Paths is an optional field that restricts
                            the rule to apply to HTTP requests that use one of the
                            listed HTTP Paths. Multiple paths are OR''d together.
                            e.g: - exact: /foo - prefix: /bar NOTE: Each entry may
                            ONLY specify either a `exact` or a `prefix` match. The
                            validator will check for it.'
                          items:
                            description: 'HTTPPath specifies an HTTP path to match.
                              It may be either of the form: exact: <path>: which matches
                              the path exactly or prefix: <path-prefix>: which matches
                              the path prefix'
                            properties:
                              exact:
                                type: string
                              prefix:
                                type: string
                            type: object
                          type: array
                      type: object
                    icmp:
                      description: ICMP is an optional field that restricts the rule
                        to apply to a specific type and code of ICMP traffic.  This
                        should only be specified if the Protocol field is set to "ICMP"
                        or "ICMPv6".
                      properties:
                        code:
                          description: Match on a specific ICMP code.  If specified,
                            the Type value must also be specified. This is a technical
                            limitation imposed by the kernel's iptables firewall,
                            which Calico uses to enforce the rule.
                          type: integer
                        type:
                          description: Match on a specific ICMP type.  For example
                            a value of 8 refers to ICMP Echo Request (i.e. pings).
                          type: integer
                      type: object
                    ipVersion:
                      description: IPVersion is an optional field that restricts the
                        rule to only match a specific IP version.
                      type: integer
                    metadata:
                      description: Metadata contains additional information for this
                        rule
                      properties:
                        annotations:
                          additionalProperties:
                            type: string
                          description: Annotations is a set of key value pairs that
                            give extra information about the rule
                          type: object
                      type: object
                    notICMP:
                      description: NotICMP is the negated version of the ICMP field.
                      properties:
                        code:
                          description: Match on a specific ICMP code.  If specified,
                            the Type value must also be specified. This is a technical
                            limitation imposed by the kernel's iptables firewall,
                            which Calico uses to enforce the rule.
                          type: integer
                        type:
                          description: Match on a specific ICMP type.  For example
                            a value of 8 refers to ICMP Echo Request (i.e. pings).
                          type: integer
                      type: object
                    notProtocol:
                      anyOf:
                      - type: integer
                      - type: string
                      description: NotProtocol is the negated version of the Protocol
                        field.
                      pattern: ^.*
                      x-kubernetes-int-or-string: true
                    protocol:
                      anyOf:
                      - type: integer
                      - type: string
                      description: "Protocol is an optional field that restricts the\
                        \ rule to only apply to traffic of a specific IP protocol.\
                        \ Required if any of the EntityRules contain Ports (because\
                        \ ports only apply to certain protocols). \n Must be one of\
                        \ these string values: \"TCP\", \"UDP\", \"ICMP\", \"ICMPv6\"\
                        , \"SCTP\", \"UDPLite\" or an integer in the range 1-255."
                      pattern: ^.*
                      x-kubernetes-int-or-string: true
                    source:
                      description: Source contains the match criteria that apply to
                        source entity.
                      properties:
                        namespaceSelector:
                          description: "NamespaceSelector is an optional field that\
                            \ contains a selector expression. Only traffic that originates\
                            \ from (or terminates at) endpoints within the selected\
                            \ namespaces will be matched. When both NamespaceSelector\
                            \ and Selector are defined on the same rule, then only\
                            \ workload endpoints that are matched by both selectors\
                            \ will be selected by the rule. \n For NetworkPolicy,\
                            \ an empty NamespaceSelector implies that the Selector\
                            \ is limited to selecting only workload endpoints in the\
                            \ same namespace as the NetworkPolicy. \n For NetworkPolicy,\
                            \ `global()` NamespaceSelector implies that the Selector\
                            \ is limited to selecting only GlobalNetworkSet or HostEndpoint.\
                            \ \n For GlobalNetworkPolicy, an empty NamespaceSelector\
                            \ implies the Selector applies to workload endpoints across\
                            \ all namespaces."
                          type: string
                        nets:
                          description: Nets is an optional field that restricts the
                            rule to only apply to traffic that originates from (or
                            terminates at) IP addresses in any of the given subnets.
                          items:
                            type: string
                          type: array
                        notNets:
                          description: NotNets is the negated version of the Nets
                            field.
                          items:
                            type: string
                          type: array
                        notPorts:
                          description: NotPorts is the negated version of the Ports
                            field. Since only some protocols have ports, if any ports
                            are specified it requires the Protocol match in the Rule
                            to be set to "TCP" or "UDP".
                          items:
                            anyOf:
                            - type: integer
                            - type: string
                            pattern: ^.*
                            x-kubernetes-int-or-string: true
                          type: array
                        notSelector:
                          description: NotSelector is the negated version of the Selector
                            field.  See Selector field for subtleties with negated
                            selectors.
                          type: string
                        ports:
                          description: "Ports is an optional field that restricts\
                            \ the rule to only apply to traffic that has a source\
                            \ (destination) port that matches one of these ranges/values.\
                            \ This value is a list of integers or strings that represent\
                            \ ranges of ports. \n Since only some protocols have ports,\
                            \ if any ports are specified it requires the Protocol\
                            \ match in the Rule to be set to \"TCP\" or \"UDP\"."
                          items:
                            anyOf:
                            - type: integer
                            - type: string
                            pattern: ^.*
                            x-kubernetes-int-or-string: true
                          type: array
                        selector:
                          description: "Selector is an optional field that contains\
                            \ a selector expression (see Policy for sample syntax).\
                            \  Only traffic that originates from (terminates at) endpoints\
                            \ matching the selector will be matched. \n Note that:\
                            \ in addition to the negated version of the Selector (see\
                            \ NotSelector below), the selector expression syntax itself\
                            \ supports negation.  The two types of negation are subtly\
                            \ different. One negates the set of matched endpoints,\
                            \ the other negates the whole match: \n \tSelector = \"\
                            !has(my_label)\" matches packets that are from other Calico-controlled\
                            \ \tendpoints that do not have the label \"my_label\"\
                            . \n \tNotSelector = \"has(my_label)\" matches packets\
                            \ that are not from Calico-controlled \tendpoints that\
                            \ do have the label \"my_label\". \n The effect is that\
                            \ the latter will accept packets from non-Calico sources\
                            \ whereas the former is limited to packets from Calico-controlled\
                            \ endpoints."
                          type: string
                        serviceAccounts:
                          description: ServiceAccounts is an optional field that restricts
                            the rule to only apply to traffic that originates from
                            (or terminates at) a pod running as a matching service
                            account.
                          properties:
                            names:
                              description: Names is an optional field that restricts
                                the rule to only apply to traffic that originates
                                from (or terminates at) a pod running as a service
                                account whose name is in the list.
                              items:
                                type: string
                              type: array
                            selector:
                              description: Selector is an optional field that restricts
                                the rule to only apply to traffic that originates
                                from (or terminates at) a pod running as a service
                                account that matches the given label selector. If
                                both Names and Selector are specified then they are
                                AND'ed.
                              type: string
                          type: object
                      type: object
                  required:
                  - action
                  type: object
                type: array
              ingress:
                description: The ordered set of ingress rules.  Each rule contains
                  a set of packet match criteria and a corresponding action to apply.
                items:
                  description: "A Rule encapsulates a set of match criteria and an\
                    \ action.  Both selector-based security Policy and security Profiles\
                    \ reference rules - separated out as a list of rules for both\
                    \ ingress and egress packet matching. \n Each positive match criteria\
                    \ has a negated version, prefixed with \"Not\". All the match\
                    \ criteria within a rule must be satisfied for a packet to match.\
                    \ A single rule can contain the positive and negative version\
                    \ of a match and both must be satisfied for the rule to match."
                  properties:
                    action:
                      type: string
                    destination:
                      description: Destination contains the match criteria that apply
                        to destination entity.
                      properties:
                        namespaceSelector:
                          description: "NamespaceSelector is an optional field that\
                            \ contains a selector expression. Only traffic that originates\
                            \ from (or terminates at) endpoints within the selected\
                            \ namespaces will be matched. When both NamespaceSelector\
                            \ and Selector are defined on the same rule, then only\
                            \ workload endpoints that are matched by both selectors\
                            \ will be selected by the rule. \n For NetworkPolicy,\
                            \ an empty NamespaceSelector implies that the Selector\
                            \ is limited to selecting only workload endpoints in the\
                            \ same namespace as the NetworkPolicy. \n For NetworkPolicy,\
                            \ `global()` NamespaceSelector implies that the Selector\
                            \ is limited to selecting only GlobalNetworkSet or HostEndpoint.\
                            \ \n For GlobalNetworkPolicy, an empty NamespaceSelector\
                            \ implies the Selector applies to workload endpoints across\
                            \ all namespaces."
                          type: string
                        nets:
                          description: Nets is an optional field that restricts the
                            rule to only apply to traffic that originates from (or
                            terminates at) IP addresses in any of the given subnets.
                          items:
                            type: string
                          type: array
                        notNets:
                          description: NotNets is the negated version of the Nets
                            field.
                          items:
                            type: string
                          type: array
                        notPorts:
                          description: NotPorts is the negated version of the Ports
                            field. Since only some protocols have ports, if any ports
                            are specified it requires the Protocol match in the Rule
                            to be set to "TCP" or "UDP".
                          items:
                            anyOf:
                            - type: integer
                            - type: string
                            pattern: ^.*
                            x-kubernetes-int-or-string: true
                          type: array
                        notSelector:
                          description: NotSelector is the negated version of the Selector
                            field.  See Selector field for subtleties with negated
                            selectors.
                          type: string
                        ports:
                          description: "Ports is an optional field that restricts\
                            \ the rule to only apply to traffic that has a source\
                            \ (destination) port that matches one of these ranges/values.\
                            \ This value is a list of integers or strings that represent\
                            \ ranges of ports. \n Since only some protocols have ports,\
                            \ if any ports are specified it requires the Protocol\
                            \ match in the Rule to be set to \"TCP\" or \"UDP\"."
                          items:
                            anyOf:
                            - type: integer
                            - type: string
                            pattern: ^.*
                            x-kubernetes-int-or-string: true
                          type: array
                        selector:
                          description: "Selector is an optional field that contains\
                            \ a selector expression (see Policy for sample syntax).\
                            \  Only traffic that originates from (terminates at) endpoints\
                            \ matching the selector will be matched. \n Note that:\
                            \ in addition to the negated version of the Selector (see\
                            \ NotSelector below), the selector expression syntax itself\
                            \ supports negation.  The two types of negation are subtly\
                            \ different. One negates the set of matched endpoints,\
                            \ the other negates the whole match: \n \tSelector = \"\
                            !has(my_label)\" matches packets that are from other Calico-controlled\
                            \ \tendpoints that do not have the label \"my_label\"\
                            . \n \tNotSelector = \"has(my_label)\" matches packets\
                            \ that are not from Calico-controlled \tendpoints that\
                            \ do have the label \"my_label\". \n The effect is that\
                            \ the latter will accept packets from non-Calico sources\
                            \ whereas the former is limited to packets from Calico-controlled\
                            \ endpoints."
                          type: string
                        serviceAccounts:
                          description: ServiceAccounts is an optional field that restricts
                            the rule to only apply to traffic that originates from
                            (or terminates at) a pod running as a matching service
                            account.
                          properties:
                            names:
                              description: Names is an optional field that restricts
                                the rule to only apply to traffic that originates
                                from (or terminates at) a pod running as a service
                                account whose name is in the list.
                              items:
                                type: string
                              type: array
                            selector:
                              description: Selector is an optional field that restricts
                                the rule to only apply to traffic that originates
                                from (or terminates at) a pod running as a service
                                account that matches the given label selector. If
                                both Names and Selector are specified then they are
                                AND'ed.
                              type: string
                          type: object
                      type: object
                    http:
                      description: HTTP contains match criteria that apply to HTTP
                        requests.
                      properties:
                        methods:
                          description: Methods is an optional field that restricts
                            the rule to apply only to HTTP requests that use one of
                            the listed HTTP Methods (e.g. GET, PUT, etc.) Multiple
                            methods are OR'd together.
                          items:
                            type: string
                          type: array
                        paths:
                          description: 'Paths is an optional field that restricts
                            the rule to apply to HTTP requests that use one of the
                            listed HTTP Paths. Multiple paths are OR''d together.
                            e.g: - exact: /foo - prefix: /bar NOTE: Each entry may
                            ONLY specify either a `exact` or a `prefix` match. The
                            validator will check for it.'
                          items:
                            description: 'HTTPPath specifies an HTTP path to match.
                              It may be either of the form: exact: <path>: which matches
                              the path exactly or prefix: <path-prefix>: which matches
                              the path prefix'
                            properties:
                              exact:
                                type: string
                              prefix:
                                type: string
                            type: object
                          type: array
                      type: object
                    icmp:
                      description: ICMP is an optional field that restricts the rule
                        to apply to a specific type and code of ICMP traffic.  This
                        should only be specified if the Protocol field is set to "ICMP"
                        or "ICMPv6".
                      properties:
                        code:
                          description: Match on a specific ICMP code.  If specified,
                            the Type value must also be specified. This is a technical
                            limitation imposed by the kernel's iptables firewall,
                            which Calico uses to enforce the rule.
                          type: integer
                        type:
                          description: Match on a specific ICMP type.  For example
                            a value of 8 refers to ICMP Echo Request (i.e. pings).
                          type: integer
                      type: object
                    ipVersion:
                      description: IPVersion is an optional field that restricts the
                        rule to only match a specific IP version.
                      type: integer
                    metadata:
                      description: Metadata contains additional information for this
                        rule
                      properties:
                        annotations:
                          additionalProperties:
                            type: string
                          description: Annotations is a set of key value pairs that
                            give extra information about the rule
                          type: object
                      type: object
                    notICMP:
                      description: NotICMP is the negated version of the ICMP field.
                      properties:
                        code:
                          description: Match on a specific ICMP code.  If specified,
                            the Type value must also be specified. This is a technical
                            limitation imposed by the kernel's iptables firewall,
                            which Calico uses to enforce the rule.
                          type: integer
                        type:
                          description: Match on a specific ICMP type.  For example
                            a value of 8 refers to ICMP Echo Request (i.e. pings).
                          type: integer
                      type: object
                    notProtocol:
                      anyOf:
                      - type: integer
                      - type: string
                      description: NotProtocol is the negated version of the Protocol
                        field.
                      pattern: ^.*
                      x-kubernetes-int-or-string: true
                    protocol:
                      anyOf:
                      - type: integer
                      - type: string
                      description: "Protocol is an optional field that restricts the\
                        \ rule to only apply to traffic of a specific IP protocol.\
                        \ Required if any of the EntityRules contain Ports (because\
                        \ ports only apply to certain protocols). \n Must be one of\
                        \ these string values: \"TCP\", \"UDP\", \"ICMP\", \"ICMPv6\"\
                        , \"SCTP\", \"UDPLite\" or an integer in the range 1-255."
                      pattern: ^.*
                      x-kubernetes-int-or-string: true
                    source:
                      description: Source contains the match criteria that apply to
                        source entity.
                      properties:
                        namespaceSelector:
                          description: "NamespaceSelector is an optional field that\
                            \ contains a selector expression. Only traffic that originates\
                            \ from (or terminates at) endpoints within the selected\
                            \ namespaces will be matched. When both NamespaceSelector\
                            \ and Selector are defined on the same rule, then only\
                            \ workload endpoints that are matched by both selectors\
                            \ will be selected by the rule. \n For NetworkPolicy,\
                            \ an empty NamespaceSelector implies that the Selector\
                            \ is limited to selecting only workload endpoints in the\
                            \ same namespace as the NetworkPolicy. \n For NetworkPolicy,\
                            \ `global()` NamespaceSelector implies that the Selector\
                            \ is limited to selecting only GlobalNetworkSet or HostEndpoint.\
                            \ \n For GlobalNetworkPolicy, an empty NamespaceSelector\
                            \ implies the Selector applies to workload endpoints across\
                            \ all namespaces."
                          type: string
                        nets:
                          description: Nets is an optional field that restricts the
                            rule to only apply to traffic that originates from (or
                            terminates at) IP addresses in any of the given subnets.
                          items:
                            type: string
                          type: array
                        notNets:
                          description: NotNets is the negated version of the Nets
                            field.
                          items:
                            type: string
                          type: array
                        notPorts:
                          description: NotPorts is the negated version of the Ports
                            field. Since only some protocols have ports, if any ports
                            are specified it requires the Protocol match in the Rule
                            to be set to "TCP" or "UDP".
                          items:
                            anyOf:
                            - type: integer
                            - type: string
                            pattern: ^.*
                            x-kubernetes-int-or-string: true
                          type: array
                        notSelector:
                          description: NotSelector is the negated version of the Selector
                            field.  See Selector field for subtleties with negated
                            selectors.
                          type: string
                        ports:
                          description: "Ports is an optional field that restricts\
                            \ the rule to only apply to traffic that has a source\
                            \ (destination) port that matches one of these ranges/values.\
                            \ This value is a list of integers or strings that represent\
                            \ ranges of ports. \n Since only some protocols have ports,\
                            \ if any ports are specified it requires the Protocol\
                            \ match in the Rule to be set to \"TCP\" or \"UDP\"."
                          items:
                            anyOf:
                            - type: integer
                            - type: string
                            pattern: ^.*
                            x-kubernetes-int-or-string: true
                          type: array
                        selector:
                          description: "Selector is an optional field that contains\
                            \ a selector expression (see Policy for sample syntax).\
                            \  Only traffic that originates from (terminates at) endpoints\
                            \ matching the selector will be matched. \n Note that:\
                            \ in addition to the negated version of the Selector (see\
                            \ NotSelector below), the selector expression syntax itself\
                            \ supports negation.  The two types of negation are subtly\
                            \ different. One negates the set of matched endpoints,\
                            \ the other negates the whole match: \n \tSelector = \"\
                            !has(my_label)\" matches packets that are from other Calico-controlled\
                            \ \tendpoints that do not have the label \"my_label\"\
                            . \n \tNotSelector = \"has(my_label)\" matches packets\
                            \ that are not from Calico-controlled \tendpoints that\
                            \ do have the label \"my_label\". \n The effect is that\
                            \ the latter will accept packets from non-Calico sources\
                            \ whereas the former is limited to packets from Calico-controlled\
                            \ endpoints."
                          type: string
                        serviceAccounts:
                          description: ServiceAccounts is an optional field that restricts
                            the rule to only apply to traffic that originates from
                            (or terminates at) a pod running as a matching service
                            account.
                          properties:
                            names:
                              description: Names is an optional field that restricts
                                the rule to only apply to traffic that originates
                                from (or terminates at) a pod running as a service
                                account whose name is in the list.
                              items:
                                type: string
                              type: array
                            selector:
                              description: Selector is an optional field that restricts
                                the rule to only apply to traffic that originates
                                from (or terminates at) a pod running as a service
                                account that matches the given label selector. If
                                both Names and Selector are specified then they are
                                AND'ed.
                              type: string
                          type: object
                      type: object
                  required:
                  - action
                  type: object
                type: array
              order:
                description: Order is an optional field that specifies the order in
                  which the policy is applied. Policies with higher "order" are applied
                  after those with lower order.  If the order is omitted, it may be
                  considered to be "infinite" - i.e. the policy will be applied last.  Policies
                  with identical order will be applied in alphanumerical order based
                  on the Policy "Name".
                type: number
              selector:
                description: "The selector is an expression used to pick pick out\
                  \ the endpoints that the policy should be applied to. \n Selector\
                  \ expressions follow this syntax: \n \tlabel == \"string_literal\"\
                  \  ->  comparison, e.g. my_label == \"foo bar\" \tlabel != \"string_literal\"\
                  \   ->  not equal; also matches if label is not present \tlabel\
                  \ in { \"a\", \"b\", \"c\", ... }  ->  true if the value of label\
                  \ X is one of \"a\", \"b\", \"c\" \tlabel not in { \"a\", \"b\"\
                  , \"c\", ... }  ->  true if the value of label X is not one of \"\
                  a\", \"b\", \"c\" \thas(label_name)  -> True if that label is present\
                  \ \t! expr -> negation of expr \texpr && expr  -> Short-circuit\
                  \ and \texpr || expr  -> Short-circuit or \t( expr ) -> parens for\
                  \ grouping \tall() or the empty selector -> matches all endpoints.\
                  \ \n Label names are allowed to contain alphanumerics, -, _ and\
                  \ /. String literals are more permissive but they do not support\
                  \ escape characters. \n Examples (with made-up labels): \n \ttype\
                  \ == \"webserver\" && deployment == \"prod\" \ttype in {\"frontend\"\
                  , \"backend\"} \tdeployment != \"dev\" \t! has(label_name)"
                type: string
              serviceAccountSelector:
                description: ServiceAccountSelector is an optional field for an expression
                  used to select a pod based on service accounts.
                type: string
              types:
                description: "Types indicates whether this policy applies to ingress,\
                  \ or to egress, or to both.  When not explicitly specified (and\
                  \ so the value on creation is empty or nil), Calico defaults Types\
                  \ according to what Ingress and Egress are present in the policy.\
                  \  The default is: \n - [ PolicyTypeIngress ], if there are no Egress\
                  \ rules (including the case where there are   also no Ingress rules)\
                  \ \n - [ PolicyTypeEgress ], if there are Egress rules but no Ingress\
                  \ rules \n - [ PolicyTypeIngress, PolicyTypeEgress ], if there are\
                  \ both Ingress and Egress rules. \n When the policy is read back\
                  \ again, Types will always be one of these values, never empty or\
                  \ nil."
                items:
                  description: PolicyType enumerates the possible values of the PolicySpec
                    Types field.
                  type: string
                type: array
            type: object
        type: object
    served: true
    storage: true
status:
  acceptedNames:
    kind: NetworkPolicy
    listKind: NetworkPolicyList
    plural: networkpolicies
    singular: networkpolicy
  conditions:
  - lastTransitionTime: '2021-08-30T18:56:44Z'
    message: no conflicts found
    reason: NoConflicts
    status: 'True'
    type: NamesAccepted
  - lastTransitionTime: '2021-08-30T18:56:44Z'
    message: the initial names have been accepted
    reason: InitialNamesAccepted
    status: 'True'
    type: Established
  storedVersions:
  - v1