Ceph charts: Add missing templates, update dependency values
This addresses slight issues with the ceph-osd, ceph-provisioners, and ceph-rgw charts. Those issues include: - Remove duplicate test: key in ceph-osd dependencies - Add missing image repo sync job to ceph-provisioner and rgw - Use correct job name for image repo sync dependencies in charts - Remove incorrect keystone service dependency for ceph-rgw, as the keystone jobs are dependent on the keystone service This also updates the ceph-rgw chart to use dynamic dependencies based on whether keystone auth or s3 auth is used Change-Id: Id3b3f289bdd4ca4d1b2e9b6267b12427e422a08d
This commit is contained in:
parent
63b61b86eb
commit
7f04846c52
@ -216,10 +216,6 @@ dependencies:
|
|||||||
services:
|
services:
|
||||||
- endpoint: internal
|
- endpoint: internal
|
||||||
service: local_image_registry
|
service: local_image_registry
|
||||||
tests:
|
|
||||||
services:
|
|
||||||
- endpoint: internal
|
|
||||||
service: ceph_mon
|
|
||||||
tests:
|
tests:
|
||||||
jobs:
|
jobs:
|
||||||
- ceph-storage-keys-generator
|
- ceph-storage-keys-generator
|
||||||
|
20
ceph-provisioners/templates/job-image-repo-sync.yaml
Normal file
20
ceph-provisioners/templates/job-image-repo-sync.yaml
Normal 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 }}
|
@ -122,7 +122,7 @@ dependencies:
|
|||||||
common:
|
common:
|
||||||
local_image_registry:
|
local_image_registry:
|
||||||
jobs:
|
jobs:
|
||||||
- ceph-client-image-repo-sync
|
- ceph-provisioners-image-repo-sync
|
||||||
services:
|
services:
|
||||||
- endpoint: node
|
- endpoint: node
|
||||||
service: local_image_registry
|
service: local_image_registry
|
||||||
|
@ -18,7 +18,19 @@ limitations under the License.
|
|||||||
{{- $envAll := . }}
|
{{- $envAll := . }}
|
||||||
|
|
||||||
{{- $serviceAccountName := "ceph-rgw" }}
|
{{- $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
|
kind: Deployment
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
@ -48,7 +60,7 @@ spec:
|
|||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ .Values.labels.rgw.node_selector_key }}: {{ .Values.labels.rgw.node_selector_value }}
|
{{ .Values.labels.rgw.node_selector_key }}: {{ .Values.labels.rgw.node_selector_value }}
|
||||||
initContainers:
|
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
|
- name: ceph-init-dirs
|
||||||
{{ tuple $envAll "ceph_rgw" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ tuple $envAll "ceph_rgw" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
command:
|
command:
|
||||||
|
20
ceph-rgw/templates/job-image-repo-sync.yaml
Normal file
20
ceph-rgw/templates/job-image-repo-sync.yaml
Normal 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 }}
|
@ -325,10 +325,18 @@ dependencies:
|
|||||||
common:
|
common:
|
||||||
local_image_registry:
|
local_image_registry:
|
||||||
jobs:
|
jobs:
|
||||||
- ceph-client-image-repo-sync
|
- ceph-rgw-image-repo-sync
|
||||||
services:
|
services:
|
||||||
- endpoint: node
|
- endpoint: node
|
||||||
service: local_image_registry
|
service: local_image_registry
|
||||||
|
targeted:
|
||||||
|
keystone:
|
||||||
|
rgw:
|
||||||
|
services:
|
||||||
|
- endpoint: internal
|
||||||
|
service: identity
|
||||||
|
s3:
|
||||||
|
rgw: {}
|
||||||
static:
|
static:
|
||||||
bootstrap:
|
bootstrap:
|
||||||
jobs: null
|
jobs: null
|
||||||
@ -338,9 +346,6 @@ dependencies:
|
|||||||
rgw:
|
rgw:
|
||||||
jobs:
|
jobs:
|
||||||
- ceph-rgw-storage-init
|
- ceph-rgw-storage-init
|
||||||
services:
|
|
||||||
- endpoint: internal
|
|
||||||
service: keystone-api
|
|
||||||
image_repo_sync:
|
image_repo_sync:
|
||||||
services:
|
services:
|
||||||
- endpoint: internal
|
- endpoint: internal
|
||||||
|
Loading…
Reference in New Issue
Block a user