k8s-helper-cli 0.5.2__tar.gz → 0.5.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {k8s_helper_cli-0.5.2/src/k8s_helper_cli.egg-info → k8s_helper_cli-0.5.4}/PKG-INFO +1 -1
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/pyproject.toml +1 -1
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper/__init__.py +1 -1
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper/core.py +25 -6
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4/src/k8s_helper_cli.egg-info}/PKG-INFO +1 -1
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/LICENSE +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/README.md +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/setup.cfg +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper/cli.py +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper/config.py +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper/utils.py +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper_cli.egg-info/SOURCES.txt +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper_cli.egg-info/dependency_links.txt +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper_cli.egg-info/entry_points.txt +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper_cli.egg-info/requires.txt +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper_cli.egg-info/top_level.txt +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/tests/test_core.py +0 -0
- {k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/tests/test_integration.py +0 -0
@@ -3397,14 +3397,14 @@ scrape_configs:
|
|
3397
3397
|
subprocess.run([
|
3398
3398
|
'helm', 'repo', 'add', 'prometheus-community',
|
3399
3399
|
'https://prometheus-community.github.io/helm-charts'
|
3400
|
-
], check=True, capture_output=True)
|
3400
|
+
], check=True, capture_output=True, text=True)
|
3401
3401
|
|
3402
|
-
subprocess.run(['helm', 'repo', 'update'], check=True, capture_output=True)
|
3402
|
+
subprocess.run(['helm', 'repo', 'update'], check=True, capture_output=True, text=True)
|
3403
3403
|
print("✅ Helm repository added and updated")
|
3404
3404
|
except subprocess.CalledProcessError as e:
|
3405
3405
|
return {
|
3406
3406
|
'success': False,
|
3407
|
-
'error': f'Failed to add Helm repository: {e.stderr
|
3407
|
+
'error': f'Failed to add Helm repository: {e.stderr if e.stderr else str(e)}'
|
3408
3408
|
}
|
3409
3409
|
|
3410
3410
|
# Create Helm values file
|
@@ -3418,16 +3418,35 @@ scrape_configs:
|
|
3418
3418
|
'service': {
|
3419
3419
|
'type': grafana_service_type
|
3420
3420
|
},
|
3421
|
+
'env': {
|
3422
|
+
'GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS': 'true',
|
3423
|
+
'GF_INSTALL_PLUGINS': '', # Disable automatic plugin installation
|
3424
|
+
'GF_SECURITY_DISABLE_INITIAL_ADMIN_CREATION': 'false'
|
3425
|
+
},
|
3421
3426
|
'adminPassword': 'admin',
|
3427
|
+
'plugins': [], # Disable problematic plugins
|
3428
|
+
'sidecar': {
|
3429
|
+
'datasources': {
|
3430
|
+
'enabled': True,
|
3431
|
+
'defaultDatasourceEnabled': True
|
3432
|
+
},
|
3433
|
+
'dashboards': {
|
3434
|
+
'enabled': True,
|
3435
|
+
'searchNamespace': 'ALL'
|
3436
|
+
}
|
3437
|
+
},
|
3422
3438
|
'datasources': {
|
3423
3439
|
'datasources.yaml': {
|
3424
3440
|
'apiVersion': 1,
|
3441
|
+
'deleteDatasources': [],
|
3425
3442
|
'datasources': [{
|
3426
3443
|
'name': 'Prometheus',
|
3427
3444
|
'type': 'prometheus',
|
3428
3445
|
'url': 'http://kube-prometheus-stack-prometheus:9090',
|
3429
3446
|
'access': 'proxy',
|
3430
|
-
'isDefault': True
|
3447
|
+
'isDefault': True,
|
3448
|
+
'uid': 'prometheus',
|
3449
|
+
'editable': True
|
3431
3450
|
}]
|
3432
3451
|
}
|
3433
3452
|
},
|
@@ -3573,7 +3592,7 @@ scrape_configs:
|
|
3573
3592
|
os.unlink(values_file)
|
3574
3593
|
|
3575
3594
|
except subprocess.CalledProcessError as e:
|
3576
|
-
error_msg = e.stderr
|
3595
|
+
error_msg = e.stderr if e.stderr else str(e)
|
3577
3596
|
return {
|
3578
3597
|
'success': False,
|
3579
3598
|
'error': f'Helm installation failed: {error_msg}'
|
@@ -3678,7 +3697,7 @@ scrape_configs:
|
|
3678
3697
|
}
|
3679
3698
|
|
3680
3699
|
except subprocess.CalledProcessError as e:
|
3681
|
-
error_msg = e.stderr
|
3700
|
+
error_msg = e.stderr if e.stderr else str(e)
|
3682
3701
|
return {
|
3683
3702
|
'success': False,
|
3684
3703
|
'error': f'Failed to uninstall Helm release: {error_msg}'
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{k8s_helper_cli-0.5.2 → k8s_helper_cli-0.5.4}/src/k8s_helper_cli.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|