InsideDarkWeb.com

Why does embedding KeyCloak into a another stack using requirements.yaml fail?

I ran into a really weird issue when using https://github.com/codecentric/helm-charts/tree/master/charts/keycloak to set up keycloak on k8s:

Using this helmchart and setting it up directly works pretty well, extraVolumes / mountPoints are processed as expected:

keycloak:
  enabled: true
  extraVolumeMounts: |
     - name: providers
       mountPath: /opt/jboss/keycloak/standalone/deployments/
  
   extraVolumes: |
     - name: providers 

However, embedding this in another stack via requirements.yaml with

- name: keycloak
  condition: keycloak.enabled
  version: 8.2.2
  repository: https://codecentric.github.io/helm-charts
  tag: 9.6

fails. The respective values for the new stack contains this:

keycloak:
  enabled: true
  replicaCount: 1

  ## Add additional volumes and mounts, e. g. for custom themes
  extraVolumeMounts: |
    - name: providers
      mountPath: /opt/jboss/keycloak/standalone/deployments/
  
  extraVolumes: |
    - name: providers

but the volume is not mounted properly, not getting any error either. The exact same values result in different deployments.

Is there anything wrong with the nested structure to provide the values for a requirement chart?

Server Fault Asked on November 22, 2021

1 Answers

One Answer

RESOLVED: the problem was that the correct namespace in the "global" values.yaml should have been:

keycloak:
  keycloak:
    [content goes here]

Answered by Peter on November 22, 2021

Add your own answers!

Related Questions

ansible register on template is not working

1  Asked on August 6, 2020 by boaz

 

inactive option not working for pam_lastlog.so

1  Asked on August 5, 2020 by jakov-sosic

     

IPVS transmitting packets to incorrect backends

0  Asked on August 1, 2020 by vignesh-sp

         

Curl to host and port not working from inside Docker container

0  Asked on July 26, 2020 by bhanu-praveen-g

   

rsync unexpected remote arg: [email protected]:/path

2  Asked on July 21, 2020 by pdiracdelta

   

Ask a Question

Get help from others!

© 2021 InsideDarkWeb.com. All rights reserved.