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

Test for Web-hooks and converting the top-level Instance Spec fields to pointers #129

Merged
merged 23 commits into from
Jul 20, 2023

Conversation

akshmish
Copy link
Contributor

@akshmish akshmish commented Jul 13, 2023

What this PR does / why we need it:

Converts the structs input fields into Pointers.
Add Functional Tests for the Web-hooks

How Has This Been Tested?:

Test Spec:
https://docs.google.com/document/d/1bxNGsA3JU9bktCfjEbYoq51kQLqi9QTGiejK1D0THCc/edit

@akshmish akshmish changed the title Converting TMInfo field to pointer Converting structs from the DB spec to pointers Jul 13, 2023
@akshmish akshmish marked this pull request as ready for review July 14, 2023 17:41
@akshmish akshmish requested review from manavrajvanshi, yash-ntnx and shenoypritika and removed request for yash-ntnx July 14, 2023 17:41
@akshmish akshmish changed the title Converting structs from the DB spec to pointers Converting the top-level Instance Spec structs to pointers Jul 14, 2023
api/v1alpha1/database_types.go Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Outdated Show resolved Hide resolved
common/constants.go Outdated Show resolved Hide resolved
config/manager/kustomization.yaml Outdated Show resolved Hide resolved
test/ndb_api_helpers_test.go Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Show resolved Hide resolved
api/v1alpha1/database_webhook.go Show resolved Hide resolved
Makefile Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Outdated Show resolved Hide resolved
api/v1alpha1/zz_generated.deepcopy.go Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Show resolved Hide resolved
api/v1alpha1/database_webhook.go Outdated Show resolved Hide resolved
@akshmish akshmish changed the title Converting the top-level Instance Spec structs to pointers Converting the top-level Instance Spec fields to pointers Jul 18, 2023
@akshmish akshmish requested a review from yash-ntnx July 19, 2023 18:23
api/v1alpha1/webhook_suite_test.go Outdated Show resolved Hide resolved
api/v1alpha1/webhook_suite_test.go Outdated Show resolved Hide resolved
api/v1alpha1/webhook_suite_test.go Outdated Show resolved Hide resolved
Copy link
Contributor

@manavrajvanshi manavrajvanshi left a comment

Choose a reason for hiding this comment

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

Looks good with follow ups on:

  1. Pointer for slice type (redundant, can be removed)
  2. Few logs
  3. Reverting your private docker registry

api/v1alpha1/database_types.go Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Outdated Show resolved Hide resolved
api/v1alpha1/database_webhook.go Show resolved Hide resolved
api/v1alpha1/database_webhook.go Outdated Show resolved Hide resolved
@akshmish akshmish changed the title Converting the top-level Instance Spec fields to pointers Test for Web-hooks and converting the top-level Instance Spec fields to pointers Jul 20, 2023
@akshmish akshmish merged commit 8c4f381 into main Jul 20, 2023
6 checks passed
@manavrajvanshi manavrajvanshi deleted the pointers branch August 16, 2023 21:39
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.

4 participants