Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configMapConfig docs aren't consistant #67

Closed
hobyte opened this issue Feb 7, 2023 · 2 comments
Closed

configMapConfig docs aren't consistant #67

hobyte opened this issue Feb 7, 2023 · 2 comments

Comments

@hobyte
Copy link

hobyte commented Feb 7, 2023

while trying to install zitadel with my own values, I notized that the docs for the configMapConfig are different for the tutorial, the values file in this repo and in the config file in the zitadel repo.

My Values:

replicaCount: 1
zitadel: 
  masterkey: "cfMe9lPkty3qFWvX49XgHocLzmStGtyE"
  configmapConfig:
    ExternalPort: 443
    ExternalDomain: id.hobyte.de
    ExternalSecure: true
    TLS:
      Enabled: false
    #FirstInstance:
    DefaultInstance:
      DefaultLanguage: de
      Org:
        Name: cloud
        Human:
          UserName: zitadel-admin
          FirstName: ZITADEL
          LastName: Admin
          Email:
            Address: zitadel-admin@hobyte.de
            Verified: true
          PreferredLanguage: de
      LoginPolicy:
        AllowRegister: false
  secretConfig:
    Database:
      cockroach:
        User:
          Password: "a-zitadel-db-user-password"

Two things that confuse me:

secretConfig

In the tutorial values for the secretConfig are set, but not in the default Values and in the zitadel config file, they don't exist. Can they be removed or are these values still needed?

FirstInstance vs. DefaultInstance

As described in in #66, when using the command and the values from the tutorial installing is possible, but in any other case, it fails with this error: Error: template: zitadel/templates/setupjob.yaml:82:74: executing "zitadel/templates/setupjob.yaml" at <.Values.zitadel.configmapConfig.FirstInstance.Org>: nil pointer evaluating interface {}.Org Is it DefaultInstance or FirstInstance?

@hifabienne
Copy link
Member

@eliobischof can you give a feedback here?

@eliobischof
Copy link
Member

eliobischof commented Feb 9, 2023

secretConfig

In the tutorial values for the secretConfig are set, but not in the default Values and in the zitadel config file, they don't exist. Can they be removed or are these values still needed?

You can set any config for the runtime config and for the init and setup config beneath either configMapConfig or secretConfig. All values are both passed to the --steps argument as well as to the --config argument. You can decide which values you want kubernetes to treat as secrets (Kubernetes Secret resource) or as config (Kubernetes ConfigMap resource).

FirstInstance vs. DefaultInstance

As described in in #66, when using the command and the values from the tutorial installing is possible, but in any other case, it fails with this error: Error: template: zitadel/templates/setupjob.yaml:82:74: executing "zitadel/templates/setupjob.yaml" at <.Values.zitadel.configmapConfig.FirstInstance.Org>: nil pointer evaluating interface {}.Org Is it DefaultInstance or FirstInstance?

I think the nil pointer is due to an outdated Helm version, you use? I just created an issue that adresses this: #68

Please reopen the issue, if my answers didn't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants