github.com/loafoe/helm@v1.0.1/cmd/helm/testdata/output/template-with-crds.txt (about)

     1  ---
     2  # Source: crds/crdA.yaml
     3  apiVersion: apiextensions.k8s.io/v1beta1
     4  kind: CustomResourceDefinition
     5  metadata:
     6    name: testcrds.testcrdgroups.example.com
     7  spec:
     8    group: testcrdgroups.example.com
     9    version: v1alpha1
    10    names:
    11      kind: TestCRD
    12      listKind: TestCRDList
    13      plural: testcrds
    14      shortNames:
    15        - tc
    16      singular: authconfig
    17  
    18  ---
    19  # Source: subchart/templates/subdir/serviceaccount.yaml
    20  apiVersion: v1
    21  kind: ServiceAccount
    22  metadata:
    23    name: subchart-sa
    24  ---
    25  # Source: subchart/templates/subdir/role.yaml
    26  apiVersion: rbac.authorization.k8s.io/v1
    27  kind: Role
    28  metadata:
    29    name: subchart-role
    30  rules:
    31  - apiGroups: [""]
    32    resources: ["pods"]
    33    verbs: ["get","list","watch"]
    34  ---
    35  # Source: subchart/templates/subdir/rolebinding.yaml
    36  apiVersion: rbac.authorization.k8s.io/v1
    37  kind: RoleBinding
    38  metadata:
    39    name: subchart-binding
    40  roleRef:
    41    apiGroup: rbac.authorization.k8s.io
    42    kind: Role
    43    name: subchart-role
    44  subjects:
    45  - kind: ServiceAccount
    46    name: subchart-sa
    47    namespace: default
    48  ---
    49  # Source: subchart/charts/subcharta/templates/service.yaml
    50  apiVersion: v1
    51  kind: Service
    52  metadata:
    53    name: subcharta
    54    labels:
    55      helm.sh/chart: "subcharta-0.1.0"
    56  spec:
    57    type: ClusterIP
    58    ports:
    59    - port: 80
    60      targetPort: 80
    61      protocol: TCP
    62      name: apache
    63    selector:
    64      app.kubernetes.io/name: subcharta
    65  ---
    66  # Source: subchart/charts/subchartb/templates/service.yaml
    67  apiVersion: v1
    68  kind: Service
    69  metadata:
    70    name: subchartb
    71    labels:
    72      helm.sh/chart: "subchartb-0.1.0"
    73  spec:
    74    type: ClusterIP
    75    ports:
    76    - port: 80
    77      targetPort: 80
    78      protocol: TCP
    79      name: nginx
    80    selector:
    81      app.kubernetes.io/name: subchartb
    82  ---
    83  # Source: subchart/templates/service.yaml
    84  apiVersion: v1
    85  kind: Service
    86  metadata:
    87    name: subchart
    88    labels:
    89      helm.sh/chart: "subchart-0.1.0"
    90      app.kubernetes.io/instance: "release-name"
    91      kube-version/major: "1"
    92      kube-version/minor: "20"
    93      kube-version/version: "v1.20.0"
    94  spec:
    95    type: ClusterIP
    96    ports:
    97    - port: 80
    98      targetPort: 80
    99      protocol: TCP
   100      name: nginx
   101    selector:
   102      app.kubernetes.io/name: subchart
   103  ---
   104  # Source: subchart/templates/tests/test-config.yaml
   105  apiVersion: v1
   106  kind: ConfigMap
   107  metadata:
   108    name: "release-name-testconfig"
   109    annotations:
   110      "helm.sh/hook": test
   111  data:
   112    message: Hello World
   113  ---
   114  # Source: subchart/templates/tests/test-nothing.yaml
   115  apiVersion: v1
   116  kind: Pod
   117  metadata:
   118    name: "release-name-test"
   119    annotations:
   120      "helm.sh/hook": test
   121  spec:
   122    containers:
   123      - name: test
   124        image: "alpine:latest"
   125        envFrom:
   126          - configMapRef:
   127              name: "release-name-testconfig"
   128        command:
   129          - echo
   130          - "$message"
   131    restartPolicy: Never