Skip to content

Commit

Permalink
disable installing CRDs by default
Browse files Browse the repository at this point in the history
  • Loading branch information
atoulme committed Jan 10, 2025
1 parent 7e467b4 commit fd5dc03
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
3 changes: 2 additions & 1 deletion functional_tests/testdata/values/aks_test_values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,8 @@ readinessProbe:
initialDelaySeconds: 60
livenessProbe:
initialDelaySeconds: 60

operatorcrds:
install: true
operator:
enabled: true
admissionWebhooks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ clusterName: test
environment: test
cloudProvider: gcp
distribution: gke/autopilot

operatorcrds:
install: true
operator:
enabled: true
admissionWebhooks:
Expand Down
2 changes: 2 additions & 0 deletions functional_tests/testdata/values/test_values.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ extraAttributes:
value: "customvalue2"

environment: dev
operatorcrds:
install: true
operator:
enabled: true
targetAllocator:
Expand Down
3 changes: 1 addition & 2 deletions helm-charts/splunk-otel-collector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,8 @@ dependencies:
repository: https://charts.jetstack.io
condition: certmanager.enabled
- name: opentelemetry-operator-crds
version: "0.0.0"
version: "0.0.1"
alias: operatorcrds
# TODO: See if we can improve this conditional more
condition: operatorcrds.install
- name: opentelemetry-operator
version: 0.71.2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: v2
name: opentelemetry-operator-crds
version: 0.0.0
version: 0.0.1
10 changes: 5 additions & 5 deletions helm-charts/splunk-otel-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,11 @@ service:
# Full list of Helm value configurations: https://artifacthub.io/packages/helm/opentelemetry-helm/opentelemetry-operator?modal=values
################################################################################

# Should the CRDs be installed by a chart's crd/ directory or by using templates.
operatorcrds:
# Should the CRDs be installed
install: false

operator:
enabled: false
# This is disabled by default in favor of using `operatorcrds.install=true`, as doing so creates
Expand All @@ -1200,11 +1205,6 @@ operator:
collectorImage:
repository: quay.io/signalfx/splunk-otel-collector

# Should the CRDs be installed by a chart's crd/ directory or by using templates.
operatorcrds:
# Should the CRDs be installed
install: true

# The default Splunk Instrumentation object deployed when operator.enabled=true.
# For more details see:
# - Splunk Documentation: https://docs.splunk.com/observability/en/gdi/opentelemetry/automatic-discovery/k8s/k8s-backend.html#optional-configure-the-instrumentation
Expand Down

0 comments on commit fd5dc03

Please sign in to comment.