-
Notifications
You must be signed in to change notification settings - Fork 20
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
Add missing logic for DefaultConfigOverwrite #148
Add missing logic for DefaultConfigOverwrite #148
Conversation
func (r PlacementAPISpec) ValidateCreate(basePath *field.Path) field.ErrorList { | ||
return r.ValidateDefaultConfigOverwrite(basePath) | ||
} | ||
|
||
func (r PlacementAPISpec) ValidateUpdate(old PlacementAPISpec, basePath *field.Path) field.ErrorList { | ||
return r.ValidateDefaultConfigOverwrite(basePath) | ||
} |
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.
openstack-operator needs to call this
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.
Proposed in openstack-k8s-operators/openstack-operator#660
The placement-operator now has validation webhook, so openstack-operator should call it during validation. Depends-On: openstack-k8s-operators/placement-operator#148
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.
It will be nice if we also clean comments about DefaultConfigOverwrite in https://github.com/openstack-k8s-operators/placement-operator/blob/main/controllers/placementapi_controller.go#L1177
We only want to support the policy.yaml file passthrough for PlacementAPI The kolla config files are modified to move the supported files in place. Implements: OSPRH-2503
a7e7d12
to
21d9e5b
Compare
Done. |
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.
lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: gibizer, mrkisaolamb 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 |
/test placement-operator-build-deploy-kuttl infra operator failed to start
|
533e51d
into
openstack-k8s-operators:main
The placement-operator now has validation webhook, so openstack-operator should call it during validation. Depends-On: openstack-k8s-operators/placement-operator#148
The placement-operator now has validation webhook, so openstack-operator should call it during validation. Depends-On: openstack-k8s-operators/placement-operator#148
We only want to support the policy.yaml file passthrough for PlacementAPI
The kolla config files are modified to move the supported files in place.
Implements: OSPRH-2503