Harness Cloud Cost Management
Plugin details | |
---|---|
Created by | Harness |
Category | Infrastructure |
Source | GitHub |
Type | Open-source plugin |
Configuration
Application configuration YAML
No action required
This plugin requires a backend proxy configuration to make calls to Harness APIs with authentication. The following configuration is set by default and you do not need to change anything:
proxy:
endpoints:
'/harness/prod':
target: https://app.harness.io/
pathRewrite:
'/api/proxy/harness/prod/?': '/'
allowedHeaders:
- authorization
- Harness-Account
Secrets
No secrets are required for this plugin because both IDP and CCM are part of the Harness Software Delivery Platform.
Delegate proxy
No action required
This plugin does not require a delegate proxy to be set up.
Layout
No action required
This plugin exports a card on the Overview Page and a UI tab that you can use as a new CCM tab or for any other layout page. The following configuration is set by default in Layout under Admin for Service and you do not need to change anything:
- name: ccm
path: /ccm
title: Cloud Costs
contents:
- component: EntityCcmContent
Also, you could add a conditional like isHarnessCcmAvailable
which is met when harness.io/perspective-url
annotation is present in the software component's catalog-info.yaml
definition file.
- name: ccm
path: /ccm
title: Cloud Costs
contents:
- component: EntitySwitch
specs:
cases:
- if: isHarnessCcmAvailable
content:
component: EntityCcmContent
Annotations
To configure the plugin for a service in the software catalog, set one or both of the following annotations in its catalog-info.yaml
definition file, you can fetch the Perspective URL from the Perspectives page:
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
# ...
annotations:
harness.io/perspective-url: https://url-details/perspectives/perspectiveId/name/perspectiveName
spec:
type: service
# ...
Support
The plugin is owned by Harness and managed in the Harness plugins repository as an open-source project. Create a GitHub issue to report bugs or suggest new features for the plugin.