getSecretKeyRefFileName get the name of the file where the content of the connection secret will be dumped.
( serverName string, selector *corev1.SecretKeySelector, )
| 113 | // getSecretKeyRefFileName get the name of the file where the content of the |
| 114 | // connection secret will be dumped. |
| 115 | func getSecretKeyRefFileName( |
| 116 | serverName string, |
| 117 | selector *corev1.SecretKeySelector, |
| 118 | ) string { |
| 119 | directory := filepath.Join(getExternalSecretsPath(), serverName) |
| 120 | filePath := filepath.Join(directory, fmt.Sprintf("%v_%v", selector.Name, selector.Key)) |
| 121 | return filePath |
| 122 | } |
| 123 | |
| 124 | // dumpSecretKeyRefToFile dumps a certain secret to a file inside a temporary folder |
| 125 | // using 0600 as permission bits. |
no test coverage detected