github.com/loafoe/helm@v1.0.1/cmd/helm/testdata/testcharts/object-order/templates/01-a.yml (about)

     1  # 1
     2  kind: NetworkPolicy
     3  apiVersion: networking.k8s.io/v1
     4  metadata:
     5    name: first
     6  spec:
     7    podSelector: {}
     8    policyTypes:
     9      - Egress
    10      - Ingress
    11  
    12  ---
    13  
    14  # 2
    15  apiVersion: networking.k8s.io/v1
    16  kind: NetworkPolicy
    17  metadata:
    18    name: second
    19  spec:
    20    podSelector: {}
    21    policyTypes:
    22      - Egress
    23      - Ingress
    24  
    25  ---
    26  
    27  # 3
    28  apiVersion: networking.k8s.io/v1
    29  kind: NetworkPolicy
    30  metadata:
    31    name: third
    32  spec:
    33    podSelector: {}
    34    policyTypes:
    35      - Egress
    36      - Ingress
    37  
    38  ---
    39  
    40  # 4 (Deployment should come after all NetworkPolicy manifests, since 'helm template' outputs in install order)
    41  apiVersion: apps/v1
    42  kind: Deployment
    43  metadata:
    44    name: fourth
    45  spec:
    46    selector:
    47      matchLabels:
    48        pod: fourth
    49    replicas: 1
    50    template:
    51      metadata:
    52        labels:
    53          pod: fourth
    54      spec:
    55        containers:
    56          - name: hello-world
    57            image: gcr.io/google-samples/node-hello:1.0