[skeleton] workloads.lawrjone.xyz (Console) #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
pkg/apis/workloads: Console (no codegen)
Create the definition of a Console, an instance of a console
environment. This is only the skeleton of what we'll have later, but is
designed to store the User field which we'll then prove can work with
mutating webhooks.
This commit does not update codegen, to make it clearer to reviewers
what has been done by a human and what is machine generated.
## make codegen: add workloads:v1alpha1
Following on from the previous commit that introduced the API
definitions for the workloads API group (and Console resource), this
updates our generated client to include the workloads resources.
Skeleton workloads controller and webhooks
Create the new workloads manager, along with skeleton controller and
webhook code. This version of the manager uses automatic creation of
webhooks in the cluster, and also manages the service that will point at
the statefulset. Ideally we'd only automatically update the webhook
configuration but the controller-runtime doesn't allow this: we'll
likely change this implementation in future.
pkg/workloads/console/integration
Create integration tests that verify console behaviour, both the webhook
and the controller together. This commit introduces a number of
integration test helpers that should be really useful for testing
admission webhooks, such as integration.NewServer and similar matchers
for test channels as with the reconcile loop.