Skip to content

Commit ccc183e

Browse files
authored
Add stopped-by annotation (#117)
Signed-off-by: Josh Pinkney <[email protected]>
1 parent db299c1 commit ccc183e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

activity/manager.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ func (m managerImpl) stopWorkspace() error {
144144

145145
stopWorkspacePath := &unstructured.Unstructured{
146146
Object: map[string]interface{}{
147+
"metadata": map[string]interface{}{
148+
"annotations": map[string]interface{}{
149+
"controller.devfile.io/stopped-by": "inactivity",
150+
},
151+
},
147152
"spec": map[string]interface{}{
148153
"started": false,
149154
},

0 commit comments

Comments
 (0)