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

[nexus3] configuring users fails in v5.6.0 #1115

Closed
dmitry-mightydevops opened this issue Jan 21, 2025 · 1 comment · Fixed by #1116
Closed

[nexus3] configuring users fails in v5.6.0 #1115

dmitry-mightydevops opened this issue Jan 21, 2025 · 1 comment · Fixed by #1116

Comments

@dmitry-mightydevops
Copy link

I am unable to provision users with a fresh install of the HELM chart

helm upgrade --install nexus oci://ghcr.io/stevehipwell/helm-charts/nexus3 --version 5.6.0 --values tests/nexus/values.yaml
➜  klo nexus-config-1-mpd26
Configuring Nexus3...
Waiting for Nexus...
Configuring anonymous access...
Anonymous access configured.
Configuring blob stores...
Configuring scripts...
Script 'cleanup' updated.
Script 'task' updated.
Configuring cleanup policies...
Configuring repositories...
Configuring roles...
Role 'nx-metrics' configured.
Configuring users...
jq: error: syntax error, unexpected end of file, expecting QQSTRING_TEXT or QQSTRING_INTERP_START or QQSTRING_END (Unix shell quoting issues?) at <top-level>, line 1:
.source // "default
jq: 1 compile error

values.yaml

fullnameOverride: nexus

serviceAccount:
  create: true
  annotations: {}

ingress:
  enabled: true
  annotations:
    cert-manager.io/cluster-issuer: letsencrypt-staging
    nginx.ingress.kubernetes.io/proxy-body-size: 100m
    nginx.ingress.kubernetes.io/server-snippet: add_header X-Robots-Tag "noindex, nofollow, nosnippet, noarchive";
    nginx.ingress.kubernetes.io/use-regex: "true"
  ingressClassName: nginx
  hosts:
    - nexus.domain.com
  tls:
    - hosts:
        - nexus.domain.com
      secretName: nexus.domain.com-crt

replicas: 1

persistence:
  enabled: true
  accessMode: ReadWriteOnce
  storageClass: gp3
  size: 32Gi
  retainDeleted: false
  retainScaled: false

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
#   limits:
#     cpu: 100m
#     memory: 128Mi
#   requests:
#     cpu: 100m
#     memory: 128Mi

nodeSelector:
  ops: "true"

affinity: {}
topologySpreadConstraints: []
tolerations: []

metrics:
  enabled: true
  serviceMonitor:
    enabled: true
    interval: 30s
    scrapeTimeout: 25s
    additionalLabels:
      release: prometheus

rootPassword:
  secret: nexus-credentials
  key: admin-password

config:
  enabled: true
  job:
    nodeSelector:
      ops: "true"
    affinity: {}
    tolerations: []
  anonymous:
    enabled: false
  users:
    - userId: "tekton"
      firstName: "Tekton"
      lastName: "Build Bot"
      emailAddress: "[email protected]"
      source: "default"
      status: "active"
      roles:
        - "nx-admin"
      password:
        secret: "nexus-credentials"
        key: "tekton-password"

nexus-credentials

Contains credentials for users I want to provision (tekton/tekton-password)

➜ kgsecn nexus nexus-credentials -o go-template='{{range $k,$v := .data}}{{printf "%s: " $k}}{{if not $v}}{{$v}}{{else}}{{$v | base64decode}}{{end}}{{"\n"}}{{end}}'
admin-password: xxx
developer-password: yyy
tekton-password: zzz
@dmitry-mightydevops dmitry-mightydevops changed the title Configuring users fails in v5.6.0 [nexus3] configuring users fails in v5.6.0 Jan 21, 2025
@stevehipwell
Copy link
Owner

Thanks for reporting this @dmitry-mightydevops. I'll be releasing a fix shortly (see #1116).

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

Successfully merging a pull request may close this issue.

2 participants