Skip to content

Commit

Permalink
Merge pull request #86 from ejhayes/optional-content-header
Browse files Browse the repository at this point in the history
Add option to override default contentType header
  • Loading branch information
rfun committed May 6, 2024
2 parents ab4f06c + 131ee17 commit 9b89642
Show file tree
Hide file tree
Showing 7 changed files with 167 additions and 124 deletions.
37 changes: 19 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,24 +107,25 @@ service:

## Inputs

| parameter | description | required | default |
| ------------ | ----------------------------------------------------- | -------- | ------------------------ |
| action | Action to perform (upsert, delete) | `true` | upsert |
| annotations | Key/Value pair of annotations for the application | `false` | {} |
| clientId | ArgoCD Client Id / Username | `false` | |
| clientSecret | ArgoCD Client Secret / Password | `false` | |
| clusterName | Cluster name to deploy to | `true` | |
| baseUrl | ArgoCD base url to use | `true` | |
| gitRef | Revision to deploy to ArgoCD | `false` | ${{ github.ref }} |
| gitRepo | GitHub repository to use | `false` | ${{ github.repository }} |
| info | Key/Value pair of argo info values | `false` | {} |
| labels | Key/Value pair of labels to apply to argo application | `false` | {} |
| name | Name of the application to create | `true` | |
| namespace | Namespace to deploy application to | `true` | |
| path | Path to helm chart | `false` | |
| project | Argo project to create application in | `true` | |
| tokens | Key/Value list of tokens to replace in helm chart | `false` | {} |
| valuesFile | Values file to pass to ArgoCD | `true` | |
| parameter | description | required | default |
| ------------ | ----------------------------------------------------- | -------- | ------------------------------- |
| action | Action to perform (upsert, delete) | `true` | upsert |
| annotations | Key/Value pair of annotations for the application | `false` | {} |
| clientId | ArgoCD Client Id / Username | `false` | |
| clientSecret | ArgoCD Client Secret / Password | `false` | |
| clusterName | Cluster name to deploy to | `true` | |
| contentType | Override default content-type header | `false` | application/json; charset=utf-8 |
| baseUrl | ArgoCD base url to use | `true` | |
| gitRef | Revision to deploy to ArgoCD | `false` | ${{ github.ref }} |
| gitRepo | GitHub repository to use | `false` | ${{ github.repository }} |
| info | Key/Value pair of argo info values | `false` | {} |
| labels | Key/Value pair of labels to apply to argo application | `false` | {} |
| name | Name of the application to create | `true` | |
| namespace | Namespace to deploy application to | `true` | |
| path | Path to helm chart | `false` | |
| project | Argo project to create application in | `true` | |
| tokens | Key/Value list of tokens to replace in helm chart | `false` | {} |
| valuesFile | Values file to pass to ArgoCD | `true` | |

<!-- action-docs-inputs -->

Expand Down
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ inputs:
clusterName:
description: 'Cluster name to deploy to'
required: true
contentType:
description: 'Change default content-type header from `application/json; charset=utf-8`'
required: false
dryRun:
description: 'Dry run mode (do not create or delete anything)'
required: false
Expand Down
Loading

0 comments on commit 9b89642

Please sign in to comment.