Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5188bc289e | |||
| 33ef816826 | |||
| ea28ab3a81 | |||
| 57f0bf6b4b | |||
| 8dd71772f5 | |||
| c3b2877c51 | |||
| 62aa181433 | |||
| 2c077907e9 |
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
version: 0.3.2
|
version: 0.3.4
|
||||||
name: headlamp-polaris-plugin
|
name: headlamp-polaris-plugin
|
||||||
displayName: Polaris
|
displayName: Polaris
|
||||||
createdAt: "2026-02-05T19:00:00Z"
|
createdAt: "2026-02-05T19:00:00Z"
|
||||||
@@ -28,7 +28,7 @@ maintainers:
|
|||||||
- name: cpfarhood
|
- name: cpfarhood
|
||||||
email: "chris@farhood.org"
|
email: "chris@farhood.org"
|
||||||
annotations:
|
annotations:
|
||||||
headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.3.2/headlamp-polaris-plugin-0.3.2.tar.gz"
|
headlamp/plugin/archive-url: "https://github.com/cpfarhood/headlamp-polaris-plugin/releases/download/v0.3.4/headlamp-polaris-plugin-0.3.4.tar.gz"
|
||||||
headlamp/plugin/version-compat: ">=0.26"
|
headlamp/plugin/version-compat: ">=0.26"
|
||||||
headlamp/plugin/archive-checksum: sha256:66d51513a6bf73b6f67af10d2dc55dabea7340d551faf3d59a9cd34b232ca868
|
headlamp/plugin/archive-checksum: sha256:175a7bdedaf6a9329abc9041b505bfa07029e1ae512fc8207301d216e01ce5b1
|
||||||
headlamp/plugin/distro-compat: in-cluster
|
headlamp/plugin/distro-compat: in-cluster
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "headlamp-polaris-plugin",
|
"name": "headlamp-polaris-plugin",
|
||||||
"version": "0.3.2",
|
"version": "0.3.4",
|
||||||
"description": "Headlamp plugin for Fairwinds Polaris audit results",
|
"description": "Headlamp plugin for Fairwinds Polaris audit results",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "headlamp-plugin start",
|
"start": "headlamp-plugin start",
|
||||||
|
|||||||
@@ -117,8 +117,8 @@ export default function DashboardView() {
|
|||||||
style={{
|
style={{
|
||||||
padding: '6px 16px',
|
padding: '6px 16px',
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
color: '#1976d2',
|
color: 'var(--mui-palette-primary-main, #1976d2)',
|
||||||
border: '1px solid #1976d2',
|
border: '1px solid var(--mui-palette-primary-main, #1976d2)',
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
fontSize: '13px',
|
fontSize: '13px',
|
||||||
|
|||||||
@@ -149,8 +149,8 @@ export default function ExemptionManager({
|
|||||||
<button
|
<button
|
||||||
style={{
|
style={{
|
||||||
padding: '4px 12px',
|
padding: '4px 12px',
|
||||||
backgroundColor: '#f44336',
|
backgroundColor: 'var(--mui-palette-error-main, #f44336)',
|
||||||
color: 'white',
|
color: 'var(--mui-palette-error-contrastText, #fff)',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
@@ -176,10 +176,19 @@ export default function ExemptionManager({
|
|||||||
style={{
|
style={{
|
||||||
marginTop: '8px',
|
marginTop: '8px',
|
||||||
padding: '6px 16px',
|
padding: '6px 16px',
|
||||||
backgroundColor: failingChecks.length === 0 ? '#ccc' : 'transparent',
|
backgroundColor:
|
||||||
color: failingChecks.length === 0 ? '#999' : '#1976d2',
|
failingChecks.length === 0
|
||||||
|
? 'var(--mui-palette-action-disabledBackground, #e0e0e0)'
|
||||||
|
: 'transparent',
|
||||||
|
color:
|
||||||
|
failingChecks.length === 0
|
||||||
|
? 'var(--mui-palette-action-disabled, #9e9e9e)'
|
||||||
|
: 'var(--mui-palette-primary-main, #1976d2)',
|
||||||
border: '1px solid',
|
border: '1px solid',
|
||||||
borderColor: failingChecks.length === 0 ? '#ccc' : '#1976d2',
|
borderColor:
|
||||||
|
failingChecks.length === 0
|
||||||
|
? 'var(--mui-palette-divider, #e0e0e0)'
|
||||||
|
: 'var(--mui-palette-primary-main, #1976d2)',
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
cursor: failingChecks.length === 0 ? 'not-allowed' : 'pointer',
|
cursor: failingChecks.length === 0 ? 'not-allowed' : 'pointer',
|
||||||
fontSize: '13px',
|
fontSize: '13px',
|
||||||
@@ -237,7 +246,7 @@ export default function ExemptionManager({
|
|||||||
style={{
|
style={{
|
||||||
padding: '6px 16px',
|
padding: '6px 16px',
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
color: '#1976d2',
|
color: 'var(--mui-palette-primary-main, #1976d2)',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
@@ -252,8 +261,13 @@ export default function ExemptionManager({
|
|||||||
style={{
|
style={{
|
||||||
padding: '6px 16px',
|
padding: '6px 16px',
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
applying || (!exemptAll && selectedChecks.size === 0) ? '#ccc' : '#1976d2',
|
applying || (!exemptAll && selectedChecks.size === 0)
|
||||||
color: 'white',
|
? 'var(--mui-palette-action-disabledBackground, #e0e0e0)'
|
||||||
|
: 'var(--mui-palette-primary-main, #1976d2)',
|
||||||
|
color:
|
||||||
|
applying || (!exemptAll && selectedChecks.size === 0)
|
||||||
|
? 'var(--mui-palette-action-disabled, #9e9e9e)'
|
||||||
|
: 'var(--mui-palette-primary-contrastText, #fff)',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
cursor:
|
cursor:
|
||||||
|
|||||||
@@ -105,12 +105,20 @@ export default function PolarisSettings(props: PluginSettingsProps) {
|
|||||||
style={{
|
style={{
|
||||||
width: '100%',
|
width: '100%',
|
||||||
padding: '4px 8px',
|
padding: '4px 8px',
|
||||||
border: '1px solid #ccc',
|
border: '1px solid var(--mui-palette-divider, #e0e0e0)',
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
fontSize: '14px',
|
fontSize: '14px',
|
||||||
|
backgroundColor: 'var(--mui-palette-background-paper, #fff)',
|
||||||
|
color: 'var(--mui-palette-text-primary, #000)',
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<div style={{ fontSize: '12px', color: '#666', marginTop: '4px' }}>
|
<div
|
||||||
|
style={{
|
||||||
|
fontSize: '12px',
|
||||||
|
color: 'var(--mui-palette-text-secondary, #666)',
|
||||||
|
marginTop: '4px',
|
||||||
|
}}
|
||||||
|
>
|
||||||
Examples:
|
Examples:
|
||||||
<br />• K8s proxy:{' '}
|
<br />• K8s proxy:{' '}
|
||||||
<code>/api/v1/namespaces/polaris/services/polaris-dashboard:80/proxy/</code>
|
<code>/api/v1/namespaces/polaris/services/polaris-dashboard:80/proxy/</code>
|
||||||
@@ -128,8 +136,12 @@ export default function PolarisSettings(props: PluginSettingsProps) {
|
|||||||
disabled={testing}
|
disabled={testing}
|
||||||
style={{
|
style={{
|
||||||
padding: '6px 16px',
|
padding: '6px 16px',
|
||||||
backgroundColor: testing ? '#ccc' : '#1976d2',
|
backgroundColor: testing
|
||||||
color: 'white',
|
? 'var(--mui-palette-action-disabledBackground, #e0e0e0)'
|
||||||
|
: 'var(--mui-palette-primary-main, #1976d2)',
|
||||||
|
color: testing
|
||||||
|
? 'var(--mui-palette-action-disabled, #9e9e9e)'
|
||||||
|
: 'var(--mui-palette-primary-contrastText, #fff)',
|
||||||
border: 'none',
|
border: 'none',
|
||||||
borderRadius: '4px',
|
borderRadius: '4px',
|
||||||
cursor: testing ? 'not-allowed' : 'pointer',
|
cursor: testing ? 'not-allowed' : 'pointer',
|
||||||
|
|||||||
+1
-1
@@ -66,7 +66,7 @@ registerRoute({
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Register plugin settings
|
// Register plugin settings
|
||||||
registerPluginSettings('polaris', PolarisSettings);
|
registerPluginSettings('headlamp-polaris-plugin', PolarisSettings, true);
|
||||||
|
|
||||||
// Register details view section for supported controller types
|
// Register details view section for supported controller types
|
||||||
registerDetailsViewSection(({ resource }) => {
|
registerDetailsViewSection(({ resource }) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user