@reyemtech/stack-upgrade 0.5.0 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/kubectl.js +2 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reyemtech/stack-upgrade",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "CLI to launch Stack Upgrade Agents via Docker or Kubernetes",
5
5
  "type": "module",
6
6
  "bin": {
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', ['get', 'secret', SECRET_NAME, '-n', namespace], { stdio: 'ignore' });
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 doesn't exist — create it
130
+ // Secret didn't exist — nothing to delete
133
131
  }
134
132
 
135
133
  p.log.info(`Creating secret "${SECRET_NAME}" in namespace "${namespace}"...`);