getGitCommitHash returns the current git commit hash
()
| 19 | |
| 20 | // getGitCommitHash returns the current git commit hash |
| 21 | func getGitCommitHash() string { |
| 22 | cmd := exec.Command("git", "rev-parse", "HEAD") |
| 23 | output, err := cmd.Output() |
| 24 | if err != nil { |
| 25 | // Fallback to a default value if git command fails |
| 26 | return "unknown" |
| 27 | } |
| 28 | return strings.TrimSpace(string(output)) |
| 29 | } |
| 30 | |
| 31 | // DeployMCPRegistry deploys the MCP Registry to the Kubernetes cluster |
| 32 | func DeployMCPRegistry(ctx *pulumi.Context, cluster *providers.ProviderInfo, environment string, ingressNginx *helm.Chart, pgCluster *apiextensions.CustomResource) (*corev1.Service, error) { |
no outgoing calls
no test coverage detected
searching dependent graphs…