
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
@roadiehq/backstage-plugin-argo-cd
Advanced tools
https://roadie.io/backstage/plugins/argo-cd
If you have your own backstage application without this plugin, here it's how to add it:
backstage/packages/app
project add the plugin as a package.json
dependency:yarn add @roadiehq/backstage-plugin-argo-cd
app-config.yaml
file in the root directory:proxy:
...
'/argocd/api':
# url to the api of your hosted argoCD instance
target: https://159.65.209.132/api/v1/
changeOrigin: true
# this line is required if your hosted argoCD instance has self-signed certificate
secure: false
headers:
Cookie:
$env: ARGOCD_AUTH_TOKEN
// packages/app/src/plugins.ts
export { plugin as ArgoCD } from '@roadiehq/backstage-plugin-argo-cd';
entityPage.tsx
source file:// packages/app/src/components/catalog/EntityPage.tsx
import {
ArgoCDDetailsWidget,
isPluginApplicableToEntity as isArgoCDAvailable
} from '@roadiehq/backstage-plugin-argo-cd';
const OverviewContent = ({ entity }: { entity: Entity }) => (
<Grid container spacing={3} alignItems="stretch">
...
{isArgoCDAvailable(entity) && (
<Grid item md={6}>
<ArgoCDDetailsWidget entity={entity} />
</Grid>
)}
...
</Grid>
);
The Argo CD plugin is a part of the Backstage sample app. To start using it for your component, you have to:
Add an annotation to the YAML config file of a component. If there is only a single Argo CD application for the component, you can use
argo-cd/app-name: <app-name>
You can also use labels to select multiple Argo CD applications for a component:
argo-cd/app-selector: <app-selector>
Note: You can only use one of the options per component.
Add your auth key to the environmental variables for your backstage backend server (you can acquire it by sending a GET HTTP request to Argo CD's /session
endpoint with username and password):
ARGOCD_AUTH_TOKEN="argocd.token=<auth-token>"
If you want to create multiple components that fetch data from different argoCD instances, you have to add a proxy config for each instance:
proxy:
...
'/argocd/api':
target: https://<someAddress>/api/v1/
changeOrigin: true
secure: false
headers:
Cookie:
$env: ARGOCD_AUTH_TOKEN
'/argocd/api2':
target: https://<otherAddress>/api/v1/
changeOrigin: true
secure: false
headers:
Cookie:
$env: ARGOCD_AUTH_TOKEN2
Add all required auth tokens to environmental variables, in this example, ARGOCD_AUTH_TOKEN2
.
And then in the following component definition annotations add a line with the url to the desired proxy path:
argo-cd/proxy-url: '/argocd/api2'
argo-cd/proxy-url
annotation defaults to '/argocd/api' so it's not needed if there is only one proxy config.
You can clone the plugin repo into the plugins/
directory:
git clone https://github.com/RoadieHQ/backstage-plugin-argo-cd.git argo-cd
and run yarn
in the root backstage directory - it will create a symbolic link so the dependency will be provided from the source code instead of node_modules package.
FAQs
Unknown package
The npm package @roadiehq/backstage-plugin-argo-cd receives a total of 4,987 weekly downloads. As such, @roadiehq/backstage-plugin-argo-cd popularity was classified as popular.
We found that @roadiehq/backstage-plugin-argo-cd demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.