generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #581 from betelgeuse-code/mukesh/addSchemas
Add new schemas
- Loading branch information
Showing
7 changed files
with
163 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,35 @@ | ||
/** | ||
* Schema for creating grafana credential; | ||
*/ | ||
const grafanaCredentialSchema = { | ||
type: 'object', | ||
title: 'Grafana', | ||
properties: { | ||
credentialName: { | ||
title: 'Credential Name', | ||
type: 'string', | ||
description: 'Name of your credential' | ||
}, | ||
secret: { | ||
type: 'object', | ||
title: 'Credential Secret', | ||
description: 'Credential secret for the Grafana instance', | ||
properties: { | ||
grafanaURL: { | ||
type: 'string', | ||
title: 'URL', | ||
description: 'URL of the Grafana instance' | ||
}, | ||
grafanaAPIKey: { | ||
type: 'string', | ||
title: 'API Key', | ||
description: 'API Key for the Grafana instance' | ||
} | ||
}, | ||
required: ['grafanaURL', 'grafanaAPIKey'] | ||
} | ||
}, | ||
required: ['credentialName'] | ||
}; | ||
|
||
export default grafanaCredentialSchema; |
This file contains 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,3 @@ | ||
const grafanaCredentialUiSchema = {}; | ||
|
||
export default grafanaCredentialUiSchema; |
This file contains 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
This file contains 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,74 @@ | ||
/** | ||
* Schema for creating grafana credential; | ||
*/ | ||
const kubernetesCredentialSchema = { | ||
type: 'object', | ||
title: 'Kubernetes', | ||
properties: { | ||
credentialName: { | ||
title: 'Credential Name', | ||
type: 'string', | ||
description: 'Name of your credential' | ||
}, | ||
secret: { | ||
type: 'object', | ||
title: 'Credential Secret', | ||
description: 'Credential secret for the Kubernetes cluster', | ||
properties: { | ||
clusterName: { | ||
type: 'string', | ||
title: 'Cluster Name', | ||
description: 'Name of the Kubernetes cluster' | ||
}, | ||
clusterServerURL: { | ||
type: 'string', | ||
title: 'Server URL', | ||
description: 'URL of the Kubernetes cluster' | ||
}, | ||
auth: { | ||
type: 'object', | ||
title: 'Auth', | ||
description: 'Kubernetes cluster authentication', | ||
properties: { | ||
clusterUserName: { | ||
type: 'string', | ||
title: 'User Name', | ||
description: 'Name of the Kubernetes cluster user' | ||
}, | ||
clusterToken: { | ||
type: 'string', | ||
title: 'Token', | ||
description: 'Token of the Kubernetes cluster user' | ||
}, | ||
clusterClientCertificateData: { | ||
type: 'string', | ||
title: 'Client Certificate Data', | ||
description: 'Certificate data of the Kubernetes cluster' | ||
}, | ||
clusterClientKeyData: { | ||
type: 'string', | ||
title: 'Client Key Data', | ||
description: 'Client Key data of the Kubernetes cluster' | ||
}, | ||
clusterCertificateAuthorityData: { | ||
type: 'string', | ||
title: 'Certificate Authority Data', | ||
description: 'Certificate Authority data of the Kubernetes cluster' | ||
} | ||
}, | ||
required: [ | ||
'clusterUserName', | ||
'clusterToken', | ||
'clusterClientCertificateData', | ||
'clusterClientKeyData', | ||
'clusterCertificateAuthorityData' | ||
] | ||
} | ||
}, | ||
required: ['clusterName', 'clusterServerURL'] | ||
} | ||
}, | ||
required: ['credentialName'] | ||
}; | ||
|
||
export default kubernetesCredentialSchema; |
This file contains 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,3 @@ | ||
const kubernetesCredentialUiSchema = {}; | ||
|
||
export default kubernetesCredentialUiSchema; |
This file contains 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,30 @@ | ||
/** | ||
* Schema for creating prometheus credential; | ||
*/ | ||
const prometheusCredentialSchema = { | ||
type: 'object', | ||
title: 'Prometheus', | ||
properties: { | ||
credentialName: { | ||
title: 'Credential Name', | ||
type: 'string', | ||
description: 'Name of your credential' | ||
}, | ||
secret: { | ||
type: 'object', | ||
title: 'Credential Secret', | ||
description: 'Credential secret for the Prometheus instance', | ||
properties: { | ||
prometheusURL: { | ||
type: 'string', | ||
title: 'URL', | ||
description: 'URL of the Prometheus instance' | ||
} | ||
}, | ||
required: ['prometheusURL'] | ||
} | ||
}, | ||
required: ['credentialName'] | ||
}; | ||
|
||
export default prometheusCredentialSchema; |
This file contains 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,3 @@ | ||
const prometheusCredentialUiSchema = {}; | ||
|
||
export default prometheusCredentialUiSchema; |