-
Notifications
You must be signed in to change notification settings - Fork 68
override create() and deploy() for projectrequest #996
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
Conversation
|
The following are automatically added:
Available user actions:
|
|
Kudos, SonarCloud Quality Gate passed!
|
|
!verified |
| """ | ||
| super().client_wait_deleted(timeout=timeout) | ||
|
|
||
| def deploy(self, wait=False): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this breaks using skip_resource_kind_create_if_exists
| if not self.res: | ||
| self.to_dict() | ||
|
|
||
| self.logger.info(f"Create {self.kind} {self.name}") | ||
| self.logger.info(f"Posting {self.res}") | ||
| self.logger.debug(f"\n{yaml.dump(self.res)}") | ||
|
|
||
| self.api.create(body=self.res, namespace=self.namespace, dry_run=self.dry_run) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate code, please save and re-use
|
Fixed by #998 |








Short description: Need to override deploy() call for project request, as currently if an unprivileged user is making a projectrequest post call, using the base class create(), this call would fail due to
self.instance.metadata.resourceVersionline. As unprivileged user can't make this call.More details:
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
Bug: