MCPcopy Create free account
hub / github.com/SocketCluster/socketcluster / addAuthDetailsToSocketClusterK8s

Function addAuthDetailsToSocketClusterK8s

bin/actions/k8s.js:80–92  ·  view source on GitHub ↗
(
    socketClusterK8sConfigJSON,
    username,
    password,
  )

Source from the content-addressed store, hash-verified

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(

Callers 2

performDeploymentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…