Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the verbose for cleanup_k8s #276

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cleanup_k8s.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
import os
import logging
from ocw.lib.gke import GKE
from ocw.lib.eks import EKS
from ocw.lib.aks import AKS
from ocw.enums import ProviderChoice
from webui.PCWConfig import PCWConfig
from webui.PCWConfig import PCWConfig, ConfigFile, CONFIG_FILE


def main():
loglevel = 'INFO'
if os.path.exists(CONFIG_FILE):
loglevel = ConfigFile().get('default/loglevel', loglevel)

logger = logging.getLogger(__name__)
logging.basicConfig(level=loglevel)

for namespace in PCWConfig.get_namespaces_for('k8sclusters'):
providers = PCWConfig.get_providers_for("k8sclusters", namespace)
Expand Down