-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CR-4773 - implemented
runtime delete
(#17)
* implemented `runtime delete` * name each trigger differently * fix crbs subject.namespace * set events and appset kustomization to specific hash
- Loading branch information
Showing
11 changed files
with
189 additions
and
47 deletions.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VERSION=v0.0.20 | ||
VERSION=v0.0.21 | ||
OUT_DIR=dist | ||
YEAR?=$(shell date +"%Y") | ||
|
||
|
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
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
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
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
## cli-v2 runtime delete | ||
|
||
Deletes a Codefresh runtime | ||
|
||
``` | ||
cli-v2 runtime delete [runtime_name] [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# To run this command you need to create a personal access token for your git provider | ||
# and provide it using: | ||
export GIT_TOKEN=<token> | ||
# or with the flag: | ||
--git-token <token> | ||
# Adds a new runtime | ||
cli-v2 runtime delete runtime-name --repo gitops_repo | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--as string Username to impersonate for the operation | ||
--as-group stringArray Group to impersonate for the operation, this flag can be repeated to specify multiple groups. | ||
--cache-dir string Default cache directory (default "/home/user/.kube/cache") | ||
--certificate-authority string Path to a cert file for the certificate authority | ||
--client-certificate string Path to a client certificate file for TLS | ||
--client-key string Path to a client key file for TLS | ||
--cluster string The name of the kubeconfig cluster to use | ||
--context string The name of the kubeconfig context to use | ||
-t, --git-token string Your git provider api token [GIT_TOKEN] | ||
-h, --help help for delete | ||
--insecure-skip-tls-verify If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure | ||
--kubeconfig string Path to the kubeconfig file to use for CLI requests. | ||
-n, --namespace string If present, the namespace scope for this CLI request | ||
--repo string Repository URL [GIT_REPO] | ||
-s, --server string The address and port of the Kubernetes API server | ||
--tls-server-name string Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used | ||
--token string Bearer token for authentication to the API server | ||
--user string The name of the kubeconfig user to use | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--auth-context string Run the next command using a specific authentication context | ||
--cfconfig string Custom path for authentication contexts config file (default "/home/user") | ||
--insecure Disable certificate validation for TLS connections (e.g. to g.codefresh.io) | ||
--request-timeout duration Request timeout (default 30s) | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [cli-v2 runtime](cli-v2_runtime.md) - Manage Codefresh runtimes | ||
|
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
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
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
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
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
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