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

feat: make SpaceBindingRequest.Spec.MasterUserRecord immutable #792

Merged
merged 6 commits into from
Sep 11, 2023

Conversation

mfrancisc
Copy link
Contributor

Update spacebindingrequest_test in order to ensure SpaceBindingRequest.Spec.MasterUserRecord cannot be updated.

Jira: https://issues.redhat.com/browse/ASC-426

Paired with: codeready-toolchain/member-operator#470

//require.Len(t, spacebindingrequestWebhook.Rules, 1)
//
//spacebindingrequestRule := spacebindingrequestWebhook.Rules[0]
//assert.Equal(t, []admv1.OperationType{admv1.Create, admv1.Update}, spacebindingrequestRule.Operations)
Copy link
Collaborator

Choose a reason for hiding this comment

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

please don't forget to add the patch as proposed in the other PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unless I've missed it there is not PATCH , plz see codeready-toolchain/member-operator#470 (comment) 🤷‍♂️

Copy link
Collaborator

Choose a reason for hiding this comment

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

I see now - thanks for the link and your answer there 👍

@openshift-ci
Copy link

openshift-ci bot commented Sep 7, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: MatousJobanek, mfrancisc

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

@openshift-ci openshift-ci bot added the approved label Sep 7, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Sep 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@mfrancisc mfrancisc merged commit 0edcbef into codeready-toolchain:master Sep 11, 2023
6 checks passed
@mfrancisc mfrancisc deleted the murvalidate branch September 11, 2023 14:11
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.

2 participants