sigs.k8s.io/cluster-api-provider-azure@v1.17.0/config/capz/kustomization.yaml (about)

     1  apiVersion: kustomize.config.k8s.io/v1beta1
     2  kind: Kustomization
     3  namespace: capz-system
     4  namePrefix: capz-
     5  
     6  # Labels to add to all resources and selectors.
     7  labels:
     8  - includeSelectors: true
     9    pairs:
    10      cluster.x-k8s.io/provider: infrastructure-azure
    11  
    12  resources:
    13  - namespace.yaml
    14  - credentials.yaml
    15  - ../crd
    16  - ../rbac
    17  - ../manager
    18  - ../webhook
    19  - ../certmanager
    20  
    21  patches:
    22  - path: manager_image_patch.yaml
    23  - path: manager_pull_policy.yaml
    24  - path: manager_credentials_patch.yaml
    25  - path: manager_webhook_patch.yaml
    26  - path: validatingwebhookcainjection_patch.yaml
    27  - path: mutatingwebhookcainjection_patch.yaml
    28  
    29  configurations:
    30  - kustomizeconfig.yaml
    31  
    32  replacements:
    33  - source: # CERTIFICATE_NAMESPACE
    34      fieldPath: metadata.namespace
    35      kind: Certificate
    36      name: serving-cert
    37    targets:
    38    - fieldPaths:
    39      - metadata.annotations.[cert-manager.io/inject-ca-from]
    40      options:
    41        delimiter: /
    42      select:
    43        annotationSelector: cert-manager.io/inject-ca-from
    44  - source: # CERTIFICATE_NAME
    45      kind: Certificate
    46      name: serving-cert
    47    targets:
    48    - fieldPaths:
    49      - metadata.annotations.[cert-manager.io/inject-ca-from]
    50      options:
    51        delimiter: /
    52        index: 1
    53      select:
    54        annotationSelector: cert-manager.io/inject-ca-from
    55  - source: # SERVICE_NAMESPACE
    56      fieldPath: metadata.namespace
    57      kind: Service
    58      name: webhook-service
    59    targets:
    60    - fieldPaths:
    61      - spec.dnsNames.0
    62      options:
    63        delimiter: .
    64        index: 1
    65      select:
    66        group: cert-manager.io
    67        kind: Certificate
    68        name: serving-cert
    69        namespace: system
    70        version: v1
    71    - fieldPaths:
    72      - spec.dnsNames.1
    73      options:
    74        delimiter: .
    75        index: 1
    76      select:
    77        group: cert-manager.io
    78        kind: Certificate
    79        name: serving-cert
    80        namespace: system
    81        version: v1
    82  - source: # SERVICE_NAME
    83      kind: Service
    84      name: webhook-service
    85    targets:
    86    - fieldPaths:
    87      - spec.dnsNames.0
    88      options:
    89        delimiter: .
    90      select:
    91        group: cert-manager.io
    92        kind: Certificate
    93        name: serving-cert
    94        namespace: system
    95        version: v1
    96    - fieldPaths:
    97      - spec.dnsNames.1
    98      options:
    99        delimiter: .
   100      select:
   101        group: cert-manager.io
   102        kind: Certificate
   103        name: serving-cert
   104        namespace: system
   105        version: v1
   106    - fieldPaths:
   107      - spec.secretName
   108      options:
   109        delimiter: '-'
   110      select:
   111        group: cert-manager.io
   112        kind: Certificate
   113        name: serving-cert
   114        namespace: system
   115        version: v1
   116    - fieldPaths:
   117      - spec.template.spec.volumes.0.secret.secretName
   118      options:
   119        delimiter: '-'
   120      select:
   121        name: controller-manager
   122        namespace: system