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

Cleanup unused code and fixup labeling #264

Merged

Conversation

kurt-google
Copy link
Collaborator

This fixes some apt-get handling, removes the mostly unused config controller (Config CR functionality is unchanged by this), and starts to standardize our k8s resource labeling to align with better standards.

Kurt Kartaltepe added 3 commits October 19, 2022 14:40
We were using apt which may prompt, instead heed the warning and use
apt-get and pass -y to agree to any potential prompts. Fixes presubmits.

Change-Id: I4c6f7a77db7b70582f239cafe79eb413284a6fd6
This controller is mostly unused, it attempts to reconcile instances
when a shared config change occurs but this violates the one controller
for a resource principle and makes some upcoming changes harder. Instead
let the instance controller eventually propagate changes from the
configs.

Future work would be to add a watcher on the config types from the
instance controller similar to the PITR's watch on instances.

Change-Id: Iab9c5e15e4bc01ab914fc915001d7ba8cc39a4c3
We have a number of labels that we use for matching against the various
resources in El-Carro. This moves us towards a smaller set of more
flexible labels.

"instance" should be used to tag all resources associated with a
particular instance
"task-type" should be used to differentiate deployments by their
purpose, right now just "database" but our agent deployments can also be
migrated to this in the near future.

Change-Id: Ib4b60b67e43a909065533e7400db56aea5e6145c
Copy link
Collaborator

@akinfermo akinfermo left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: akinfermo, kurt-google

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kurt-google kurt-google merged commit 8fd95a7 into GoogleCloudPlatform:main Oct 20, 2022
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.

None yet

2 participants