Debian Codegraph @

ansible_collections/kubernetes/core/docs/kubernetes.core.helm_plugin_module.rst

raw
1 .. _kubernetes.core.helm_plugin_module:
2
3
4 ***************************
5 kubernetes.core.helm_plugin
6 ***************************
7
8 **Manage Helm plugins**
9
10
11 Version added: 1.0.0
12
13 .. contents::
14 :local:
15 :depth: 1
16
17
18 Synopsis
19 --------
20 - Manages Helm plugins.
21
22
23
24 Requirements
25 ------------
26 The below requirements are needed on the host that executes this module.
27
28 - helm >= 3.0.0 (https://github.com/helm/helm/releases)
29
30
31 Parameters
32 ----------
33
34 .. raw:: html
35
36 <table border=0 cellpadding=0 class="documentation-table">
37 <tr>
38 <th colspan="1">Parameter</th>
39 <th>Choices/<font color="blue">Defaults</font></th>
40 <th width="100%">Comments</th>
41 </tr>
42 <tr>
43 <td colspan="1">
44 <div class="ansibleOptionAnchor" id="parameter-"></div>
45 <b>api_key</b>
46 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
47 <div style="font-size: small">
48 <span style="color: purple">string</span>
49 </div>
50 <div style="font-style: italic; font-size: small; color: darkgreen">added in 1.2.0</div>
51 </td>
52 <td>
53 </td>
54 <td>
55 <div>Token used to authenticate with the API. Can also be specified via <code>K8S_AUTH_API_KEY</code> environment variable.</div>
56 </td>
57 </tr>
58 <tr>
59 <td colspan="1">
60 <div class="ansibleOptionAnchor" id="parameter-"></div>
61 <b>binary_path</b>
62 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
63 <div style="font-size: small">
64 <span style="color: purple">path</span>
65 </div>
66 </td>
67 <td>
68 </td>
69 <td>
70 <div>The path of a helm binary to use.</div>
71 </td>
72 </tr>
73 <tr>
74 <td colspan="1">
75 <div class="ansibleOptionAnchor" id="parameter-"></div>
76 <b>ca_cert</b>
77 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
78 <div style="font-size: small">
79 <span style="color: purple">path</span>
80 </div>
81 <div style="font-style: italic; font-size: small; color: darkgreen">added in 1.2.0</div>
82 </td>
83 <td>
84 </td>
85 <td>
86 <div>Path to a CA certificate used to authenticate with the API. The full certificate chain must be provided to avoid certificate validation errors. Can also be specified via <code>K8S_AUTH_SSL_CA_CERT</code> environment variable.</div>
87 <div style="font-size: small; color: darkgreen"><br/>aliases: ssl_ca_cert</div>
88 </td>
89 </tr>
90 <tr>
91 <td colspan="1">
92 <div class="ansibleOptionAnchor" id="parameter-"></div>
93 <b>context</b>
94 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
95 <div style="font-size: small">
96 <span style="color: purple">string</span>
97 </div>
98 </td>
99 <td>
100 </td>
101 <td>
102 <div>Helm option to specify which kubeconfig context to use.</div>
103 <div>If the value is not specified in the task, the value of environment variable <code>K8S_AUTH_CONTEXT</code> will be used instead.</div>
104 <div style="font-size: small; color: darkgreen"><br/>aliases: kube_context</div>
105 </td>
106 </tr>
107 <tr>
108 <td colspan="1">
109 <div class="ansibleOptionAnchor" id="parameter-"></div>
110 <b>host</b>
111 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
112 <div style="font-size: small">
113 <span style="color: purple">string</span>
114 </div>
115 <div style="font-style: italic; font-size: small; color: darkgreen">added in 1.2.0</div>
116 </td>
117 <td>
118 </td>
119 <td>
120 <div>Provide a URL for accessing the API. Can also be specified via <code>K8S_AUTH_HOST</code> environment variable.</div>
121 </td>
122 </tr>
123 <tr>
124 <td colspan="1">
125 <div class="ansibleOptionAnchor" id="parameter-"></div>
126 <b>kubeconfig</b>
127 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
128 <div style="font-size: small">
129 <span style="color: purple">raw</span>
130 </div>
131 </td>
132 <td>
133 </td>
134 <td>
135 <div>Helm option to specify kubeconfig path to use.</div>
136 <div>If the value is not specified in the task, the value of environment variable <code>K8S_AUTH_KUBECONFIG</code> will be used instead.</div>
137 <div>The configuration can be provided as dictionary. Added in version 2.4.0.</div>
138 <div style="font-size: small; color: darkgreen"><br/>aliases: kubeconfig_path</div>
139 </td>
140 </tr>
141 <tr>
142 <td colspan="1">
143 <div class="ansibleOptionAnchor" id="parameter-"></div>
144 <b>plugin_name</b>
145 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
146 <div style="font-size: small">
147 <span style="color: purple">string</span>
148 </div>
149 </td>
150 <td>
151 </td>
152 <td>
153 <div>Name of Helm plugin.</div>
154 <div>Required only if <code>state=absent</code> or <code>state=latest</code>.</div>
155 </td>
156 </tr>
157 <tr>
158 <td colspan="1">
159 <div class="ansibleOptionAnchor" id="parameter-"></div>
160 <b>plugin_path</b>
161 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
162 <div style="font-size: small">
163 <span style="color: purple">string</span>
164 </div>
165 </td>
166 <td>
167 </td>
168 <td>
169 <div>Plugin path to a plugin on your local file system or a url of a remote VCS repo.</div>
170 <div>If plugin path from file system is provided, make sure that tar is present on remote machine and not on Ansible controller.</div>
171 <div>Required only if <code>state=present</code>.</div>
172 </td>
173 </tr>
174 <tr>
175 <td colspan="1">
176 <div class="ansibleOptionAnchor" id="parameter-"></div>
177 <b>plugin_version</b>
178 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
179 <div style="font-size: small">
180 <span style="color: purple">string</span>
181 </div>
182 <div style="font-style: italic; font-size: small; color: darkgreen">added in 2.3.0</div>
183 </td>
184 <td>
185 </td>
186 <td>
187 <div>Plugin version to install. If this is not specified, the latest version is installed.</div>
188 <div>Ignored when <code>state=absent</code> or <code>state=latest</code>.</div>
189 </td>
190 </tr>
191 <tr>
192 <td colspan="1">
193 <div class="ansibleOptionAnchor" id="parameter-"></div>
194 <b>state</b>
195 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
196 <div style="font-size: small">
197 <span style="color: purple">string</span>
198 </div>
199 </td>
200 <td>
201 <ul style="margin: 0; padding: 0"><b>Choices:</b>
202 <li>absent</li>
203 <li><div style="color: blue"><b>present</b>&nbsp;&larr;</div></li>
204 <li>latest</li>
205 </ul>
206 </td>
207 <td>
208 <div>If <code>state=present</code> the Helm plugin will be installed.</div>
209 <div>If <code>state=latest</code> the Helm plugin will be updated. Added in version 2.3.0.</div>
210 <div>If <code>state=absent</code> the Helm plugin will be removed.</div>
211 </td>
212 </tr>
213 <tr>
214 <td colspan="1">
215 <div class="ansibleOptionAnchor" id="parameter-"></div>
216 <b>validate_certs</b>
217 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
218 <div style="font-size: small">
219 <span style="color: purple">boolean</span>
220 </div>
221 <div style="font-style: italic; font-size: small; color: darkgreen">added in 1.2.0</div>
222 </td>
223 <td>
224 <ul style="margin: 0; padding: 0"><b>Choices:</b>
225 <li>no</li>
226 <li><div style="color: blue"><b>yes</b>&nbsp;&larr;</div></li>
227 </ul>
228 </td>
229 <td>
230 <div>Whether or not to verify the API server&#x27;s SSL certificates. Can also be specified via <code>K8S_AUTH_VERIFY_SSL</code> environment variable.</div>
231 <div style="font-size: small; color: darkgreen"><br/>aliases: verify_ssl</div>
232 </td>
233 </tr>
234 <tr>
235 <td colspan="1">
236 <div class="ansibleOptionAnchor" id="parameter-"></div>
237 <b>verify</b>
238 <a class="ansibleOptionLink" href="#parameter-" title="Permalink to this option"></a>
239 <div style="font-size: small">
240 <span style="color: purple">boolean</span>
241 </div>
242 <div style="font-style: italic; font-size: small; color: darkgreen">added in 6.4.0</div>
243 </td>
244 <td>
245 <ul style="margin: 0; padding: 0"><b>Choices:</b>
246 <li>no</li>
247 <li><div style="color: blue"><b>yes</b>&nbsp;&larr;</div></li>
248 </ul>
249 </td>
250 <td>
251 <div>Verify the plugin signature before installing.</div>
252 <div>This option requires helm version &gt;= 4.0.0</div>
253 <div>Used with <em>state=present</em>.</div>
254 </td>
255 </tr>
256 </table>
257 <br/>
258
259
260
261
262 Examples
263 --------
264
265 .. code-block:: yaml
266
267 - name: Install Helm env plugin
268 kubernetes.core.helm_plugin:
269 plugin_path: https://github.com/adamreese/helm-env
270 state: present
271
272 - name: Install Helm plugin from local filesystem
273 kubernetes.core.helm_plugin:
274 plugin_path: https://domain/path/to/plugin.tar.gz
275 state: present
276
277 - name: Remove Helm env plugin
278 kubernetes.core.helm_plugin:
279 plugin_name: env
280 state: absent
281
282 - name: Install Helm plugin with a specific version
283 kubernetes.core.helm_plugin:
284 plugin_version: 2.0.1
285 plugin_path: https://domain/path/to/plugin.tar.gz
286 state: present
287
288 - name: Update Helm plugin
289 kubernetes.core.helm_plugin:
290 plugin_name: secrets
291 state: latest
292
293
294
295 Return Values
296 -------------
297 Common return values are documented `here <https://docs.ansible.com/projects/ansible/latest/reference_appendices/common_return_values.html#common-return-values>`_, the following are the fields unique to this module:
298
299 .. raw:: html
300
301 <table border=0 cellpadding=0 class="documentation-table">
302 <tr>
303 <th colspan="1">Key</th>
304 <th>Returned</th>
305 <th width="100%">Description</th>
306 </tr>
307 <tr>
308 <td colspan="1">
309 <div class="ansibleOptionAnchor" id="return-"></div>
310 <b>command</b>
311 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
312 <div style="font-size: small">
313 <span style="color: purple">string</span>
314 </div>
315 </td>
316 <td>always</td>
317 <td>
318 <div>Full `helm` command built by this module, in case you want to re-run the command outside the module or debug a problem.</div>
319 <br/>
320 <div style="font-size: smaller"><b>Sample:</b></div>
321 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">helm plugin list ...</div>
322 </td>
323 </tr>
324 <tr>
325 <td colspan="1">
326 <div class="ansibleOptionAnchor" id="return-"></div>
327 <b>msg</b>
328 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
329 <div style="font-size: small">
330 <span style="color: purple">string</span>
331 </div>
332 </td>
333 <td>always</td>
334 <td>
335 <div>Info about successful command</div>
336 <br/>
337 <div style="font-size: smaller"><b>Sample:</b></div>
338 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">Plugin installed successfully</div>
339 </td>
340 </tr>
341 <tr>
342 <td colspan="1">
343 <div class="ansibleOptionAnchor" id="return-"></div>
344 <b>rc</b>
345 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
346 <div style="font-size: small">
347 <span style="color: purple">integer</span>
348 </div>
349 </td>
350 <td>always</td>
351 <td>
352 <div>Helm plugin command return code</div>
353 <br/>
354 <div style="font-size: smaller"><b>Sample:</b></div>
355 <div style="font-size: smaller; color: blue; word-wrap: break-word; word-break: break-all;">1</div>
356 </td>
357 </tr>
358 <tr>
359 <td colspan="1">
360 <div class="ansibleOptionAnchor" id="return-"></div>
361 <b>stderr</b>
362 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
363 <div style="font-size: small">
364 <span style="color: purple">string</span>
365 </div>
366 </td>
367 <td>always</td>
368 <td>
369 <div>Full `helm` command stderr, in case you want to display it or examine the event log</div>
370 <br/>
371 </td>
372 </tr>
373 <tr>
374 <td colspan="1">
375 <div class="ansibleOptionAnchor" id="return-"></div>
376 <b>stdout</b>
377 <a class="ansibleOptionLink" href="#return-" title="Permalink to this return value"></a>
378 <div style="font-size: small">
379 <span style="color: purple">string</span>
380 </div>
381 </td>
382 <td>always</td>
383 <td>
384 <div>Full `helm` command stdout, in case you want to display it or examine the event log</div>
385 <br/>
386 </td>
387 </tr>
388 </table>
389 <br/><br/>
390
391
392 Status
393 ------
394
395
396 Authors
397 ~~~~~~~
398
399 - Abhijeet Kasurde (@Akasurde)