-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adds generic kubectl command * update name * adds readme docs * update desc * update desc
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -271,6 +271,29 @@ Copy a file to the blue/green fog-ingest toolbox pod. | |
| `src` | `string` | source in action context | | ||
| `dst` | `string` | destination in toolbox pod | | ||
|
||
### kubectl-exec | ||
|
||
Run commands that have access to the specified rancher cluster | ||
|
||
```yaml | ||
- name: Run kubectl diff to output diff | ||
uses: mobilecoinofficial/[email protected] | ||
with: | ||
action: kubectl-exec | ||
rancher_cluster: ${{ secrets.RANCHER_CLUSTER }} | ||
rancher_url: ${{ secrets.RANCHER_URL }} | ||
rancher_token: ${{ secrets.RANCHER_TOKEN }} | ||
command: | | ||
helm template . | k diff -f - | ||
``` | ||
|
||
| with | type | description | | ||
| --- | --- | --- | | ||
| `command` | `string` | command to run on the toolbox pod | | ||
| `rancher_cluster` | `string` | Target cluster name | | ||
| `rancher_url` | `string` | Rancher Server URL | | ||
| `rancher_token` | `string` | Rancher API Token | | ||
|
||
### toolbox-exec | ||
|
||
Run a command on the blue/green fog-ingest toolbox pod. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters