kubernetes-backend: remove unused APPLICATION_JSON constant

The constant was exported but never referenced in production code.
The only usage was in the test file, where it's now inlined.

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
Made-with: Cursor
This commit is contained in:
Patrik Oldsberg
2026-04-13 21:27:48 +02:00
parent e98b5c5847
commit f58220d2fa
2 changed files with 1 additions and 4 deletions
@@ -43,7 +43,6 @@ import {
KubernetesCredential,
} from '@backstage/plugin-kubernetes-node';
import {
APPLICATION_JSON,
HEADER_KUBERNETES_AUTH,
HEADER_KUBERNETES_CLUSTER,
KubernetesProxy,
@@ -95,7 +94,7 @@ describe('KubernetesProxy', () => {
header: jest.fn((key: string) => {
switch (key) {
case 'Content-Type': {
return APPLICATION_JSON;
return 'application/json';
}
case HEADER_KUBERNETES_CLUSTER: {
return clusterName;
@@ -46,8 +46,6 @@ import {
PermissionsService,
} from '@backstage/backend-plugin-api';
export const APPLICATION_JSON: string = 'application/json';
/**
* The header that is used to specify the cluster name.
*