Skip to content

Commit 3089d50

Browse files
authored
Refactoring docs and directories for base helm and kustomize changes (#352)
1 parent 067328e commit 3089d50

File tree

296 files changed

+312
-186
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

296 files changed

+312
-186
lines changed

.github/workflows/kustomize-gateway-api-envoyproxy.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Kustomize GitHub Actions for Gateway API(envoyproxy)
33
on:
44
pull_request:
55
paths:
6-
- kustomize.example/gateway/envoyproxy/**
6+
- base-kustomize/gateway/envoyproxy/**
77
- .github/workflows/kustomize-gateway-api-envoyproxy.yaml
88
jobs:
99
kustomize:
@@ -25,7 +25,7 @@ jobs:
2525
fi
2626
- name: Run Kustomize Build
2727
run: |
28-
kustomize build kustomize.example/gateway/envoyproxy/ --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml
28+
kustomize build base-kustomize/gateway/envoyproxy/ --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml
2929
- name: Return Kustomize Build
3030
uses: actions/upload-artifact@v2
3131
with:

.github/workflows/kustomize-gateway-api-nginx-gateway-fabric.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Kustomize GitHub Actions for Gateway API(nginx-gateway-fabric)
33
on:
44
pull_request:
55
paths:
6-
- kustomize.example/gateway/nginx-gateway-fabric/**
6+
- base-kustomize/gateway/nginx-gateway-fabric/**
77
- .github/workflows/kustomize-gateway-api-nginx-gateway-fabric.yaml
88
jobs:
99
kustomize:
@@ -25,7 +25,7 @@ jobs:
2525
fi
2626
- name: Run Kustomize Build
2727
run: |
28-
kustomize build kustomize.example/gateway/nginx-gateway-fabric/ --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml
28+
kustomize build base-kustomize/gateway/nginx-gateway-fabric/ --enable-helm --helm-command ${{ steps.helm.outputs.helm-path }} > /tmp/rendered.yaml
2929
- name: Return Kustomize Build
3030
uses: actions/upload-artifact@v2
3131
with:

README.md

-38
This file was deleted.
File renamed without changes.

kustomize.example/skyline/base/services.yaml renamed to base-kustomize/skyline/base/services.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ spec:
6363
- name: https
6464
port: 443
6565
selector:
66-
app: ingress-api
66+
app: ingress-api

bin/install-ceilometer.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ helm upgrade --install ceilometer ./ceilometer \
44
--namespace=openstack \
55
--wait \
66
--timeout 10m \
7-
-f /etc/genestack/helm-configs/ceilometer/ceilometer-helm-overrides.yaml \
7+
-f /opt/genestack/base-helm-configs/ceilometer/ceilometer-helm-overrides.yaml \
88
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
99
--set endpoints.identity.auth.ceilometer.password="$(kubectl --namespace openstack get secret ceilometer-keystone-admin-password -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set endpoints.identity.auth.test.password="$(kubectl --namespace openstack get secret ceilometer-keystone-test-password -o jsonpath='{.data.password}' | base64 -d)" \

bin/install-cinder.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cd /opt/genestack/submodules/openstack-helm
44
helm upgrade --install heat ./heat \
55
--namespace=openstack \
66
--timeout 120m \
7-
-f /etc/genestack/helm-configs/heat/heat-helm-overrides.yaml \
7+
-f /opt/genestack/base-helm-configs/heat/heat-helm-overrides.yaml \
88
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
99
--set endpoints.identity.auth.heat.password="$(kubectl --namespace openstack get secret heat-admin -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set endpoints.identity.auth.heat_trustee.password="$(kubectl --namespace openstack get secret heat-trustee -o jsonpath='{.data.password}' | base64 -d)" \
@@ -14,5 +14,5 @@ helm upgrade --install heat ./heat \
1414
--set conf.heat.database.slave_connection="mysql+pymysql://heat:$(kubectl --namespace openstack get secret heat-db-password -o jsonpath='{.data.password}' | base64 -d)@mariadb-cluster-secondary.openstack.svc.cluster.local:3306/heat" \
1515
--set endpoints.oslo_messaging.auth.admin.password="$(kubectl --namespace openstack get secret rabbitmq-default-user -o jsonpath='{.data.password}' | base64 -d)" \
1616
--set endpoints.oslo_messaging.auth.heat.password="$(kubectl --namespace openstack get secret heat-rabbitmq-password -o jsonpath='{.data.password}' | base64 -d)" \
17-
--post-renderer /etc/genestack/kustomize/kustomize.sh \
17+
--post-renderer /opt/genestack/base-kustomize/kustomize.sh \
1818
--post-renderer-args heat/base

bin/install-glance.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ helm upgrade --install glance ./glance \
55
--namespace=openstack \
66
--wait \
77
--timeout 120m \
8-
-f /etc/genestack/helm-configs/glance/glance-helm-overrides.yaml \
8+
-f /opt/genestack/base-helm-configs/glance/glance-helm-overrides.yaml \
99
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set endpoints.identity.auth.glance.password="$(kubectl --namespace openstack get secret glance-admin -o jsonpath='{.data.password}' | base64 -d)" \
1111
--set endpoints.oslo_db.auth.admin.password="$(kubectl --namespace openstack get secret mariadb -o jsonpath='{.data.root-password}' | base64 -d)" \
1212
--set endpoints.oslo_db.auth.glance.password="$(kubectl --namespace openstack get secret glance-db-password -o jsonpath='{.data.password}' | base64 -d)" \
1313
--set conf.glance.database.slave_connection="mysql+pymysql://glance:$(kubectl --namespace openstack get secret glance-db-password -o jsonpath='{.data.password}' | base64 -d)@mariadb-cluster-secondary.openstack.svc.cluster.local:3306/glance" \
1414
--set endpoints.oslo_messaging.auth.admin.password="$(kubectl --namespace openstack get secret rabbitmq-default-user -o jsonpath='{.data.password}' | base64 -d)" \
1515
--set endpoints.oslo_messaging.auth.glance.password="$(kubectl --namespace openstack get secret glance-rabbitmq-password -o jsonpath='{.data.password}' | base64 -d)" \
16-
--post-renderer /etc/genestack/kustomize/kustomize.sh \
16+
--post-renderer /opt/genestack/base-kustomize/kustomize.sh \
1717
--post-renderer-args glance/base

bin/install-gnocchi.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ helm upgrade --install gnocchi ./gnocchi \
44
--namespace=openstack \
55
--wait \
66
--timeout 10m \
7-
-f /etc/genestack/helm-configs/gnocchi/gnocchi-helm-overrides.yaml \
7+
-f /opt/genestack/base-helm-configs/gnocchi/gnocchi-helm-overrides.yaml \
88
--set conf.ceph.admin_keyring="$(kubectl get secret --namespace rook-ceph rook-ceph-admin-keyring -o jsonpath='{.data.keyring}' | base64 -d)" \
99
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set endpoints.identity.auth.gnocchi.password="$(kubectl --namespace openstack get secret gnocchi-admin -o jsonpath='{.data.password}' | base64 -d)" \
1111
--set endpoints.oslo_db.auth.admin.password="$(kubectl --namespace openstack get secret mariadb -o jsonpath='{.data.root-password}' | base64 -d)" \
1212
--set endpoints.oslo_db.auth.gnocchi.password="$(kubectl --namespace openstack get secret gnocchi-db-password -o jsonpath='{.data.password}' | base64 -d)" \
1313
--set endpoints.oslo_db_postgresql.auth.admin.password="$(kubectl --namespace openstack get secret postgresql-db-admin -o jsonpath='{.data.password}' | base64 -d)" \
1414
--set endpoints.oslo_db_postgresql.auth.gnocchi.password="$(kubectl --namespace openstack get secret gnocchi-pgsql-password -o jsonpath='{.data.password}' | base64 -d)" \
15-
--post-renderer /etc/genestack/kustomize/kustomize.sh \
15+
--post-renderer /opt/genestack/base-kustomize/kustomize.sh \
1616
--post-renderer-args gnocchi/base

bin/install-heat.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ helm upgrade --install horizon ./horizon \
55
--namespace=openstack \
66
--wait \
77
--timeout 120m \
8-
-f /etc/genestack/helm-configs/horizon/horizon-helm-overrides.yaml \
8+
-f /opt/genestack/base-helm-configs/horizon/horizon-helm-overrides.yaml \
99
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set conf.horizon.local_settings.config.horizon_secret_key="$(kubectl --namespace openstack get secret horizon-secrete-key -o jsonpath='{.data.root-password}' | base64 -d)" \
1111
--set endpoints.oslo_db.auth.admin.password="$(kubectl --namespace openstack get secret mariadb -o jsonpath='{.data.root-password}' | base64 -d)" \
1212
--set endpoints.oslo_db.auth.horizon.password="$(kubectl --namespace openstack get secret horizon-db-password -o jsonpath='{.data.password}' | base64 -d)" \
13-
--post-renderer /etc/genestack/kustomize/kustomize.sh \
13+
--post-renderer /opt/genestack/base-kustomize/kustomize.sh \
1414
--post-renderer-args horizon/base

bin/install-keystone.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ helm upgrade --install keystone ./keystone \
55
--namespace=openstack \
66
--wait \
77
--timeout 120m \
8-
-f /etc/genestack/helm-configs/keystone/keystone-helm-overrides.yaml \
8+
-f /opt/genestack/base-helm-configs/keystone/keystone-helm-overrides.yaml \
99
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set endpoints.oslo_db.auth.admin.password="$(kubectl --namespace openstack get secret mariadb -o jsonpath='{.data.root-password}' | base64 -d)" \
1111
--set endpoints.oslo_db.auth.keystone.password="$(kubectl --namespace openstack get secret keystone-db-password -o jsonpath='{.data.password}' | base64 -d)" \
1212
--set conf.keystone.database.slave_connection="mysql+pymysql://keystone:$(kubectl --namespace openstack get secret keystone-db-password -o jsonpath='{.data.password}' | base64 -d)@mariadb-cluster-secondary.openstack.svc.cluster.local:3306/keystone" \
1313
--set endpoints.oslo_messaging.auth.admin.password="$(kubectl --namespace openstack get secret rabbitmq-default-user -o jsonpath='{.data.password}' | base64 -d)" \
1414
--set endpoints.oslo_messaging.auth.keystone.password="$(kubectl --namespace openstack get secret keystone-rabbitmq-password -o jsonpath='{.data.password}' | base64 -d)" \
15-
--post-renderer /etc/genestack/kustomize/kustomize.sh \
15+
--post-renderer /opt/genestack/base-kustomize/kustomize.sh \
1616
--post-renderer-args keystone/base
1717

18-
kubectl --namespace openstack apply -f /etc/genestack/manifests/utils/utils-openstack-client-admin.yaml
18+
kubectl --namespace openstack apply -f /opt/genestack/manifests/utils/utils-openstack-client-admin.yaml

bin/install-neutron.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cd /opt/genestack/submodules/openstack-helm
44
helm upgrade --install neutron ./neutron \
55
--namespace=openstack \
66
--timeout 120m \
7-
-f /etc/genestack/helm-configs/neutron/neutron-helm-overrides.yaml \
7+
-f /opt/genestack/base-helm-configs/neutron/neutron-helm-overrides.yaml \
88
--set conf.metadata_agent.DEFAULT.metadata_proxy_shared_secret="$(kubectl --namespace openstack get secret metadata-shared-secret -o jsonpath='{.data.password}' | base64 -d)" \
99
--set conf.ovn_metadata_agent.DEFAULT.metadata_proxy_shared_secret="$(kubectl --namespace openstack get secret metadata-shared-secret -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
@@ -22,5 +22,5 @@ helm upgrade --install neutron ./neutron \
2222
--set conf.neutron.ovn.ovn_sb_connection="tcp:$(kubectl --namespace kube-system get service ovn-sb -o jsonpath='{.spec.clusterIP}:{.spec.ports[0].port}')" \
2323
--set conf.plugins.ml2_conf.ovn.ovn_nb_connection="tcp:$(kubectl --namespace kube-system get service ovn-nb -o jsonpath='{.spec.clusterIP}:{.spec.ports[0].port}')" \
2424
--set conf.plugins.ml2_conf.ovn.ovn_sb_connection="tcp:$(kubectl --namespace kube-system get service ovn-sb -o jsonpath='{.spec.clusterIP}:{.spec.ports[0].port}')" \
25-
--post-renderer /etc/genestack/kustomize/kustomize.sh \
25+
--post-renderer /opt/genestack/base-kustomize/kustomize.sh \
2626
--post-renderer-args neutron/base

bin/install-nova.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ cd /opt/genestack/submodules/openstack-helm
44
helm upgrade --install nova ./nova \
55
--namespace=openstack \
66
--timeout 120m \
7-
-f /etc/genestack/helm-configs/nova/nova-helm-overrides.yaml \
7+
-f /opt/genestack/base-helm-configs/nova/nova-helm-overrides.yaml \
88
--set conf.nova.neutron.metadata_proxy_shared_secret="$(kubectl --namespace openstack get secret metadata-shared-secret -o jsonpath='{.data.password}' | base64 -d)" \
99
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set endpoints.identity.auth.nova.password="$(kubectl --namespace openstack get secret nova-admin -o jsonpath='{.data.password}' | base64 -d)" \
@@ -25,5 +25,5 @@ helm upgrade --install nova ./nova \
2525
--set endpoints.oslo_messaging.auth.nova.password="$(kubectl --namespace openstack get secret nova-rabbitmq-password -o jsonpath='{.data.password}' | base64 -d)" \
2626
--set network.ssh.public_key="$(kubectl -n openstack get secret nova-ssh-keypair -o jsonpath='{.data.public_key}' | base64 -d)"$'\n' \
2727
--set network.ssh.private_key="$(kubectl -n openstack get secret nova-ssh-keypair -o jsonpath='{.data.private_key}' | base64 -d)"$'\n' \
28-
--post-renderer /etc/genestack/kustomize/kustomize.sh \
28+
--post-renderer /opt/genestack/base-kustomize/kustomize.sh \
2929
--post-renderer-args nova/base

bin/install-octavia.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ helm upgrade --install octavia ./octavia \
55
--namespace=openstack \
66
--wait \
77
--timeout 120m \
8-
-f /etc/genestack/helm-configs/octavia/octavia-helm-overrides.yaml \
8+
-f /opt/genestack/base-helm-configs/octavia/octavia-helm-overrides.yaml \
99
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set endpoints.identity.auth.octavia.password="$(kubectl --namespace openstack get secret octavia-admin -o jsonpath='{.data.password}' | base64 -d)" \
1111
--set endpoints.oslo_db.auth.admin.password="$(kubectl --namespace openstack get secret mariadb -o jsonpath='{.data.root-password}' | base64 -d)" \
@@ -16,5 +16,5 @@ helm upgrade --install octavia ./octavia \
1616
--set conf.octavia.certificates.ca_private_key_passphrase="$(kubectl --namespace openstack get secret octavia-certificates -o jsonpath='{.data.password}' | base64 -d)" \
1717
--set conf.octavia.ovn.ovn_nb_connection="tcp:$(kubectl --namespace kube-system get service ovn-nb -o jsonpath='{.spec.clusterIP}:{.spec.ports[0].port}')" \
1818
--set conf.octavia.ovn.ovn_sb_connection="tcp:$(kubectl --namespace kube-system get service ovn-sb -o jsonpath='{.spec.clusterIP}:{.spec.ports[0].port}')" \
19-
--post-renderer /etc/genestack/kustomize/kustomize.sh \
19+
--post-renderer /opt/genestack/base-kustomize/kustomize.sh \
2020
--post-renderer-args octavia/base

bin/install-placement.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ cd /opt/genestack/submodules/openstack-helm
44
helm upgrade --install placement ./placement --namespace=openstack \
55
--namespace=openstack \
66
--timeout 120m \
7-
-f /etc/genestack/helm-configs/placement/placement-helm-overrides.yaml \
7+
-f /opt/genestack/base-helm-configs/placement/placement-helm-overrides.yaml \
88
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
99
--set endpoints.identity.auth.placement.password="$(kubectl --namespace openstack get secret placement-admin -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set endpoints.oslo_db.auth.admin.password="$(kubectl --namespace openstack get secret mariadb -o jsonpath='{.data.root-password}' | base64 -d)" \
1111
--set endpoints.oslo_db.auth.placement.password="$(kubectl --namespace openstack get secret placement-db-password -o jsonpath='{.data.password}' | base64 -d)" \
1212
--set conf.placement.placement_database.slave_connection="mysql+pymysql://placement:$(kubectl --namespace openstack get secret placement-db-password -o jsonpath='{.data.password}' | base64 -d)@mariadb-cluster-secondary.openstack.svc.cluster.local:3306/placement" \
1313
--set endpoints.oslo_db.auth.nova_api.password="$(kubectl --namespace openstack get secret nova-db-password -o jsonpath='{.data.password}' | base64 -d)" \
14-
--post-renderer /etc/genestack/kustomize/kustomize.sh \
14+
--post-renderer /opt/genestack/base-kustomize/kustomize.sh \
1515
--post-renderer-args placement/base

bin/install-postgresql.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ helm upgrade --install postgresql ./postgresql \
44
--namespace=openstack \
55
--wait \
66
--timeout 10m \
7-
-f /etc/genestack/helm-configs/postgresql/postgresql-helm-overrides.yaml \
7+
-f /opt/genestack/base-helm-configs/postgresql/postgresql-helm-overrides.yaml \
88
--set endpoints.identity.auth.admin.password="$(kubectl --namespace openstack get secret keystone-admin -o jsonpath='{.data.password}' | base64 -d)" \
99
--set endpoints.identity.auth.postgresql.password="$(kubectl --namespace openstack get secret postgresql-identity-admin -o jsonpath='{.data.password}' | base64 -d)" \
1010
--set endpoints.postgresql.auth.admin.password="$(kubectl --namespace openstack get secret postgresql-db-admin -o jsonpath='{.data.password}' | base64 -d)" \

bin/install-skyline.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/bin/bash
2-
kubectl --namespace openstack apply -k /etc/genestack/kustomize/skyline/base
2+
kubectl --namespace openstack apply -k /opt/genestack/base-kustomize/skyline/base

bootstrap.sh

-9
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,6 @@ test -L $GENESTACK_CONFIG 2>&1 || mkdir -p ${GENESTACK_CONFIG}
5656
test -f $GENESTACK_CONFIG/provider || echo ${K8S_PROVIDER} > ${GENESTACK_CONFIG}/provider
5757
test -f $GENESTACK_CONFIG/product || echo ${GENESTACK_PRODUCT} > ${GENESTACK_CONFIG}/product
5858
mkdir -p $GENESTACK_CONFIG/inventory/group_vars ${GENESTACK_CONFIG}/inventory/credentials
59-
if [ ! -d "/etc/genestack/helm-configs" ]; then
60-
cp -r /opt/genestack/helm-configs.example /etc/genestack/helm-configs
61-
fi
62-
if [ ! -d "/etc/genestack/kustomize" ]; then
63-
cp -r /opt/genestack/kustomize.example /etc/genestack/kustomize
64-
fi
65-
if [ ! -d "/etc/genestack/manifests" ]; then
66-
cp -r /opt/genestack/manifests /etc/genestack/manifests
67-
fi
6859

6960
# Copy default k8s config
7061
test -d "ansible/inventory/${GENESTACK_PRODUCT}" || error "Product Config ${GENESTACK_PRODUCT} does not exist here"

docs/etcd-backup.md

+1-1

docs/extra-osie.md

+1-1

0 commit comments

Comments
 (0)