Skip to content

Use mountPath while upserting volumeMounts - #633

Merged
tamalsaha merged 3 commits into
masterfrom
update-condition
Dec 9, 2025
Merged

tamalsaha merged 3 commits into
masterfrom
update-condition

Conversation

@fr-sarker

Copy link
Copy Markdown
Contributor

No description provided.

@CLAassistant

CLAassistant commented Dec 9, 2025 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ArnobKumarSaha

Copy link
Copy Markdown
Member

Not needed.
Use different names.

@ArnobKumarSaha

Copy link
Copy Markdown
Member

Needed for neo4j volumeMounts

   - mountPath: /config/neo4j-auth
      name: neo4j-auth
    - mountPath: /backups
      name: data
      subPathExpr: backups
    - mountPath: /data
      name: data
      subPathExpr: data
    - mountPath: /import
      name: data
      subPathExpr: import
    - mountPath: /licenses
      name: data
      subPathExpr: licenses
    - mountPath: /logs
      name: data
      subPathExpr: logs/$(POD_NAME)
    - mountPath: /metrics
      name: data
      subPathExpr: metrics/$(POD_NAME)

@ArnobKumarSaha ArnobKumarSaha changed the title update condition Use mountPath while upserting volumeMounts Dec 9, 2025
Signed-off-by: Fazle Rabbi Sarker <fazlerabbi@appscode.com>
Signed-off-by: Fazle Rabbi Sarker <fazlerabbi@appscode.com>
@tamalsaha

tamalsaha commented Dec 9, 2025 •

Copy link
Copy Markdown
Contributor

https://github.com/kubernetes/api/blob/382014e64b8e968a848ca4fa97d63addcb6af126/core/v1/types.go#L3014-L3021

Screenshot 2025-12-09 at 7 28 39 PM

I think we should probably merge just based on mountPath. That is what k8s itself is doing.

wdyt?

@fr-sarker

Copy link
Copy Markdown
Contributor Author

Agreed. Sticking to how k8s handles it is the best approach.

Signed-off-by: Tamal Saha <tamal@appscode.com>
@tamalsaha
tamalsaha merged commit 0558d1d into master Dec 9, 2025
@tamalsaha
tamalsaha deleted the update-condition branch December 9, 2025 15:10
tamalsaha added a commit that referenced this pull request Dec 9, 2025
Signed-off-by: Fazle Rabbi Sarker <fazlerabbi@appscode.com>
Signed-off-by: Tamal Saha <tamal@appscode.com>
Co-authored-by: Tamal Saha <tamal@appscode.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants