forked from open-telemetry/opentelemetry-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enabling collector to mount multiple configMaps (open-telemetry#1989)
* Enabling collector to mount multiple configMaps Signed-off-by: Yuri Sa <[email protected]> * Fixed lints Signed-off-by: Yuri Sa <[email protected]> * Fixed new copies Signed-off-by: Yuri Sa <[email protected]> * Removed unnecessary kustomization Signed-off-by: Yuri Sa <[email protected]> * Removed unnecessary kustomization Signed-off-by: Yuri Sa <[email protected]> * Implemented path on ConfigMapsSpec Signed-off-by: Yuri Sa <[email protected]> * Implemented path on ConfigMapsSpec Signed-off-by: Yuri Sa <[email protected]> * Removed the name's append on VolumeMount Signed-off-by: Yuri Sa <[email protected]> * Fix format Signed-off-by: Yuri Sa <[email protected]> * Fix bundle Signed-off-by: Yuri Sa <[email protected]> * Added e2e tests Signed-off-by: Yuri Sa <[email protected]> * Added e2e tests Signed-off-by: Yuri Sa <[email protected]> * Fixed comments regarding validations * Fixed comments regarding validations --------- Signed-off-by: Yuri Sa <[email protected]>
- Loading branch information
Showing
14 changed files
with
299 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix' | ||
change_type: 'enhancement' | ||
|
||
# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action) | ||
component: operator | ||
|
||
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`). | ||
note: Allow the collector CRD to specify a list of configmaps to mount | ||
|
||
# One or more tracking issues related to the change | ||
issues: [1819] | ||
|
||
# (Optional) One or more lines of additional information to render under the primary note. | ||
# These lines will be padded with 2 spaces and then inserted directly into the document. | ||
# Use pipe (|) for multiline entries. | ||
subtext: |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: mount-test1 | ||
data: | ||
export.ini: | | ||
- EXPORT=true | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: mount-test2 | ||
data: | ||
otel.ini: | | ||
- OTEL_ENDPOINT=localhost | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: simplest-with-configmaps-collector | ||
spec: | ||
template: | ||
spec: | ||
volumes: | ||
- name: otc-internal | ||
configMap: | ||
name: simplest-with-configmaps-collector | ||
items: | ||
- key: collector.yaml | ||
path: collector.yaml | ||
defaultMode: 420 | ||
- name: configmap-mount-test1 | ||
configMap: | ||
name: mount-test1 | ||
defaultMode: 420 | ||
- name: configmap-mount-test2 | ||
configMap: | ||
name: mount-test2 | ||
defaultMode: 420 | ||
containers: | ||
- name: otc-container | ||
volumeMounts: | ||
- name: otc-internal | ||
mountPath: /conf | ||
- name: configmap-mount-test1 | ||
mountPath: /var/conf/configmap-mount-test1 | ||
- name: configmap-mount-test2 | ||
mountPath: /var/conf/dir/configmap-mount-test2 | ||
status: | ||
readyReplicas: 1 |
Oops, something went wrong.