|
1 | | -# Adds namespace to all resources. |
2 | | -namespace: source-watcher-system |
3 | | - |
4 | | -# Value of this field is prepended to the |
5 | | -# names of all resources, e.g. a deployment named |
6 | | -# "wordpress" becomes "alices-wordpress". |
7 | | -# Note that it should also match with the prefix (text before '-') of the namespace |
8 | | -# field above. |
9 | | -namePrefix: source-watcher- |
10 | | - |
11 | | -# Labels to add to all resources and selectors. |
12 | | -#commonLabels: |
13 | | -# someName: someValue |
14 | | - |
15 | | -bases: |
16 | | -- ../crd |
17 | | -- ../rbac |
18 | | -- ../manager |
19 | | -# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in |
20 | | -# crd/kustomization.yaml |
21 | | -#- ../webhook |
22 | | -# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. 'WEBHOOK' components are required. |
23 | | -#- ../certmanager |
24 | | -# [PROMETHEUS] To enable prometheus monitor, uncomment all sections with 'PROMETHEUS'. |
25 | | -#- ../prometheus |
26 | | - |
27 | | -patchesStrategicMerge: |
28 | | - # Protect the /metrics endpoint by putting it behind auth. |
29 | | - # If you want your controller-manager to expose the /metrics |
30 | | - # endpoint w/o any authn/z, please comment the following line. |
31 | | -- manager_auth_proxy_patch.yaml |
32 | | - |
33 | | -# [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in |
34 | | -# crd/kustomization.yaml |
35 | | -#- manager_webhook_patch.yaml |
36 | | - |
37 | | -# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER'. |
38 | | -# Uncomment 'CERTMANAGER' sections in crd/kustomization.yaml to enable the CA injection in the admission webhooks. |
39 | | -# 'CERTMANAGER' needs to be enabled to use ca injection |
40 | | -#- webhookcainjection_patch.yaml |
41 | | - |
42 | | -# the following config is for teaching kustomize how to do var substitution |
43 | | -vars: |
44 | | -# [CERTMANAGER] To enable cert-manager, uncomment all sections with 'CERTMANAGER' prefix. |
45 | | -#- name: CERTIFICATE_NAMESPACE # namespace of the certificate CR |
46 | | -# objref: |
47 | | -# kind: Certificate |
48 | | -# group: cert-manager.io |
49 | | -# version: v1alpha2 |
50 | | -# name: serving-cert # this name should match the one in certificate.yaml |
51 | | -# fieldref: |
52 | | -# fieldpath: metadata.namespace |
53 | | -#- name: CERTIFICATE_NAME |
54 | | -# objref: |
55 | | -# kind: Certificate |
56 | | -# group: cert-manager.io |
57 | | -# version: v1alpha2 |
58 | | -# name: serving-cert # this name should match the one in certificate.yaml |
59 | | -#- name: SERVICE_NAMESPACE # namespace of the service |
60 | | -# objref: |
61 | | -# kind: Service |
62 | | -# version: v1 |
63 | | -# name: webhook-service |
64 | | -# fieldref: |
65 | | -# fieldpath: metadata.namespace |
66 | | -#- name: SERVICE_NAME |
67 | | -# objref: |
68 | | -# kind: Service |
69 | | -# version: v1 |
70 | | -# name: webhook-service |
| 1 | +apiVersion: kustomize.config.k8s.io/v1beta1 |
| 2 | +kind: Kustomization |
| 3 | +namespace: source-system |
| 4 | +resources: |
| 5 | + - ../rbac |
| 6 | + - ../manager |
| 7 | + - github.com/fluxcd/source-controller/config//crd?ref=v0.2.0 |
| 8 | + - github.com/fluxcd/source-controller/config//manager?ref=v0.2.0 |
| 9 | + - namespace.yaml |
0 commit comments