(
socketClusterK8sConfigJSON,
username,
password,
)
| 78 | let socketClusterK8sConfig = parseJSONFile(socketClusterK8sConfigFilePath); |
| 79 | |
| 80 | let addAuthDetailsToSocketClusterK8s = function ( |
| 81 | socketClusterK8sConfigJSON, |
| 82 | username, |
| 83 | password, |
| 84 | ) { |
| 85 | if (!socketClusterK8sConfigJSON.docker) { |
| 86 | socketClusterK8sConfigJSON.docker = {}; |
| 87 | } |
| 88 | socketClusterK8sConfigJSON.docker.auth = Buffer.from( |
| 89 | `${username}:${password}`, |
| 90 | 'utf8', |
| 91 | ).toString('base64'); |
| 92 | }; |
| 93 | |
| 94 | let saveSocketClusterK8sConfigFile = function (socketClusterK8sConfigJSON) { |
| 95 | fs.writeFileSync( |
no outgoing calls
no test coverage detected
searching dependent graphs…