Heat rebase against current master
This commit is contained in:
parent
b1e3de020b
commit
75d3cb659f
21
Makefile
21
Makefile
@ -1,12 +1,12 @@
|
||||
.PHONY: ceph bootstrap mariadb keystone heat memcached rabbitmq common openstack all clean
|
||||
.PHONY: ceph bootstrap mariadb keystone memcached rabbitmq common openstack neutron heat maas all clean
|
||||
|
||||
B64_DIRS := common/secrets
|
||||
B64_EXCLUDE := $(wildcard common/secrets/*.b64)
|
||||
|
||||
CHARTS := ceph mariadb rabbitmq GLANCE memcached keystone glance horizon heat openstack
|
||||
CHARTS := ceph mariadb rabbitmq GLANCE memcached keystone glance horizon neutron heat maas openstack
|
||||
COMMON_TPL := common/templates/_globals.tpl
|
||||
|
||||
all: common ceph bootstrap mariadb rabbitmq memcached keystone glance horizon heat openstack
|
||||
all: common ceph bootstrap mariadb rabbitmq memcached keystone glance horizon neutron heat maas openstack
|
||||
|
||||
common: build-common
|
||||
|
||||
@ -19,14 +19,18 @@ mariadb: build-mariadb
|
||||
|
||||
keystone: build-keystone
|
||||
|
||||
heat: build-heat
|
||||
|
||||
horizon: build-horizon
|
||||
|
||||
rabbitmq: build-rabbitmq
|
||||
|
||||
glance: build-glance
|
||||
|
||||
neutron: build-neutron
|
||||
|
||||
heat: build-heat
|
||||
|
||||
maas: build-maas
|
||||
|
||||
memcached: build-memcached
|
||||
|
||||
openstack: build-openstack
|
||||
@ -42,10 +46,3 @@ build-%:
|
||||
if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
|
||||
helm lint $*
|
||||
helm package $*
|
||||
|
||||
## this is required for some charts which cannot pass a lint, namely
|
||||
## those which use .Release.Namespace in a default pipe capacity
|
||||
#nolint-build-%:
|
||||
# if [ -f $*/Makefile ]; then make -C $*; fi
|
||||
# if [ -f $*/requirements.yaml ]; then helm dep up $*; fi
|
||||
# helm package $*
|
||||
|
@ -2,32 +2,6 @@
|
||||
# endpoints
|
||||
#-----------------------------------------
|
||||
|
||||
# this function returns the endpoint uri for a service, it takes an tuple
|
||||
# input in ther form: service-name, endpoint-class, port-name. eg:
|
||||
# { tuple "heat" "public" "api" . | include "endpoint_addr_lookup" }
|
||||
# will return the appropriate URI
|
||||
|
||||
{{- define "endpoint_addr_lookup" -}}
|
||||
{{- $name := index . 0 -}}
|
||||
{{- $endpoint := index . 1 -}}
|
||||
{{- $port := index . 2 -}}
|
||||
{{- $context := index . 3 -}}
|
||||
{{- $nameNorm := $name | replace "-" "_" }}
|
||||
{{- $endpointMap := index $context.Values.endpoints $nameNorm }}
|
||||
{{- $endpointScheme := index $endpointMap "scheme" }}
|
||||
{{- $endpointPath := index $endpointMap "path" }}
|
||||
{{- $fqdn := $context.Release.Namespace -}}
|
||||
{{- if $context.Values.endpoints.fqdn -}}
|
||||
{{- $fqdn := $context.Values.endpoints.fqdn -}}
|
||||
{{- end -}}
|
||||
{{- with $endpointMap -}}
|
||||
{{- $endpointHost := index .hosts $endpoint | default .hosts.default}}
|
||||
{{- $endpointPort := index .port $port }}
|
||||
{{- printf "%s://%s.%s:%1.f%s" $endpointScheme $endpointHost $fqdn $endpointPort $endpointPath | quote -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
# this should be a generic function leveraging a tuple
|
||||
# for input, e.g. { endpoint keystone internal . }
|
||||
# however, constructing this appears to be a
|
||||
@ -113,6 +87,31 @@
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
# this function returns the endpoint uri for a service, it takes an tuple
|
||||
# input in the form: service-name, endpoint-class, port-name. eg:
|
||||
# { tuple "heat" "public" "api" . | include "endpoint_addr_lookup" }
|
||||
# will return the appropriate URI. Once merged this should phase out the above.
|
||||
|
||||
{{- define "endpoint_addr_lookup" -}}
|
||||
{{- $name := index . 0 -}}
|
||||
{{- $endpoint := index . 1 -}}
|
||||
{{- $port := index . 2 -}}
|
||||
{{- $context := index . 3 -}}
|
||||
{{- $nameNorm := $name | replace "-" "_" }}
|
||||
{{- $endpointMap := index $context.Values.endpoints $nameNorm }}
|
||||
{{- $fqdn := $context.Release.Namespace -}}
|
||||
{{- if $context.Values.endpoints.fqdn -}}
|
||||
{{- $fqdn := $context.Values.endpoints.fqdn -}}
|
||||
{{- end -}}
|
||||
{{- with $endpointMap -}}
|
||||
{{- $endpointScheme := .scheme }}
|
||||
{{- $endpointHost := index .hosts $endpoint | default .hosts.default}}
|
||||
{{- $endpointPort := index .port $port }}
|
||||
{{- $endpointPath := .path }}
|
||||
{{- printf "%s://%s.%s:%1.f%s" $endpointScheme $endpointHost $fqdn $endpointPort $endpointPath | quote -}}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
#-------------------------------
|
||||
# endpoint type lookup
|
||||
@ -132,7 +131,6 @@
|
||||
{{- $endpointType | quote -}}
|
||||
{{- end -}}
|
||||
|
||||
|
||||
#-------------------------------
|
||||
# kolla helpers
|
||||
#-------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user