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

Provisioner no longer registers runtime in the Compass Director, and creates the secret for Compass Runtime Agent #3399

Merged
merged 13 commits into from
Mar 12, 2024

Conversation

koala7659
Copy link
Contributor

@koala7659 koala7659 commented Mar 4, 2024

Implementation of #3088

Provisioner should no longer register runtime in the Compass Director, and create the secret for Compass Runtime Agent.

The feature is controlled with a two configuration flags to be able selectively disable old functionality on specific environment (DEV, STAGE, PROD)

KCP Overides:
compassIntegration.registratonEnabled, compassIntegration.deregistrationEnabled

Both flags are set to true by default.

…creates the secret for Compass Runtime Agent
@koala7659 koala7659 requested a review from a team as a code owner March 4, 2024 13:31
@kyma-bot kyma-bot added the cla: yes Indicates the PR's author has signed the CLA. label Mar 4, 2024
@koala7659 koala7659 changed the title Provisioner no longer registers runtime in the Compass Director, and creates the secret for Compass Runtime Agent [WIP] Provisioner no longer registers runtime in the Compass Director, and creates the secret for Compass Runtime Agent Mar 4, 2024
@kyma-bot kyma-bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. labels Mar 4, 2024
@koala7659 koala7659 linked an issue Mar 5, 2024 that may be closed by this pull request
3 tasks
@koala7659 koala7659 changed the title [WIP] Provisioner no longer registers runtime in the Compass Director, and creates the secret for Compass Runtime Agent Provisioner no longer registers runtime in the Compass Director, and creates the secret for Compass Runtime Agent Mar 5, 2024
@kyma-bot kyma-bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Mar 5, 2024
@kyma-bot kyma-bot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Mar 5, 2024
@koala7659 koala7659 requested a review from akgalwas March 7, 2024 09:16
@@ -109,6 +109,11 @@ export APP_PROVISIONING_TIMEOUT_CLUSTER_CREATION=90m
export APP_PROVISIONING_NO_INSTALL_TIMEOUT_CLUSTER_CREATION=90m
export APP_PROVISIONING_TIMEOUT_UPGRADE_TRIGGERING=90m

# for testing disabled Compass registration/deregistration
export APP_PROVISIONING_RUNTIME_REGISTRATION_ENABLED="false"
Copy link
Contributor

Choose a reason for hiding this comment

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

There are the following env variables:

  • APP_RUNTIME_REGISTRATION_ENABLED
  • APP_RUNTIME_DEREGISTRATION_ENABLED
    passed to the container. I can't where APP_PROVISIONING_RUNTIME_REGISTRATION_ENABLED, and APP_PROVISIONING_RUNTIME_DEREGISTRATION_ENABLED is used.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it was from previous version. I will fix it

Copy link
Contributor Author

@koala7659 koala7659 Mar 8, 2024

Choose a reason for hiding this comment

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

E2E tests always fail anyway with success :)

@@ -72,6 +72,33 @@ func TestStagesExecutor_Execute(t *testing.T) {
assert.True(t, mockStage.called)
})

t.Run("should not requeue operation when stage if Finished and Director integration is disabled", 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.

if Finished -> is finished

akgalwas
akgalwas previously approved these changes Mar 8, 2024
@kyma-bot kyma-bot added the lgtm Looks good to me! label Mar 8, 2024
@koala7659
Copy link
Contributor Author

/test pre-main-provisioner-e2e-tests

@kyma-bot kyma-bot removed the lgtm Looks good to me! label Mar 11, 2024
@koala7659
Copy link
Contributor Author

/test all

1 similar comment
@koala7659
Copy link
Contributor Author

/test all

@kyma-bot
Copy link
Contributor

@koala7659: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pre-main-provisioner-e2e-tests 0bfb5cc link false /test pre-main-provisioner-e2e-tests

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@kyma-bot kyma-bot added the lgtm Looks good to me! label Mar 12, 2024
@kyma-bot kyma-bot merged commit b74ff6d into kyma-project:main Mar 12, 2024
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indicates the PR's author has signed the CLA. lgtm Looks good to me! size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove Compass integration code from the Provisioner
3 participants