diff --git a/doc/source/install/openstack.rst b/doc/source/install/openstack.rst index 09895b1478..a47c36a340 100644 --- a/doc/source/install/openstack.rst +++ b/doc/source/install/openstack.rst @@ -62,12 +62,12 @@ Let's download the values overrides for the feature set defined above: .. code-block:: bash - INFRA_OVERRIDES_URL=https://opendev.org/openstack/openstack-helm-infra/raw/branch/master + INFRA_OVERRIDES_URL=https://opendev.org/openstack/openstack-helm-infra/raw/branch/master/values_overrides for chart in rabbitmq mariadb memcached openvswitch libvirt; do helm osh get-values-overrides -d -u ${INFRA_OVERRIDES_URL} -p ${OVERRIDES_DIR} -c ${chart} ${FEATURES} done - OVERRIDES_URL=https://opendev.org/openstack/openstack-helm/raw/branch/master + OVERRIDES_URL=https://opendev.org/openstack/openstack-helm/raw/branch/master/values_overrides for chart in keystone heat glance cinder placement nova neutron horizon; do helm osh get-values-overrides -d -u ${OVERRIDES_URL} -p ${OVERRIDES_DIR} -c ${chart} ${FEATURES} done diff --git a/doc/source/specs/2025.1/chart_versioning.rst b/doc/source/specs/2025.1/chart_versioning.rst index 975abfcbfe..5cfd3d297c 100644 --- a/doc/source/specs/2025.1/chart_versioning.rst +++ b/doc/source/specs/2025.1/chart_versioning.rst @@ -85,7 +85,7 @@ implemented. Values overrides ~~~~~~~~~~~~~~~~ Move values_overrides from all charts to a separate directory `values` -with the hierarchy `values//values_overrides/_.yaml`. +with the hierarchy `values_overrides//_.yaml`. The Openstack-Helm plugin is able to lookup the overrides in an arbitrary directory, but the directory structure must be as described above. diff --git a/tools/deployment/common/lockdown-netpol.sh b/tools/deployment/common/lockdown-netpol.sh index 16833b8666..4e7a96e4ea 100755 --- a/tools/deployment/common/lockdown-netpol.sh +++ b/tools/deployment/common/lockdown-netpol.sh @@ -15,8 +15,8 @@ set -xe #NOTE: Define variables : ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} -: ${OSH_INFRA_PATH:="../openstack-helm-infra"} -: ${OSH_EXTRA_HELM_ARGS_LOCKDOWN:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_INFRA_PATH} -c lockdown ${FEATURES})"} +: ${OSH_INFRA_VALUES_OVERRIDES_PATH:="../openstack-helm-infra/values_overrides"} +: ${OSH_EXTRA_HELM_ARGS_LOCKDOWN:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_INFRA_VALUES_OVERRIDES_PATH} -c lockdown ${FEATURES})"} #NOTE: Deploy command helm upgrade --install lockdown ${OSH_INFRA_HELM_REPO}/lockdown \ diff --git a/tools/deployment/common/openstack-exporter.sh b/tools/deployment/common/openstack-exporter.sh index fb4fd01776..1f1b5f90a1 100755 --- a/tools/deployment/common/openstack-exporter.sh +++ b/tools/deployment/common/openstack-exporter.sh @@ -16,8 +16,8 @@ set -xe #NOTE: Define variables : ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} -: ${OSH_INFRA_PATH:="../openstack-helm-infra"} -: ${OSH_EXTRA_HELM_ARGS_OSEXPORTER:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_INFRA_PATH} -c prometheus-openstack-exporter ${FEATURES})"} +: ${OSH_INFRA_VALUES_OVERRIDES_PATH:="../openstack-helm-infra/values_overrides"} +: ${OSH_EXTRA_HELM_ARGS_OSEXPORTER:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_INFRA_VALUES_OVERRIDES_PATH} -c prometheus-openstack-exporter ${FEATURES})"} #NOTE: Deploy command helm upgrade --install prometheus-openstack-exporter ${OSH_INFRA_HELM_REPO}/prometheus-openstack-exporter \ diff --git a/tools/deployment/common/push-images.sh b/tools/deployment/common/push-images.sh new file mode 100755 index 0000000000..718919159d --- /dev/null +++ b/tools/deployment/common/push-images.sh @@ -0,0 +1,18 @@ +#!/bin/bash +#set -x + +if [ "x$1" == "x" ]; then + CHART_DIRS="$(echo ./*/)" +else + CHART_DIRS="$(echo ./$1/)" +fi + +for CHART_DIR in ${CHART_DIRS} ; do +# echo $CHART_DIR + if [ -e ${CHART_DIR}values.yaml ]; then + for IMAGE in $(cat ${CHART_DIR}values.yaml | yq '.images.tags | map(.) | join(" ")' | tr -d '"'); do + # sudo docker inspect $IMAGE >/dev/null|| sudo docker pull $IMAGE + echo $IMAGE + done + fi +done \ No newline at end of file diff --git a/tools/deployment/component/aodh/aodh.sh b/tools/deployment/component/aodh/aodh.sh index d465673acb..30101886c5 100755 --- a/tools/deployment/component/aodh/aodh.sh +++ b/tools/deployment/component/aodh/aodh.sh @@ -15,8 +15,8 @@ set -xe #NOTE: Define variables : ${OSH_HELM_REPO:="../openstack-helm"} -: ${OSH_PATH:="../openstack-helm"} -: ${OSH_EXTRA_HELM_ARGS_AODH:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_PATH} -c aodh ${FEATURES})"} +: ${OSH_VALUES_OVERRIDES_PATH:="../openstack-helm/values"} +: ${OSH_EXTRA_HELM_ARGS_AODH:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_VALUES_OVERRIDES_PATH} -c aodh ${FEATURES})"} #NOTE: Wait for deploy helm upgrade --install aodh ${OSH_HELM_REPO}/aodh \ diff --git a/tools/deployment/component/barbican/barbican.sh b/tools/deployment/component/barbican/barbican.sh index 29b4c2196d..66ac7ac333 100755 --- a/tools/deployment/component/barbican/barbican.sh +++ b/tools/deployment/component/barbican/barbican.sh @@ -16,8 +16,8 @@ set -xe #NOTE: Define variables : ${OSH_HELM_REPO:="../openstack-helm"} -: ${OSH_PATH:="../openstack-helm"} -: ${OSH_EXTRA_HELM_ARGS_BARBICAN:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_PATH} -c barbican ${FEATURES})"} +: ${OSH_VALUES_OVERRIDES_PATH:="../openstack-helm/values"} +: ${OSH_EXTRA_HELM_ARGS_BARBICAN:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_VALUES_OVERRIDES_PATH} -c barbican ${FEATURES})"} : ${RUN_HELM_TESTS:="yes"} #NOTE: Deploy command diff --git a/tools/deployment/component/ceilometer/ceilometer.sh b/tools/deployment/component/ceilometer/ceilometer.sh index 8a9f6fbc38..29d2afb593 100755 --- a/tools/deployment/component/ceilometer/ceilometer.sh +++ b/tools/deployment/component/ceilometer/ceilometer.sh @@ -15,8 +15,8 @@ set -xe #NOTE: Define variables : ${OSH_HELM_REPO:="../openstack-helm"} -: ${OSH_PATH:="../openstack-helm"} -: ${OSH_EXTRA_HELM_ARGS_CEILOMETER:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_PATH} -c ceilometer ${FEATURES})"} +: ${OSH_VALUES_OVERRIDES_PATH:="../openstack-helm/values"} +: ${OSH_EXTRA_HELM_ARGS_CEILOMETER:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_VALUES_OVERRIDES_PATH} -c ceilometer ${FEATURES})"} #NOTE: Wait for deploy helm upgrade --install ceilometer ${OSH_HELM_REPO}/ceilometer \ diff --git a/tools/deployment/component/ceph/ceph-ns-activate.sh b/tools/deployment/component/ceph/ceph-ns-activate.sh index 53fbe2f74e..7baea2987c 100755 --- a/tools/deployment/component/ceph/ceph-ns-activate.sh +++ b/tools/deployment/component/ceph/ceph-ns-activate.sh @@ -16,8 +16,8 @@ set -xe #NOTE: Define variables : ${OSH_INFRA_HELM_REPO:="../openstack-helm-infra"} -: ${OSH_INFRA_PATH:="../openstack-helm-infra"} -: ${OSH_EXTRA_HELM_ARGS_CEPH_NS_ACTIVATE:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_INFRA_PATH} -c ceph-provisioners ${FEATURES})"} +: ${OSH_INFRA_VALUES_OVERRIDES_PATH:="../openstack-helm-infra/values_overrides"} +: ${OSH_EXTRA_HELM_ARGS_CEPH_NS_ACTIVATE:="$(helm osh get-values-overrides ${DOWNLOAD_OVERRIDES:-} -p ${OSH_INFRA_VALUES_OVERRIDES_PATH} -c ceph-provisioners ${FEATURES})"} #NOTE: Deploy command tee /tmp/ceph-openstack-config.yaml <