-
Notifications
You must be signed in to change notification settings - Fork 617
chore: Add example templates for ArgoCD actions #8704
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
Merged
CryptoRodeo
merged 5 commits into
backstage:main
from
CryptoRodeo:feat/argocd-action-examples
May 12, 2026
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b82bbed
chore: Add example templates for ArgoCD actions
CryptoRodeo 52f655c
Update README for backend plugin
CryptoRodeo 843add2
prettier:fix
CryptoRodeo 382b7a6
use fully qualified names in example action templates
CryptoRodeo 974bd16
Update changeset
CryptoRodeo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| --- | ||
| '@backstage-community/plugin-argocd-backend': patch | ||
| --- | ||
|
|
||
| Add example templates for ArgoCD plugin actions |
This file contains hidden or 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
40 changes: 40 additions & 0 deletions
40
workspaces/argocd/examples/02-argocd-find-applications-action.yaml
This file contains hidden or 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,40 @@ | ||
| # ArgoCD Find Applications Action | ||
| # | ||
| # Action ID: backstage-community-argocd:argocd:find-applications | ||
| # | ||
| # This action is automatically registered by the @backstage-community/plugin-argocd-backend | ||
| # plugin via the Backstage Actions API. No additional setup is required beyond | ||
| # installing the backend plugin. | ||
| # | ||
| # Prerequisites: | ||
| # - ArgoCD backend plugin installed and configured | ||
| # - ArgoCD instance(s) configured in app-config.yaml under argocd.appLocatorMethods | ||
|
|
||
| --- | ||
| # Minimal example (required fields only) | ||
| actionId: backstage-community-argocd:argocd:find-applications | ||
| input: | ||
| appName: my-service | ||
|
|
||
| --- | ||
| # Full example (all fields) | ||
| actionId: backstage-community-argocd:argocd:find-applications | ||
| input: | ||
| appName: my-service | ||
| project: my-project # Filter by ArgoCD project name | ||
| appNamespace: argocd # Filter by application namespace | ||
|
|
||
| # Expected output: | ||
| # instances: | ||
| # - instanceName: production | ||
| # instanceUrl: https://argocd.example.com | ||
| # applications: | ||
| # - name: my-service | ||
| # namespace: argocd | ||
| # project: my-project | ||
| # syncStatus: Synced | ||
| # healthStatus: Healthy | ||
| # revision: abc123def | ||
| # destination: | ||
| # server: https://kubernetes.default.svc | ||
| # namespace: my-namespace |
42 changes: 42 additions & 0 deletions
42
workspaces/argocd/examples/03-argocd-get-application-action.yaml
This file contains hidden or 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,42 @@ | ||
| # ArgoCD Get Application Action | ||
| # | ||
| # Action ID: backstage-community-argocd:argocd:get-application | ||
| # | ||
| # This action is automatically registered by the @backstage-community/plugin-argocd-backend | ||
| # plugin via the Backstage Actions API. No additional setup is required beyond | ||
| # installing the backend plugin. | ||
| # | ||
| # Prerequisites: | ||
| # - ArgoCD backend plugin installed and configured | ||
| # - ArgoCD instance(s) configured in app-config.yaml under argocd.appLocatorMethods | ||
|
|
||
| --- | ||
| # Minimal example (required fields only) | ||
| actionId: backstage-community-argocd:argocd:get-application | ||
| input: | ||
| instanceName: local | ||
| appName: my-service | ||
|
|
||
| --- | ||
| # Full example (all fields) | ||
| actionId: backstage-community-argocd:argocd:get-application | ||
| input: | ||
| instanceName: local | ||
| appName: my-service | ||
| appNamespace: argocd # Namespace of the application | ||
| project: my-project # ArgoCD project name | ||
|
|
||
| # Expected output: | ||
| # name: my-service | ||
| # namespace: argocd | ||
| # project: my-project | ||
| # syncStatus: Synced | ||
| # healthStatus: Healthy | ||
| # revision: abc123def | ||
| # operationPhase: Succeeded | ||
| # operationMessage: successfully synced | ||
| # destination: | ||
| # server: https://kubernetes.default.svc | ||
| # namespace: my-namespace | ||
| # resourcesCount: 5 | ||
| # historyCount: 3 |
34 changes: 34 additions & 0 deletions
34
workspaces/argocd/examples/04-argocd-get-revision-details-action.yaml
This file contains hidden or 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,34 @@ | ||
| # ArgoCD Get Revision Details Action | ||
| # | ||
| # Action ID: backstage-community-argocd:argocd:get-revision-details | ||
| # | ||
| # This action is automatically registered by the @backstage-community/plugin-argocd-backend | ||
| # plugin via the Backstage Actions API. No additional setup is required beyond | ||
| # installing the backend plugin. | ||
| # | ||
| # Prerequisites: | ||
| # - ArgoCD backend plugin installed and configured | ||
| # - ArgoCD instance(s) configured in app-config.yaml under argocd.appLocatorMethods | ||
|
|
||
| --- | ||
| # Minimal example (required fields only) | ||
| actionId: backstage-community-argocd:argocd:get-revision-details | ||
| input: | ||
| instanceName: local | ||
| appName: my-service | ||
| revisionID: abc123def456 | ||
|
|
||
| --- | ||
| # Full example (all fields) | ||
| actionId: backstage-community-argocd:argocd:get-revision-details | ||
| input: | ||
| instanceName: local | ||
| appName: my-service | ||
| revisionID: abc123def456 | ||
| appNamespace: argocd # Namespace of the application | ||
|
|
||
| # Expected output: | ||
| # author: Jane Developer | ||
| # date: 2026-04-15T10:30:00Z | ||
| # message: "feat: add new deployment config" | ||
| # revisionID: abc123def456 |
48 changes: 48 additions & 0 deletions
48
workspaces/argocd/examples/05-argocd-list-applications-action.yaml
This file contains hidden or 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,48 @@ | ||
| # ArgoCD List Applications Action | ||
| # | ||
| # Action ID: backstage-community-argocd:argocd:list-applications | ||
| # | ||
| # This action is automatically registered by the @backstage-community/plugin-argocd-backend | ||
| # plugin via the Backstage Actions API. No additional setup is required beyond | ||
| # installing the backend plugin. | ||
| # | ||
| # Prerequisites: | ||
| # - ArgoCD backend plugin installed and configured | ||
| # - ArgoCD instance(s) configured in app-config.yaml under argocd.appLocatorMethods | ||
|
|
||
| --- | ||
| # Minimal example (required fields only) | ||
| actionId: backstage-community-argocd:argocd:list-applications | ||
| input: | ||
| instanceName: local | ||
|
|
||
| --- | ||
| # Full example (all fields) | ||
| actionId: backstage-community-argocd:argocd:list-applications | ||
| input: | ||
| instanceName: local | ||
| selector: app.kubernetes.io/part-of=my-app # Label selector to filter applications | ||
| project: my-project # Filter by ArgoCD project name | ||
| appNamespace: argocd # Filter by application namespace | ||
|
|
||
| # Expected output: | ||
| # totalCount: 2 | ||
| # applications: | ||
| # - name: my-service | ||
| # namespace: argocd | ||
| # project: my-project | ||
| # syncStatus: Synced | ||
| # healthStatus: Healthy | ||
| # revision: abc123def | ||
| # destination: | ||
| # server: https://kubernetes.default.svc | ||
| # namespace: my-namespace | ||
| # - name: my-other-service | ||
| # namespace: argocd | ||
| # project: my-project | ||
| # syncStatus: OutOfSync | ||
| # healthStatus: Degraded | ||
| # revision: def456ghi | ||
| # destination: | ||
| # server: https://kubernetes.default.svc | ||
| # namespace: other-namespace |
45 changes: 45 additions & 0 deletions
45
workspaces/argocd/examples/templates/argocd-find-applications.yaml
This file contains hidden or 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,45 @@ | ||
| apiVersion: scaffolder.backstage.io/v1beta3 | ||
| kind: Template | ||
| metadata: | ||
| name: argocd-find-applications | ||
| title: Find ArgoCD Applications | ||
| description: Find all ArgoCD applications across all configured instances by application name | ||
| tags: | ||
| - argocd | ||
| - deployment | ||
| - kubernetes | ||
| spec: | ||
| owner: group:default/infrastructure | ||
| type: deployment | ||
| parameters: | ||
| - title: Find ArgoCD Applications | ||
| required: | ||
| - appName | ||
| properties: | ||
| appName: | ||
| title: Application Name | ||
| type: string | ||
| description: The ArgoCD application name to search for | ||
| project: | ||
| title: Project Name | ||
| type: string | ||
| description: Filter by ArgoCD project name | ||
| appNamespace: | ||
| title: Application Namespace | ||
| type: string | ||
| description: Filter by application namespace | ||
| steps: | ||
| - id: find-applications | ||
| name: Find ArgoCD Applications | ||
| action: backstage-community-argocd:argocd:find-applications | ||
| input: | ||
| appName: ${{ parameters.appName }} | ||
| project: ${{ parameters.project }} | ||
| appNamespace: ${{ parameters.appNamespace }} | ||
| output: | ||
| text: | ||
| - title: Found Instances | ||
| content: | | ||
| ```json | ||
| ${{ steps['find-applications'].output.instances | dump }} | ||
| ``` |
52 changes: 52 additions & 0 deletions
52
workspaces/argocd/examples/templates/argocd-get-application.yaml
This file contains hidden or 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,52 @@ | ||
| apiVersion: scaffolder.backstage.io/v1beta3 | ||
| kind: Template | ||
| metadata: | ||
| name: argocd-get-application | ||
| title: Get ArgoCD Application | ||
| description: Get full details of a specific ArgoCD application from a named instance | ||
| tags: | ||
| - argocd | ||
| - deployment | ||
| - kubernetes | ||
| spec: | ||
| owner: group:default/infrastructure | ||
| type: deployment | ||
| parameters: | ||
| - title: ArgoCD Application Details | ||
| required: | ||
| - instanceName | ||
| - appName | ||
| properties: | ||
| instanceName: | ||
| title: ArgoCD Instance | ||
| type: string | ||
| description: Name of the ArgoCD instance as configured in argocd.appLocatorMethods[].instances | ||
| appName: | ||
| title: Application Name | ||
| type: string | ||
| description: The ArgoCD application name | ||
| appNamespace: | ||
| title: Application Namespace | ||
| type: string | ||
| description: Namespace of the application | ||
| project: | ||
| title: Project Name | ||
| type: string | ||
| description: ArgoCD project name | ||
| steps: | ||
| - id: get-application | ||
| name: Get ArgoCD Application | ||
| action: backstage-community-argocd:argocd:get-application | ||
| input: | ||
| instanceName: ${{ parameters.instanceName }} | ||
| appName: ${{ parameters.appName }} | ||
| appNamespace: ${{ parameters.appNamespace }} | ||
| project: ${{ parameters.project }} | ||
| output: | ||
| text: | ||
| - title: Application Status | ||
| content: | | ||
| **Name:** ${{ steps['get-application'].output.name }} | ||
| **Sync:** ${{ steps['get-application'].output.syncStatus }} | ||
| **Health:** ${{ steps['get-application'].output.healthStatus }} | ||
| **Resources:** ${{ steps['get-application'].output.resourcesCount }} |
52 changes: 52 additions & 0 deletions
52
workspaces/argocd/examples/templates/argocd-get-revision-details.yaml
This file contains hidden or 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,52 @@ | ||
| apiVersion: scaffolder.backstage.io/v1beta3 | ||
| kind: Template | ||
| metadata: | ||
| name: argocd-get-revision-details | ||
| title: Get ArgoCD Revision Details | ||
| description: Fetch the Git commit metadata for a specific revision of an ArgoCD application deployment | ||
| tags: | ||
| - argocd | ||
| - deployment | ||
| - kubernetes | ||
| spec: | ||
| owner: group:default/infrastructure | ||
| type: deployment | ||
| parameters: | ||
| - title: Revision Details | ||
| required: | ||
| - instanceName | ||
| - appName | ||
| - revisionID | ||
| properties: | ||
| instanceName: | ||
| title: ArgoCD Instance | ||
| type: string | ||
| description: Name of the ArgoCD instance | ||
| appName: | ||
| title: Application Name | ||
| type: string | ||
| description: The ArgoCD application name | ||
| revisionID: | ||
| title: Revision ID | ||
| type: string | ||
| description: Git commit SHA or tag to get details for | ||
| appNamespace: | ||
| title: Application Namespace | ||
| type: string | ||
| description: Namespace of the application | ||
| steps: | ||
| - id: get-revision-details | ||
| name: Get Revision Details | ||
| action: backstage-community-argocd:argocd:get-revision-details | ||
| input: | ||
| instanceName: ${{ parameters.instanceName }} | ||
| appName: ${{ parameters.appName }} | ||
| revisionID: ${{ parameters.revisionID }} | ||
| appNamespace: ${{ parameters.appNamespace }} | ||
| output: | ||
| text: | ||
| - title: Revision Info | ||
| content: | | ||
| **Author:** ${{ steps['get-revision-details'].output.author }} | ||
| **Date:** ${{ steps['get-revision-details'].output.date }} | ||
| **Message:** ${{ steps['get-revision-details'].output.message }} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.