Skip to content

kube-updater: add Dockerfile & GHA pipelines#22983

Merged
hugoShaka merged 1 commit intomasterfrom
hugo/kube-updater-pipeline
Mar 22, 2023
Merged

kube-updater: add Dockerfile & GHA pipelines#22983
hugoShaka merged 1 commit intomasterfrom
hugo/kube-updater-pipeline

Conversation

@hugoShaka
Copy link
Copy Markdown
Contributor

This PR is part of #22732

It does the following kube-agent-updater changes:

  • Add a Dockerfile (and Makefile target) following the integrations/operator one
  • Add a lint-kube-agent-updater target on the root Makefile for CI purposes
  • Add GHA test workflows for the kube agent updater
  • Make the linter happy:
    • Remove unused test helper function (might be brought back later when doing integration tests)
    • Fix spelling issues
    • Remove unused constants

Comment thread .github/workflows/unit-tests-kube-agent-updater.yaml Outdated
@hugoShaka hugoShaka force-pushed the hugo/kube-updater-pipeline branch from 7e35ba9 to 7c9a707 Compare March 15, 2023 14:29
Comment thread .github/workflows/unit-tests-kube-agent-updater.yaml Outdated
Comment thread integrations/kube-agent-updater/Dockerfile

.PHONY: docker-build
docker-build: ## Build docker image
docker buildx build --platform="$(OS)/$(ARCH)" --build-arg BUILDBOX=$(PLATFORM_BUILDBOX) \
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we sign our upgrader image as well during publishing? cc @tcsc

scheme = runtime.NewScheme()
)

func init() {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

What happened to all this stuff? Was this a leftover?

Copy link
Copy Markdown
Contributor Author

@hugoShaka hugoShaka Mar 15, 2023

Choose a reason for hiding this comment

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

Yes, those functions were helpers for the first end-to-end testing approach. However, I had to change the testing technique mid-course because we rely on pod status for some maintenance triggers and controllers. However, envtest runs a real Kubernetes API server which starts to fight for pod status reconciliation.

@r0mant r0mant requested review from tcsc and removed request for probakowski and rudream March 15, 2023 22:06
@hugoShaka hugoShaka requested review from r0mant and tigrato March 16, 2023 13:47
Copy link
Copy Markdown
Collaborator

@r0mant r0mant left a comment

Choose a reason for hiding this comment

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

@hugoShaka I'm going to remove operator tests from the required checks so you can merge this and then we'll mark the integrations check as required instead.

@hugoShaka hugoShaka force-pushed the hugo/kube-updater-pipeline branch from 836a39c to b2d9ff7 Compare March 21, 2023 23:34
@public-teleport-github-review-bot public-teleport-github-review-bot Bot removed the request for review from tcsc March 21, 2023 23:34
@hugoShaka hugoShaka force-pushed the hugo/kube-updater-pipeline branch from b2d9ff7 to f0a95a2 Compare March 22, 2023 00:29
@hugoShaka hugoShaka added this pull request to the merge queue Mar 22, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 22, 2023
@hugoShaka hugoShaka added this pull request to the merge queue Mar 22, 2023
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Mar 22, 2023
@hugoShaka hugoShaka added this pull request to the merge queue Mar 22, 2023
@hugoShaka hugoShaka merged commit 5040fbd into master Mar 22, 2023
@hugoShaka hugoShaka deleted the hugo/kube-updater-pipeline branch March 22, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants