Skip to content

update argocd image #540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
tasks:
- name: sync
templateRef:
name: argo-hub.argocd.0.0.1
name: argo-hub.argocd.0.0.2
template: sync
arguments:
parameters:
Expand All @@ -52,7 +52,7 @@ spec:
value: 'token'
- name: wait
templateRef:
name: argo-hub.argocd.0.0.1
name: argo-hub.argocd.0.0.2
template: wait
arguments:
parameters:
Expand Down
33 changes: 33 additions & 0 deletions workflows/argocd/versions/0.0.2/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# ArgoCD

## Summary

Multiple templates that enable operations that can be used to execute against ArgoCD applications.

## Templates

1. [action-abort](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/docs/action-abort.md)

1. [action-promote-full](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/docs/action-promote-full.md)

1. [action-restart](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/docs/action-restart.md)

1. [action-resume](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/docs/action-resume.md)

1. [action-retry](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/docs/action-retry.md)

1. [history](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/docs/history.md)

1. [list](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/docs/list.md)

1. [rollback](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/docs/rollback.md)

1. [sync](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/docs/sync.md)

1. [wait](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/docs/wait.md)

## Security

Minimal required permissions

[Full rbac permissions list](https://github.com/codefresh-io/argo-hub/blob/main/workflows/argocd/versions/0.0.2/rbac.yaml)
56 changes: 56 additions & 0 deletions workflows/argocd/versions/0.0.2/docs/action-abort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# action-abort

## Summary
Run the abort action for an application in ArgoCD. See `argocd app action run --help` with the ArgoCD CLI for flags

## Inputs/Outputs

### Inputs
* app (required) - The app to abort
* appKind - The kind of the application to run this action on (Default is `Rollback`)
* flags - Any abort flags to set for the ArgoCD CLI
* serverUrl (required) - The address to reach ArgoCD (if in cluster, something like `argocd-server.<namespace>.svc.cluster.local`)
* opts - Global options for ArgoCd (ex. `--grpc-web`)
* tokenSecret - The Kubernetes secret holding the token for communicating with ArgoCD. Default is `argocd-token`
* tokenSecretKey - The key in the Kubernetes secret with the ArgoCD token. Default is `token`
* xtraceOption - Whether to enabled xtrace (echoing the command before running it) or not (`-o` and `+o` respectively). Default is "on" (`-o`)


### Outputs
No outputs

## Examples

### task Example
```yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: argocd-action-abort-
spec:
entrypoint: main
templates:
- name: main
dag:
tasks:
- name: action-abort
templateRef:
name: argo-hub.argocd.0.0.2
template: action-abort
arguments:
parameters:
- name: app
value: 'demo-app'
- name: appKind
value: 'Rollback'
- name: flags
value: '--all'
- name: serverUrl
value: 'argocd-server.argocd.svc.cluster.local'
- name: opts
value: '--grpc-web'
- name: tokenSecret
value: 'my-k8s-secret'
- name: tokenSecretKey
value: 'argocd-token'
```
56 changes: 56 additions & 0 deletions workflows/argocd/versions/0.0.2/docs/action-promote-full.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# action-promote-full

## Summary
Run the promote-full action for an application in ArgoCD. See `argocd app action run --help` with the ArgoCD CLI for flags

## Inputs/Outputs

### Inputs
* app (required) - The app to promote-full
* appKind - The kind of the application to run this action on (Default is `Rollback`)
* flags - Any promote-full flags to set for the ArgoCD CLI
* serverUrl (required) - The address to reach ArgoCD (if in cluster, something like `argocd-server.<namespace>.svc.cluster.local`)
* opts - Global options for ArgoCd (ex. `--grpc-web`)
* tokenSecret - The Kubernetes secret holding the token for communicating with ArgoCD. Default is `argocd-token`
* tokenSecretKey - The key in the Kubernetes secret with the ArgoCD token. Default is `token`
* xtraceOption - Whether to enabled xtrace (echoing the command before running it) or not (`-o` and `+o` respectively). Default is "on" (`-o`)


### Outputs
No outputs

## Examples

### task Example
```yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: argocd-action-promote-full-
spec:
entrypoint: main
templates:
- name: main
dag:
tasks:
- name: action-promote-full
templateRef:
name: argo-hub.argocd.0.0.2
template: action-promote-full
arguments:
parameters:
- name: app
value: 'demo-app'
- name: appKind
value: 'Rollback'
- name: flags
value: '--all'
- name: serverUrl
value: 'argocd-server.argocd.svc.cluster.local'
- name: opts
value: '--grpc-web'
- name: tokenSecret
value: 'my-k8s-secret'
- name: tokenSecretKey
value: 'argocd-token'
```
56 changes: 56 additions & 0 deletions workflows/argocd/versions/0.0.2/docs/action-restart.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# action-restart

## Summary
Run the restart action for an application in ArgoCD. See `argocd app action run --help` with the ArgoCD CLI for flags

## Inputs/Outputs

### Inputs
* app (required) - The app to restart
* appKind - The kind of the application to run this action on (Default is `Rollback`)
* flags - Any restart flags to set for the ArgoCD CLI
* serverUrl (required) - The address to reach ArgoCD (if in cluster, something like `argocd-server.<namespace>.svc.cluster.local`)
* opts - Global options for ArgoCd (ex. `--grpc-web`)
* tokenSecret - The Kubernetes secret holding the token for communicating with ArgoCD. Default is `argocd-token`
* tokenSecretKey - The key in the Kubernetes secret with the ArgoCD token. Default is `token`
* xtraceOption - Whether to enabled xtrace (echoing the command before running it) or not (`-o` and `+o` respectively). Default is "on" (`-o`)


### Outputs
No outputs

## Examples

### task Example
```yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: argocd-action-restart-
spec:
entrypoint: main
templates:
- name: main
dag:
tasks:
- name: action-restart
templateRef:
name: argo-hub.argocd.0.0.2
template: action-restart
arguments:
parameters:
- name: app
value: 'demo-app'
- name: appKind
value: 'Rollback'
- name: flags
value: '--all'
- name: serverUrl
value: 'argocd-server.argocd.svc.cluster.local'
- name: opts
value: '--grpc-web'
- name: tokenSecret
value: 'my-k8s-secret'
- name: tokenSecretKey
value: 'argocd-token'
```
56 changes: 56 additions & 0 deletions workflows/argocd/versions/0.0.2/docs/action-resume.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# action-resume

## Summary
Run the resume action for an application in ArgoCD. See `argocd app action run --help` with the ArgoCD CLI for flags

## Inputs/Outputs

### Inputs
* app (required) - The app to resume
* appKind - The kind of the application to run this action on (Default is `Rollback`)
* flags - Any resume flags to set for the ArgoCD CLI
* serverUrl (required) - The address to reach ArgoCD (if in cluster, something like `argocd-server.<namespace>.svc.cluster.local`)
* opts - Global options for ArgoCd (ex. `--grpc-web`)
* tokenSecret - The Kubernetes secret holding the token for communicating with ArgoCD. Default is `argocd-token`
* tokenSecretKey - The key in the Kubernetes secret with the ArgoCD token. Default is `token`
* xtraceOption - Whether to enabled xtrace (echoing the command before running it) or not (`-o` and `+o` respectively). Default is "on" (`-o`)


### Outputs
No outputs

## Examples

### task Example
```yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: argocd-action-resume-
spec:
entrypoint: main
templates:
- name: main
dag:
tasks:
- name: action-resume
templateRef:
name: argo-hub.argocd.0.0.2
template: action-resume
arguments:
parameters:
- name: app
value: 'demo-app'
- name: appKind
value: 'Rollback'
- name: flags
value: '--all'
- name: serverUrl
value: 'argocd-server.argocd.svc.cluster.local'
- name: opts
value: '--grpc-web'
- name: tokenSecret
value: 'my-k8s-secret'
- name: tokenSecretKey
value: 'argocd-token'
```
56 changes: 56 additions & 0 deletions workflows/argocd/versions/0.0.2/docs/action-retry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# action-retry

## Summary
Run the retry action for an application in ArgoCD. See `argocd app action run --help` with the ArgoCD CLI for flags

## Inputs/Outputs

### Inputs
* app (required) - The app to retry
* appKind - The kind of the application to run this action on (Default is `Rollback`)
* flags - Any retry flags to set for the ArgoCD CLI
* serverUrl (required) - The address to reach ArgoCD (if in cluster, something like `argocd-server.<namespace>.svc.cluster.local`)
* opts - Global options for ArgoCd (ex. `--grpc-web`)
* tokenSecret - The Kubernetes secret holding the token for communicating with ArgoCD. Default is `argocd-token`
* tokenSecretKey - The key in the Kubernetes secret with the ArgoCD token. Default is `token`
* xtraceOption - Whether to enabled xtrace (echoing the command before running it) or not (`-o` and `+o` respectively). Default is "on" (`-o`)


### Outputs
No outputs

## Examples

### task Example
```yaml
apiVersion: argoproj.io/v1alpha1
kind: Workflow
metadata:
generateName: argocd-action-retry-
spec:
entrypoint: main
templates:
- name: main
dag:
tasks:
- name: action-retry
templateRef:
name: argo-hub.argocd.0.0.2
template: action-retry
arguments:
parameters:
- name: app
value: 'demo-app'
- name: appKind
value: 'Rollback'
- name: flags
value: '--all'
- name: serverUrl
value: 'argocd-server.argocd.svc.cluster.local'
- name: opts
value: '--grpc-web'
- name: tokenSecret
value: 'my-k8s-secret'
- name: tokenSecretKey
value: 'argocd-token'
```
Loading