@leverege/build-tools 2.103.0 → 2.105.0

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.
@@ -42,7 +42,7 @@ export default class SecretsManager {
42
42
  try {
43
43
  await shellCmd( `gcloud secrets describe ${key} --project ${project}` )
44
44
  exists = true
45
- } catch ( err ) {
45
+ } catch ( err ) { // eslint-disable-line no-unused-vars
46
46
  exists = false
47
47
  }
48
48
 
@@ -72,7 +72,7 @@ export default class SecretsManager {
72
72
  if ( labelStr ) createCmd.push( `--labels=${labelStr}` )
73
73
  if ( annotationStr ) createCmd.push( `--set-annotations=${annotationStr}` )
74
74
  await shellCmd( createCmd, { input : value } )
75
- } catch ( err ) {
75
+ } catch ( err ) { // eslint-disable-line no-unused-vars
76
76
  log( chalk.red( `\nSM secret write failed for ${key}\n` ) )
77
77
  }
78
78
  }
@@ -136,7 +136,7 @@ ${dataLines}
136
136
  log( ` Applying ExternalSecret => ${chalk.green( name )} in ${chalk.yellow( namespace )}` )
137
137
  try {
138
138
  await shellCmd( [ 'kubectl', 'apply', '-f', '-' ], { input : yaml } ) // eslint-disable-line no-await-in-loop
139
- } catch ( err ) {
139
+ } catch ( err ) { // eslint-disable-line no-unused-vars
140
140
  log( chalk.red( `\nExternalSecret apply failed for ${name}\n` ) )
141
141
  }
142
142
  }
@@ -74,7 +74,7 @@ export default class ServiceAccountManager {
74
74
  try {
75
75
  await shellCmd( `${command} ${options}` ) // eslint-disable-line no-await-in-loop
76
76
  return true
77
- } catch ( err ) {
77
+ } catch ( err ) { // eslint-disable-line no-unused-vars
78
78
  log( ' IAM propagating => ', chalk.yellow( role ) )
79
79
  }
80
80
  await delayWithBackoff( retryCount ) // eslint-disable-line no-await-in-loop
@@ -108,7 +108,7 @@ export default class ServiceAccountManager {
108
108
  try {
109
109
  await shellCmd( `${command} ${options}` ) // eslint-disable-line no-await-in-loop
110
110
  return true
111
- } catch ( err ) {
111
+ } catch ( err ) { // eslint-disable-line no-unused-vars
112
112
  await delayWithBackoff( retryCount ) // eslint-disable-line no-await-in-loop
113
113
  }
114
114
  }
@@ -136,7 +136,7 @@ export default class ServiceAccountManager {
136
136
  if ( shellOut.match( `email: ${serviceName}` ) ) {
137
137
  return true
138
138
  }
139
- } catch ( err ) {
139
+ } catch ( err ) { // eslint-disable-line no-unused-vars
140
140
  log( ' SA propagating => ', chalk.yellow( serviceName ) )
141
141
  await delayWithBackoff( retryCount ) // eslint-disable-line no-await-in-loop
142
142
  }
@@ -220,7 +220,7 @@ export default class ServiceAccountManager {
220
220
  log( '\nSkip existing SvcAct =>', chalk.yellow( saName ) )
221
221
  continue
222
222
  }
223
- } catch ( err ) {
223
+ } catch ( err ) { // eslint-disable-line no-unused-vars
224
224
  log( '\nCreating new SvcAcct =>', chalk.green( saName ) )
225
225
  }
226
226
 
package/src/unleash.mjs CHANGED
@@ -39,7 +39,7 @@ const npmRunner = async ( script ) => {
39
39
  const cmd = `npm run ${script}`
40
40
  const results = await shellCmd( cmd, { stdio : 'inherit' } )
41
41
  return results
42
- } catch ( err ) {
42
+ } catch ( err ) { // eslint-disable-line no-unused-vars
43
43
  process.exit( 1 )
44
44
  }
45
45
  return undefined