Skip to content

Commit

Permalink
Merge pull request #992 from openshift-cherrypick-robot/cherry-pick-9…
Browse files Browse the repository at this point in the history
…64-to-18.0-fr1

[18.0-fr1] Add openstack_crds_cleanup and openstack_patch_version target
  • Loading branch information
openshift-merge-bot[bot] authored Dec 21, 2024
2 parents 54f2669 + c899db6 commit 239c562
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,12 @@ openstack_update_run:
$(eval $(call vars,$@,openstack))
bash scripts/openstack-update.sh

OV := $(shell oc get openstackversion -n $(NAMESPACE) -o name)
.PHONY: openstack_patch_version
openstack_patch_version: ## patches the openstackversion target version to the available version, if there is an update available
$(eval $(call vars,$@,openstack))
oc wait -n ${NAMESPACE} ${OV} --for=condition=MinorUpdateAvailable --timeout=${TIMEOUT} && \
oc patch -n ${NAMESPACE} ${OV} --type merge --patch '{"spec": {"targetVersion": "$(shell oc get -n $(NAMESPACE) ${OV} -o yaml | yq .status.availableVersion)"}}'

.PHONY: edpm_deploy_generate_keys
edpm_deploy_generate_keys:
Expand Down Expand Up @@ -920,6 +926,10 @@ edpm_nova_discover_hosts: ## trigger manual compute host discovery in nova
openstack_crds: namespace openstack_deploy_prep ## installs all openstack CRDs. Useful for infrastructure dev
OPENSTACK_BUNDLE_IMG=${OPENSTACK_BUNDLE_IMG} OUT=${OUT} OPENSTACK_CRDS_DIR=${OPENSTACK_CRDS_DIR} OPERATOR_BASE_DIR=${OPERATOR_BASE_DIR} bash scripts/openstack-crds.sh

.PHONY: openstack_crds_cleanup
openstack_crds_cleanup: ## deletes all openstack CRDs. Useful for installing a ga version. expects that all deployments are gone before
oc delete $$(oc get crd -o name |grep 'openstack\.org')

.PHONY: edpm_deploy_networker_prep
edpm_deploy_networker_prep: export KIND=OpenStackDataPlaneNodeSet
edpm_deploy_networker_prep: export EDPM_ANSIBLE_SECRET=${DATAPLANE_ANSIBLE_SECRET}
Expand Down

0 comments on commit 239c562

Please sign in to comment.