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

Update the az.create-aks task #967

Merged
merged 2 commits into from
Jul 29, 2024
Merged

Conversation

FlorentClarret
Copy link
Member

@FlorentClarret FlorentClarret commented Jul 23, 2024

What does this PR do?

  • Update the az.create-aks to create clusters in agent sandbox/qa
  • We do not add the az.create-aks to the integration tests in this CI, it takes only around 8 minutes but we do not have a lot of resources on Azure

Some semi-related tasks to:

Which scenarios this will impact?

Motivation

Allow users to create AKS in our new sandbox

Additional Notes

@FlorentClarret FlorentClarret requested a review from a team as a code owner July 23, 2024 11:54
@FlorentClarret FlorentClarret changed the title Update the 'az.create-aks' task and add it to the tests Update the az.create-aks task and add it to the tests Jul 23, 2024
@FlorentClarret FlorentClarret force-pushed the florentclarret/create-aks branch 8 times, most recently from abf9482 to bb1cdcc Compare July 24, 2024 09:14
@@ -55,17 +55,22 @@ func TestInvokes(t *testing.T) {
testAzureInvokeVM(t, tmpConfigFile, *workingDir)
})

t.Run("az.create-aks", func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

🔨 warning
We have limited aks resources and it takes usually very long to create an aks cluster, similarly to eks. I would rather have it as a manual test

@FlorentClarret FlorentClarret changed the title Update the az.create-aks task and add it to the tests Update the az.create-aks task Jul 26, 2024
```

## Quick start: Create an EKS (Linux/Windows) + Fargate (Linux) Cluster + Agent (Helm)

```
# You need to have a DD APIKey AND APPKey in variable DD_API_KEY / DD_APP_KEY
aws-vault exec sso-agent-sandbox-account-admin -- pulumi up -c scenario=aws/eks -c ddinfra:aws/defaultKeyPairName=<your_exisiting_aws_keypair_name> -c ddinfra:env=aws/agent-sandbox -c ddagent:apiKey=$DD_API_KEY -c ddagent:appKey=$DD_APP_KEY -s <your_name>-eks
pulumi up -c scenario=aws/eks -c ddinfra:aws/defaultKeyPairName=<your_exisiting_aws_keypair_name> -c ddinfra:env=aws/agent-sandbox -c ddagent:apiKey=$DD_API_KEY -c ddagent:appKey=$DD_APP_KEY -s <your_name>-eks
Copy link
Contributor

Choose a reason for hiding this comment

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

👏 praise

@@ -76,7 +76,7 @@ func testAzureInvokeVM(t *testing.T, tmpConfigFile string, workingDirectory stri

stackName := fmt.Sprintf("az-invoke-vm-%s", os.Getenv("CI_PIPELINE_ID"))
t.Log("creating vm")
createCmd := exec.Command("invoke", "az.create-vm", "--no-interactive", "--stack-name", stackName, "--config-path", tmpConfigFile, "--account", "agent-qa")
Copy link
Contributor

Choose a reason for hiding this comment

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

❓ question
It doesn't work with agent-qa? Or we are setting it at setup?

Copy link
Member Author

Choose a reason for hiding this comment

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

I moved it to the config file: https://github.com/DataDog/test-infra-definitions/pull/967/files#diff-5b0d7f0d4cd5bb98edb0f1e6b5ac0747cae4be958137b00d9785e4863a90acdcR12 sorry it was not super explicit. We already do the same thing with AWS so I just centralised everything

@FlorentClarret
Copy link
Member Author

/merge

@dd-devflow
Copy link

dd-devflow bot commented Jul 29, 2024

🚂 MergeQueue: pull request added to the queue

The median merge time in main is 20m.

Use /merge -c to cancel this operation!

@dd-mergequeue dd-mergequeue bot merged commit 008107a into main Jul 29, 2024
9 checks passed
@dd-mergequeue dd-mergequeue bot deleted the florentclarret/create-aks branch July 29, 2024 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants