Skip to content

Commit 4969c91

Browse files
authored
style(cdk): rename lifecycle event cdk-cleanup (#1092)
As a Lacework CDK developer, I need a way to run cleanup event for my component, So that I can remove any file, cache, libraries, etc. during component removal. **Description** When installing new CDK components, users use the command `lacework component install <component>` which runs the lifecycle event `cdk-init`, this event helps components to deploy any necessary file, cache, config, libraries, etc. during installation. When users want to uninstall the component, we should have a cleanup event to remove anything deployed. Jira: https://lacework.atlassian.net/browse/GROW-1081 Signed-off-by: Salim Afiune Maya <[email protected]> Signed-off-by: Salim Afiune Maya <[email protected]>
1 parent 606fc22 commit 4969c91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/cmd/component.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -492,8 +492,8 @@ func runComponentsDelete(_ *cobra.Command, args []string) (err error) {
492492
}
493493

494494
cli.StartProgress("Cleaning component data...")
495-
// component life cycle: remove
496-
stdout, stderr, errCmd := component.RunAndReturn([]string{"cdk-remove"}, nil, cli.envs()...)
495+
// component life cycle: cleanup
496+
stdout, stderr, errCmd := component.RunAndReturn([]string{"cdk-cleanup"}, nil, cli.envs()...)
497497
if errCmd != nil {
498498
cli.Log.Warnw("component life cycle",
499499
"error", errCmd.Error(), "stdout", stdout, "stderr", stderr)

0 commit comments

Comments
 (0)