99
99
type: list
100
100
elements: str
101
101
version_added: 2.4.0
102
+ validate:
103
+ description:
104
+ - Validate your manifests against the Kubernetes cluster you are currently pointing at. This is the same validation performed on an install.
105
+ required: false
106
+ type: bool
107
+ default: false
108
+ version_added: 2.5.0
102
109
values_files:
103
110
description:
104
111
- Value files to pass to chart.
@@ -226,6 +233,7 @@ def template(
226
233
release_values = None ,
227
234
values_files = None ,
228
235
include_crds = False ,
236
+ validate = False ,
229
237
set_values = None ,
230
238
):
231
239
cmd += " template "
@@ -270,6 +278,9 @@ def template(
270
278
if include_crds :
271
279
cmd += " --include-crds"
272
280
281
+ if validate :
282
+ cmd += " --validate"
283
+
273
284
if set_values :
274
285
cmd += " " + set_values
275
286
@@ -291,6 +302,7 @@ def main():
291
302
release_namespace = dict (type = "str" ),
292
303
release_values = dict (type = "dict" , default = {}, aliases = ["values" ]),
293
304
show_only = dict (type = "list" , default = [], elements = "str" ),
305
+ validate = dict (type = "bool" , default = False ),
294
306
values_files = dict (type = "list" , default = [], elements = "str" ),
295
307
update_repo_cache = dict (type = "bool" , default = False ),
296
308
set_values = dict (type = "list" , elements = "dict" ),
@@ -310,6 +322,7 @@ def main():
310
322
show_only = module .params .get ("show_only" )
311
323
release_namespace = module .params .get ("release_namespace" )
312
324
release_values = module .params .get ("release_values" )
325
+ validate = module .params .get ("validate" )
313
326
values_files = module .params .get ("values_files" )
314
327
update_repo_cache = module .params .get ("update_repo_cache" )
315
328
set_values = module .params .get ("set_values" )
@@ -341,6 +354,7 @@ def main():
341
354
show_only = show_only ,
342
355
values_files = values_files ,
343
356
include_crds = include_crds ,
357
+ validate = validate ,
344
358
set_values = set_values_args ,
345
359
)
346
360
0 commit comments