You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: charts/mgmt-agent/templates/mgmt-agent-daemonset.yaml
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,10 @@ spec:
96
96
name: {{ include "mgmt-agent.resourceNamePrefix" . }}-agent
97
97
- name: mgmtagent-hostpath
98
98
hostPath:
99
-
path: "{{ required "deployment.daemonSet.hostPath is required" .Values.deployment.daemonSet.hostPath }}/daemonset-mgmtagent-container"
99
+
path: "{{ required "deployment.daemonSet.hostPath is required" .Values.deployment.daemonSet.hostPath }}"
100
+
{{- if regexMatch "^/opt/oracle/*$" .Values.deployment.daemonSet.hostPath }}
101
+
{{- fail "Error: deployment.daemonSet.hostPath cannot be /opt/oracle. Please provide another location or create a sub-directory under /opt/oracle and use that as hostPath" }}
Copy file name to clipboardExpand all lines: charts/mgmt-agent/values.yaml
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -84,11 +84,10 @@ deployment:
84
84
daemonSetDeployment: false
85
85
86
86
daemonSet:
87
-
# Provide the host path (defaults to /opt/oracle, please change if required) if Agent is deployed as DaemonSet. Management Agent Pod should have read-write access to it.
88
-
# The host path needs to be owned by runAsUser and runAsGroup, provided under security context above.
89
-
# Note: The deployment will create a sub directory i.e. daemonset-mgmtagent-container under the the provided hostPath.
90
-
hostPath: /opt/oracle
91
-
# Override the ownership and permissions on the hostPath, to be owned by the runAsUser and runAsGroup provided under security context above and the permission as 750.
87
+
# Provide the host path if Agent is deployed as DaemonSet. Management Agent Pod should have read-write access to it.
88
+
# Note: The hostPath cannot point to /opt/oracle, please provide another location or create a sub-directory under /opt/oracle and use that as hostPath
89
+
hostPath:
90
+
# Override the ownership and permissions on the hostPath. The hostPath will be owned by the runAsUser and runAsGroup provided under security context above and the permission as 750.
92
91
# Note: This requires oraclelinux:8-slim image
93
92
# Setting overrideOwnership to false will disable the ownership change.
0 commit comments