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

Fresh install fails since chart v0.77.0 #868

Closed
sleterrier opened this issue Aug 2, 2023 · 4 comments
Closed

Fresh install fails since chart v0.77.0 #868

sleterrier opened this issue Aug 2, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@sleterrier
Copy link

sleterrier commented Aug 2, 2023

What happened?

Description

Initial helm install fails since chart v0.77.0.

Steps to Reproduce

helm install splunk-collector splunk-otel-collector-chart/splunk-otel-collector -f values.yaml --version 0.77.0

Expected Result

helm install should succeed.

Actual Result

Fails secret validation due to missing serviceAccount.

Chart version

0.77.0+

Environment information

Environment

Cloud: EKS + vanilla Kubernetes
k8s version: 1.25

Chart configuration

agent:
  controlPlaneMetrics:
    apiserver:
      enabled: false
    controllerManager:
      enabled: false
    coredns:
      enabled: false
    etcd:
      enabled: false
    proxy:
      enabled: false
    scheduler:
      enabled: false
  enabled: true
  resources:
    limits:
      cpu: 1
      memory: 500Mi
    requests:
      cpu: 250m
      memory: 500Mi
certmanager:
  enabled: false
  installCRDs: false
clusterName: cluster-name
clusterReceiver:
  enabled: false
environment: dev
extraAttributes:
  fromAnnotations:
  - from: namespace
    key_regex: (example.net/.*)
    tag_name: $$1
  - from: pod
    key_regex: (example.net/.*)
    tag_name: $$1
  fromLabels:
  - from: namespace
    key_regex: (example.net/.*)
    tag_name: $$1
  - from: pod
    key_regex: (example.net/.*)
    tag_name: $$1
logsCollection:
  containers:
    enabled: true
    useSplunkIncludeAnnotation: true
logsEngine: otel
secret:
  create: false
  name: splunk-otel-collector
serviceAccount:
  create: true
  name: splunk-collector
splunkPlatform:
  endpoint: https://http-inputs-obfuscated.splunkcloud.com/services/collector
  index: kubernetes_logs
  logsEnabled: true
  metricsEnabled: false
  tracesEnabled: false

Log output

Error: INSTALLATION FAILED: failed pre-install: warning: Hook pre-install splunk-otel-collector/templates/secret-splunk-validation-hook.yaml failed: pods "splunk-collector-splunk-otel-collector-validate-secret" is forbidden: error looking up service account splunk/splunk-collector: serviceaccount "splunk-collector" not found

Additional context

#781 is likely the culprit.

@jvoravong
Copy link
Contributor

The fix for this will be available in the chart release after v0.82.0.

@splunkin
Copy link

@jvoravong Is there a release date for when the fix will be available? Thank you.

@sleterrier
Copy link
Author

Confirmed as functional, thank you for the quick turn around @jvoravong, much appreciated!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants