You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: pkg/manifests/helm.go
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -44,14 +44,17 @@ type HelmGenerator struct {
44
44
var_Generator=&HelmGenerator{}
45
45
46
46
// Create a new HelmGenerator.
47
-
// Deprecation warning: the parameters name, client and discoveryClient are ignored (can be passed as empty resp. nil) and will be removed in a future release;
47
+
// Deprecation warning: the parameters name and discoveryClient are ignored (can be passed as empty resp. nil) and will be removed in a future release;
48
48
// the according values will be retrieved from the context passed to Generate().
49
+
// The parameter client should be a client for the local cluster (i.e. the cluster where the component object resides);
50
+
// it is used by the localLookup and mustLocalLookup template functions.
49
51
// If fsys is nil, the local operating system filesystem will be used, and chartPath can be an absolute or relative path (in the latter case it will be considered
50
52
// relative to the current working directory). If fsys is non-nil, then chartPath should be a relative path; if an absolute path is supplied, it will be turned
Copy file name to clipboardExpand all lines: pkg/manifests/kustomize.go
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,8 @@ type KustomizeGenerator struct {
41
41
var_Generator=&KustomizeGenerator{}
42
42
43
43
// Create a new KustomizeGenerator.
44
-
// Deprecation warning: the parameter client is ignored (can be passed as nil) and will be removed in a future release;
45
-
// the according value will be retrieved from the context passed to Generate().
44
+
// The parameter client should be a client for the local cluster (i.e. the cluster where the component object resides);
45
+
// it is used by the localLookup and mustLocalLookup template functions.
46
46
// If fsys is nil, the local operating system filesystem will be used, and kustomizationPath can be an absolute or relative path (in the latter case it will be considered
47
47
// relative to the current working directory). If fsys is non-nil, then kustomizationPath should be a relative path; if an absolute path is supplied, it will be turned
48
48
// An empty kustomizationPath will be treated like ".".
Copy file name to clipboardExpand all lines: website/content/en/docs/generators/helm.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,8 @@ Here:
25
25
-`name` is deprecated and will be removed in future releases; it can be passed as empty string.
26
26
-`fsys` must be an implementation of `fs.FS`, such as `embed.FS`; or it can be passed as nil; then, all file operations will be executed on the current OS filesystem.
27
27
-`chartPath` is the path containing the used Helm chart; if `fsys` was provided, this has to be a relative path; otherwise, it will be interpreted with respect to the OS filesystem (as an absolute path, or relative to the current working directory of the controller).
28
-
-`client` and `discoveryClient` are deprecated and will be removed in future releases; they can be passed as nil.
28
+
-`client` should be a client for the local cluster (i.e. the cluster where the component object exists).
29
+
-`discoveryClient` is deprecated and will be removed in future releases; they can be passed as nil.
29
30
30
31
It should be noted that `HelmGenerator` does not use the Helm SDK; instead it tries to emulate the Helm behavior as good as possible.
31
32
A few differences and restrictions arise from this:
Copy file name to clipboardExpand all lines: website/content/en/docs/generators/kustomize.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,4 +32,4 @@ Here:
32
32
- `fsys` must be an implementation of `fs.FS`, such as `embed.FS`; or it can be passed as nil; then, all file operations will be executed on the current OS filesystem.
33
33
- `kustomizationPath` is the path containing the (potentially templatized) kustomatization; if `fsys` was provided, this has to be a relative path; otherwise, it will be interpreted with respect to the OS filesystem (as an absolute path, or relative to the current working directory of the controller).
34
34
- `templateSuffx` is optional; if empty, all files under `kustomizationPath` will be subject to go templating; otherwise, only files matching the specified suffix will be considered as templates.
35
-
- `client`is deprecated and will be removed in future releases; it can be passed as nil.
35
+
- `client`should be a client for the local cluster (i.e. the cluster where the component object exists).
0 commit comments