Merge "Ceph charts: Add missing templates, update dependency values"

This commit is contained in:
Zuul 2019-04-07 08:20:20 +00:00 committed by Gerrit Code Review
commit 3d058cad54
6 changed files with 64 additions and 11 deletions

View File

@ -216,10 +216,6 @@ dependencies:
services:
- endpoint: internal
service: local_image_registry
tests:
services:
- endpoint: internal
service: ceph_mon
tests:
jobs:
- ceph-storage-keys-generator

View File

@ -0,0 +1,20 @@
{{/*
Copyright 2017 The Openstack-Helm Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/}}
{{- if and .Values.manifests.job_image_repo_sync .Values.images.local_registry.active }}
{{- $imageRepoSyncJob := dict "envAll" . "serviceName" "ceph-provisioners" -}}
{{ $imageRepoSyncJob | include "helm-toolkit.manifests.job_image_repo_sync" }}
{{- end }}

View File

@ -122,7 +122,7 @@ dependencies:
common:
local_image_registry:
jobs:
- ceph-client-image-repo-sync
- ceph-provisioners-image-repo-sync
services:
- endpoint: node
service: local_image_registry

View File

@ -18,7 +18,19 @@ limitations under the License.
{{- $envAll := . }}
{{- $serviceAccountName := "ceph-rgw" }}
{{ tuple $envAll "rgw" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
{{- $_ := set $envAll.Values "__depParams" ( list ) }}
{{- if .Values.conf.rgw_ks.enabled -}}
{{- $__updateDepParams := append $envAll.Values.__depParams "keystone" -}}
{{- $_ := set $envAll.Values "__depParams" $__updateDepParams -}}
{{- end -}}
{{- if .Values.conf.rgw_s3.enabled -}}
{{- $__updateDepParams := append $envAll.Values.__depParams "s3" -}}
{{- $_ := set $envAll.Values "__depParams" $__updateDepParams -}}
{{- end -}}
{{- $dependencyOpts := dict "envAll" $envAll "dependencyMixinParam" $envAll.Values.__depParams "dependencyKey" "rgw" -}}
{{- $_ := include "helm-toolkit.utils.dependency_resolver" $dependencyOpts | toString | fromYaml }}
{{ tuple $envAll "pod_dependency" $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
---
kind: Deployment
apiVersion: apps/v1
@ -48,7 +60,7 @@ spec:
nodeSelector:
{{ .Values.labels.rgw.node_selector_key }}: {{ .Values.labels.rgw.node_selector_value }}
initContainers:
{{ tuple $envAll "rgw" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
{{ tuple $envAll "pod_dependency" list | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}
- name: ceph-init-dirs
{{ tuple $envAll "ceph_rgw" | include "helm-toolkit.snippets.image" | indent 10 }}
command:

View File

@ -0,0 +1,20 @@
{{/*
Copyright 2017 The Openstack-Helm Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/}}
{{- if and .Values.manifests.job_image_repo_sync .Values.images.local_registry.active }}
{{- $imageRepoSyncJob := dict "envAll" . "serviceName" "ceph-rgw" -}}
{{ $imageRepoSyncJob | include "helm-toolkit.manifests.job_image_repo_sync" }}
{{- end }}

View File

@ -325,10 +325,18 @@ dependencies:
common:
local_image_registry:
jobs:
- ceph-client-image-repo-sync
- ceph-rgw-image-repo-sync
services:
- endpoint: node
service: local_image_registry
targeted:
keystone:
rgw:
services:
- endpoint: internal
service: identity
s3:
rgw: {}
static:
bootstrap:
jobs: null
@ -338,9 +346,6 @@ dependencies:
rgw:
jobs:
- ceph-rgw-storage-init
services:
- endpoint: internal
service: keystone-api
image_repo_sync:
services:
- endpoint: internal