@reyemtech/stack-upgrade 0.5.1 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/kubectl.js +2 -4
package/package.json
CHANGED
package/src/kubectl.js
CHANGED
|
@@ -125,11 +125,9 @@ async function selectNamespace() {
|
|
|
125
125
|
*/
|
|
126
126
|
function ensureSecret(namespace, ghToken, claudeCreds) {
|
|
127
127
|
try {
|
|
128
|
-
execFileSync('kubectl', ['
|
|
129
|
-
p.log.info(`Secret "${SECRET_NAME}" exists in namespace "${namespace}"`);
|
|
130
|
-
return;
|
|
128
|
+
execFileSync('kubectl', ['delete', 'secret', SECRET_NAME, '-n', namespace], { stdio: 'ignore' });
|
|
131
129
|
} catch {
|
|
132
|
-
// Secret
|
|
130
|
+
// Secret didn't exist — nothing to delete
|
|
133
131
|
}
|
|
134
132
|
|
|
135
133
|
p.log.info(`Creating secret "${SECRET_NAME}" in namespace "${namespace}"...`);
|