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

feat: use a gitlab repository for config-sync-repo #328

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

caetano-colin
Copy link
Collaborator

No description provided.

@caetano-colin caetano-colin changed the title draft: try using a gitlab repository for config-sync-repo feat: use a gitlab repository for config-sync-repo Jan 23, 2025
@caetano-colin caetano-colin marked this pull request as ready for review January 23, 2025 17:46
@apeabody apeabody self-assigned this Jan 23, 2025
Command: "kubectl",
Args: args,
}
return shell.RunCommandAndGetStdOutE(t, kubectlCmd)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For kubectl I recommend using "github.com/gruntwork-io/terratest/modules/k8s":

k8sOpts := k8s.KubectlOptions{}
configNameSpace, err := k8s.RunKubectlAndGetOutputE(t, &k8sOpts, "get", "ns", "config-management-system", "-o", "json")
assert.NoError(err)

If you are testing (get credentials) in parallel, you can also specify the exact cluster content

k8sOpts := k8s.NewKubectlOptions(fmt.Sprintf("gke_%s_%s_%s", projectId, location, clusterName), "", "")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants