Skip to content

Commit a31eb7c

Browse files
Add bundle installer for sample projects in docs
Introduces a bundle installer for sample projects, with config/default/kustomization.yaml settings uncommented to ensure complete bundle generation. This enhances review visibility by showing the final state of patches and Kustomize configurations directly in the generated bundle. Motivation: Makes reviews more efficient by displaying final configurations directly in the bundle, with only relevant settings uncommented in config/default/kustomization.yaml for each sample.
1 parent 324e0e4 commit a31eb7c

File tree

13 files changed

+12905
-88
lines changed

13 files changed

+12905
-88
lines changed

docs/book/src/cronjob-tutorial/testdata/project/config/default/kustomization.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -110,37 +110,37 @@ replacements:
110110
index: 1
111111
create: true
112112

113-
- source: # Uncomment the following block if you have a ConversionWebhook (--conversion)
114-
kind: Certificate
115-
group: cert-manager.io
116-
version: v1
117-
name: serving-cert # This name should match the one in certificate.yaml
118-
fieldPath: .metadata.namespace # Namespace of the certificate CR
119-
targets:
120-
- select:
121-
kind: CustomResourceDefinition
122-
fieldPaths:
123-
- .metadata.annotations.[cert-manager.io/inject-ca-from]
124-
options:
125-
delimiter: '/'
126-
index: 0
127-
create: true
128-
- source:
129-
kind: Certificate
130-
group: cert-manager.io
131-
version: v1
132-
name: serving-cert # This name should match the one in certificate.yaml
133-
fieldPath: .metadata.name
134-
targets:
135-
- select:
136-
kind: CustomResourceDefinition
137-
fieldPaths:
138-
- .metadata.annotations.[cert-manager.io/inject-ca-from]
139-
options:
140-
delimiter: '/'
141-
index: 1
142-
create: true
143-
113+
# - source: # Uncomment the following block if you have a ConversionWebhook (--conversion)
114+
# kind: Certificate
115+
# group: cert-manager.io
116+
# version: v1
117+
# name: serving-cert # This name should match the one in certificate.yaml
118+
# fieldPath: .metadata.namespace # Namespace of the certificate CR
119+
# targets:
120+
# - select:
121+
# kind: CustomResourceDefinition
122+
# fieldPaths:
123+
# - .metadata.annotations.[cert-manager.io/inject-ca-from]
124+
# options:
125+
# delimiter: '/'
126+
# index: 0
127+
# create: true
128+
# - source:
129+
# kind: Certificate
130+
# group: cert-manager.io
131+
# version: v1
132+
# name: serving-cert # This name should match the one in certificate.yaml
133+
# fieldPath: .metadata.name
134+
# targets:
135+
# - select:
136+
# kind: CustomResourceDefinition
137+
# fieldPaths:
138+
# - .metadata.annotations.[cert-manager.io/inject-ca-from]
139+
# options:
140+
# delimiter: '/'
141+
# index: 1
142+
# create: true
143+
#
144144
- source: # Uncomment the following block if you enable cert-manager
145145
kind: Service
146146
version: v1
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
11
resources:
22
- manager.yaml
3+
apiVersion: kustomize.config.k8s.io/v1beta1
4+
kind: Kustomization
5+
images:
6+
- name: controller
7+
newName: controller
8+
newTag: latest

0 commit comments

Comments
 (0)