MCPcopy Create free account
hub / github.com/DevCloudNinjas/DevOps-Projects / troubleshooting

Function troubleshooting

tools/build_starlight_content.py:1035–1052  ·  view source on GitHub ↗
(project: dict)

Source from the content-addressed store, hash-verified

1033
1034
1035def troubleshooting(project: dict) -> str:
1036 items = [
1037 f"Run `{project['validation']}` first so local tooling issues are visible early.",
1038 "If a command fails, check tool versions, working directory, and required environment variables.",
1039 ]
1040 if project["needs_cloud_credentials"] == "Yes":
1041 items.append(
1042 "For cloud failures, confirm account identity, region, quotas, and least-privilege IAM."
1043 )
1044 if project["ci_cd"]:
1045 items.append(
1046 "For pipeline failures, check repository secrets, runner permissions, and pinned action versions."
1047 )
1048 if project["deployability"] == "kubernetes_ready":
1049 items.append(
1050 "For Kubernetes failures, check the current context, namespace, pod events, and service endpoints."
1051 )
1052 return "\n".join(f"- {item}" for item in items)
1053
1054
1055def cleanup_guidance(project: dict) -> str:

Callers 1

write_project_pagesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected