-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored the examples and rendered directories into one for better …
…usability, (#658) This refactor combines the rendered and example directories so they are one. Also added more examples for the most popular use cases. - All examples will now be rendered and updated as this project grows. - The examples are rendered in parallel. - This will help users understand the examples without even downloading the source code and using Helm commands. - This can help users understand the differences in each release, especially for some of our more unique Helm value configurations (especially Openshift Security Constraints).
- Loading branch information
Showing
203 changed files
with
7,349 additions
and
936 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,87 +1,3 @@ | ||
.PHONY: render | ||
render: | ||
rm -rf rendered/manifests | ||
# Set for one of each telemetry type. | ||
for i in metrics traces logs; do \ | ||
dir=rendered/manifests/"$$i-only"; \ | ||
mkdir -p "$$dir"; \ | ||
helm template \ | ||
--namespace default \ | ||
--values rendered/values.yaml \ | ||
--set splunkObservability.metricsEnabled=false,splunkObservability.tracesEnabled=false,splunkObservability.logsEnabled=false,splunkObservability.$${i}Enabled=true \ | ||
--output-dir "$$dir" \ | ||
default helm-charts/splunk-otel-collector; \ | ||
mv "$$dir"/splunk-otel-collector/templates/* "$$dir"; \ | ||
rm -rf "$$dir"/splunk-otel-collector; \ | ||
done | ||
|
||
# Default configuration deployment. | ||
dir=rendered/manifests/agent-only; \ | ||
mkdir -p "$$dir"; \ | ||
helm template \ | ||
--namespace default \ | ||
--values rendered/values.yaml \ | ||
--output-dir "$$dir" \ | ||
default helm-charts/splunk-otel-collector; \ | ||
mv "$$dir"/splunk-otel-collector/templates/* "$$dir"; \ | ||
rm -rf "$$dir"/splunk-otel-collector | ||
|
||
# Gateway mode deployment only. | ||
dir=rendered/manifests/gateway-only; \ | ||
mkdir -p "$$dir"; \ | ||
helm template \ | ||
--namespace default \ | ||
--values rendered/values.yaml \ | ||
--output-dir "$$dir" \ | ||
--set agent.enabled=false,gateway.enabled=true,clusterReceiver.enabled=false \ | ||
default helm-charts/splunk-otel-collector; \ | ||
mv "$$dir"/splunk-otel-collector/templates/* "$$dir"; \ | ||
rm -rf "$$dir"/splunk-otel-collector | ||
|
||
# Native OTel logs collection instead of fluentd. | ||
dir=rendered/manifests/otel-logs; \ | ||
mkdir -p "$$dir"; \ | ||
helm template \ | ||
--namespace default \ | ||
--values rendered/values.yaml \ | ||
--output-dir "$$dir" \ | ||
--set logsEngine=otel,splunkObservability.logsEnabled=true \ | ||
default helm-charts/splunk-otel-collector; \ | ||
mv "$$dir"/splunk-otel-collector/templates/* "$$dir"; \ | ||
rm -rf "$$dir"/splunk-otel-collector | ||
|
||
# eks/fargate deployment (with recommended gateway) | ||
dir=rendered/manifests/eks-fargate; \ | ||
mkdir -p "$$dir"; \ | ||
helm template \ | ||
--namespace default \ | ||
--values rendered/values.yaml \ | ||
--output-dir "$$dir" \ | ||
--set distribution=eks/fargate,gateway.enabled=true,cloudProvider=aws \ | ||
default helm-charts/splunk-otel-collector; \ | ||
mv "$$dir"/splunk-otel-collector/templates/* "$$dir"; \ | ||
rm -rf "$$dir"/splunk-otel-collector | ||
|
||
# network-explorer deployment (with recommended gateway) | ||
dir=rendered/manifests/network-explorer; \ | ||
mkdir -p "$$dir"; \ | ||
helm template \ | ||
--namespace default \ | ||
--values rendered/values.yaml \ | ||
--output-dir "$$dir" \ | ||
--set networkExplorer.enabled=true,agent.enabled=false \ | ||
default helm-charts/splunk-otel-collector; \ | ||
mv "$$dir"/splunk-otel-collector/templates/* "$$dir"; \ | ||
rm -rf "$$dir"/splunk-otel-collector | ||
|
||
# cluster-receiver objects collection enabled | ||
dir=rendered/manifests/cluster-receiver-objects; \ | ||
mkdir -p "$$dir"; \ | ||
helm template \ | ||
--namespace default \ | ||
--values rendered/values.yaml \ | ||
--output-dir "$$dir" \ | ||
--set logsEngine=otel,splunkObservability.logsEnabled=true,clusterReceiver.k8sObjects[0].name=pods,clusterReceiver.k8sObjects[0].mode=pull,clusterReceiver.k8sObjects[0].interval=20,clusterReceiver.k8sObjects[1].name=events,clusterReceiver.k8sObjects[1].mode=watch \ | ||
default helm-charts/splunk-otel-collector; \ | ||
mv "$$dir"/splunk-otel-collector/templates/* "$$dir"; \ | ||
rm -rf "$$dir"/splunk-otel-collector | ||
bash ./examples/render-examples.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.