lburgazzoli commented on code in PR #5090: URL: https://github.com/apache/camel-k/pull/5090#discussion_r1500747075
########## pkg/trait/mount.go: ########## @@ -165,4 +193,191 @@ func (t *mountTrait) mountResource(vols *[]corev1.Volume, mnts *[]corev1.VolumeM *vols = append(*vols, *vol) *mnts = append(*mnts, *mnt) + + // User specified location file (only properties file) + if dstDir != "" { + if strings.HasSuffix(dstDir, ".properties") { + return []string{mntPath}, nil + } + return nil, nil + } + + // We only process this for text configuration .properties files, never for resources + if conf.ContentType() == utilResource.ContentTypeText { + // the user asked to store the entire resource without specifying any filter + // we need to list all the resources belonging to the resource + if conf.StorageType() == utilResource.StorageTypeConfigmap { + cm := kubernetes.LookupConfigmap(e.Ctx, e.Client, e.Integration.Namespace, conf.Name()) Review Comment: as far as I remember, it does not matter. The runtime/extensione loads them even if they are not .properties -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org