Skip to content

Commit c3561f4

Browse files
committedJul 15, 2024
feat: add ability to restart kubernetes pod
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
1 parent 8097f3c commit c3561f4

File tree

8 files changed

+1169
-35
lines changed

8 files changed

+1169
-35
lines changed
 

‎WEBSITE_CONTRIBUTING.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The website is built using [docusaurus](https://docusaurus.io/) and published to
1212

1313
### Tips
1414

15-
* When referring to a clickable button in the interface, **bold** the name. For example: Click on the **Extensions** button.
15+
- When referring to a clickable button in the interface, **bold** the name. For example: Click on the **Extensions** button.
1616

1717
## Previewing the website
1818

@@ -167,12 +167,12 @@ A template for describing a new feature being added for `package.json`. For exam
167167

168168
\`\`\`json
169169
{
170-
"<key>": {
171-
"<property>": "<value>",
172-
"<additional settings>": {
173-
"<setting>": "<setting value>"
174-
}
175-
}
170+
"<key>": {
171+
"<property>": "<value>",
172+
"<additional settings>": {
173+
"<setting>": "<setting value>"
174+
}
175+
}
176176
}
177177
\`\`\`
178178

@@ -186,7 +186,7 @@ A template for describing a new feature being added for `package.json`. For exam
186186

187187
\`\`\`json
188188
{
189-
"<key>": "<example configuration>"
189+
"<key>": "<example configuration>"
190190
}
191191
\`\`\`
192192

@@ -202,4 +202,4 @@ A template for describing a new feature being added for `package.json`. For exam
202202

203203
- [External Link Description](URL)
204204
- Further reading or related documentation
205-
```
205+
```

‎packages/main/src/plugin/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,9 @@ export class PluginSystem {
775775
return containerProviderRegistry.restartPod(engine, podId);
776776
},
777777
);
778+
this.ipcHandle('kubernetes-client:restartPod', async (_listener, name: string): Promise<void> => {
779+
return kubernetesClient.restartPod(name);
780+
});
778781
this.ipcHandle(
779782
'container-provider-registry:stopPod',
780783
async (_listener, engine: string, podId: string): Promise<void> => {

0 commit comments

Comments
 (0)
Please sign in to comment.