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

Add missing logic for DefaultConfigOverwrite #148

Conversation

gibizer
Copy link
Collaborator

@gibizer gibizer commented Feb 8, 2024

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

Comment on lines +122 to +128
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)
}
Copy link
Collaborator Author

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

gibizer added a commit to gibizer/openstack-operator that referenced this pull request Feb 8, 2024
The placement-operator now has validation webhook, so openstack-operator
should call it during validation.

Depends-On: openstack-k8s-operators/placement-operator#148
Copy link
Contributor

@mrkisaolamb mrkisaolamb left a comment

Choose a reason for hiding this comment

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

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
@gibizer gibizer force-pushed the default-config-overwrite branch from a7e7d12 to 21d9e5b Compare February 9, 2024 10:26
@gibizer
Copy link
Collaborator Author

gibizer commented Feb 9, 2024

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

Done.

Copy link
Contributor

@mrkisaolamb mrkisaolamb left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

openshift-ci bot commented Feb 9, 2024

[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:
  • OWNERS [gibizer,mrkisaolamb]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gibizer
Copy link
Collaborator Author

gibizer commented Feb 9, 2024

/test placement-operator-build-deploy-kuttl

infra operator failed to start

++ oc get csv -n openstack-operators -o 'jsonpath={range .items[*]}{@.metadata.name}{"\n"}{end}'
++ grep -E '^infra-operator\.v'
+ CSVNAME=
+ '[' -z '' ']'
+ echo NOTFOUND
+ exit 1
+ rc=124
+ popd
~/install_yamls
+ exit 124
make[1]: *** [Makefile:511: wait] Error 124
make[1]: Leaving directory '/alabama/install_yamls'
make: *** [Makefile:977: memcached_deploy] Error 2

@openshift-merge-bot openshift-merge-bot bot merged commit 533e51d into openstack-k8s-operators:main Feb 9, 2024
6 checks passed
gibizer added a commit to gibizer/openstack-operator that referenced this pull request Feb 9, 2024
The placement-operator now has validation webhook, so openstack-operator
should call it during validation.

Depends-On: openstack-k8s-operators/placement-operator#148
stuggi pushed a commit to stuggi/openstack-operator that referenced this pull request Feb 13, 2024
The placement-operator now has validation webhook, so openstack-operator
should call it during validation.

Depends-On: openstack-k8s-operators/placement-operator#148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants