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 to Kubernetes SDK 14 and add new test #931

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

APErebus
Copy link
Contributor

Background

The Kubernetes C# SDK that supports Kubernetes 1.30 has been released

This PR updates the package references and also adds a new integration test which tests what happens when the tentacle pod is killed midway through a script.

Results

Adds a new KubeCtlTool class that is used for interacting with KubeCtl. I think eventually this will have named methods like DeletePod etc

We will also need to update the documentation to indicate that v1.30 is a supported Kubernetes version

How to review this PR

Quality ✔️

Pre-requisites

  • I have read How we use GitHub Issues for help deciding when and where it's appropriate to make an issue.
  • I have considered informing or consulting the right people, according to the ownership map.
  • I have considered appropriate testing for my change.

@APErebus APErebus requested review from a team as code owners May 15, 2024 05:08
@APErebus APErebus marked this pull request as draft May 15, 2024 05:10
var finalPodName = commandResult.StdOut.Single();

//Assert
logs.Should().Contain(po => po.Source == ProcessOutputSource.StdOut && po.Text == "Hello World");
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to also assert that Halibut got an error and is retrying mid way through the script?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

🤔 Possibly yes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I actually don't think this test is working correctly. I may need to tweak the script so that it waits until the old pod is dead (or something like that)

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.

None yet

2 participants