Skip to content

Commit abd54a3

Browse files
Merge pull request #70 from chiragkyal/olm
Add OLM Plugin for Day-2 Operator Management
2 parents 98fa13e + 53d0472 commit abd54a3

File tree

14 files changed

+3435
-30
lines changed

14 files changed

+3435
-30
lines changed

.claude-plugin/marketplace.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
{
4343
"name": "olm",
4444
"source": "./plugins/olm",
45-
"description": "OLM (Operator Lifecycle Manager) debugging and analysis tools"
45+
"description": "OLM (Operator Lifecycle Manager) plugin for operator management and debugging"
4646
},
4747
{
4848
"name": "prow-job",
@@ -70,4 +70,4 @@
7070
"description": "A plugin to analyze and report on must-gather data"
7171
}
7272
]
73-
}
73+
}

PLUGINS.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,19 @@ See [plugins/must-gather/README.md](plugins/must-gather/README.md) for detailed
9393

9494
### Olm Plugin
9595

96-
OLM (Operator Lifecycle Manager) debugging and analysis tools
96+
OLM (Operator Lifecycle Manager) plugin for operator management and debugging
9797

9898
**Commands:**
99+
- **`/olm:approve` `<operator-name> [namespace] [--all]`** - Approve pending InstallPlans for operator installations and upgrades
100+
- **`/olm:catalog` `<list|add|remove|refresh|status> [arguments]`** - Manage catalog sources for discovering and installing operators
99101
- **`/olm:debug` `<issue-description> <must-gather-path> [olm-version]`** - Debug OLM issues using must-gather logs and source code analysis
102+
- **`/olm:diagnose` `[operator-name] [namespace] [--fix] [--cluster]`** - Diagnose and optionally fix common OLM and operator issues
103+
- **`/olm:install` `<operator-name> [namespace] [channel] [source] [--approval=Automatic|Manual]`** - Install a day-2 operator using Operator Lifecycle Manager
104+
- **`/olm:list` `[namespace] [--all-namespaces]`** - List installed operators in the cluster
105+
- **`/olm:search` `[query] [--catalog <catalog-name>]`** - Search for available operators in catalog sources
106+
- **`/olm:status` `<operator-name> [namespace]`** - Get detailed status and health information for an operator
107+
- **`/olm:uninstall` `<operator-name> [namespace] [--remove-crds] [--remove-namespace]`** - Uninstall a day-2 operator and optionally remove its resources
108+
- **`/olm:upgrade` `<operator-name> [namespace] [--channel=<channel>] [--approve]`** - Update an operator to the latest version or switch channels
100109

101110
See [plugins/olm/README.md](plugins/olm/README.md) for detailed documentation.
102111

docs/data.json

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,68 @@
246246
},
247247
{
248248
"name": "olm",
249-
"description": "OLM (Operator Lifecycle Manager) debugging and analysis tools",
250-
"version": "0.0.1",
249+
"description": "OLM (Operator Lifecycle Manager) plugin for operator management and debugging",
250+
"version": "0.1.0",
251251
"commands": [
252+
{
253+
"name": "approve",
254+
"description": "Approve pending InstallPlans for operator installations and upgrades",
255+
"synopsis": "/olm:approve <operator-name> [namespace] [--all]",
256+
"argument_hint": "<operator-name> [namespace] [--all]"
257+
},
258+
{
259+
"name": "catalog",
260+
"description": "Manage catalog sources for discovering and installing operators",
261+
"synopsis": "/olm:catalog list",
262+
"argument_hint": "<list|add|remove|refresh|status> [arguments]"
263+
},
252264
{
253265
"name": "debug",
254266
"description": "Debug OLM issues using must-gather logs and source code analysis",
255267
"synopsis": "/olm:debug <issue-description> <must-gather-path> [olm-version]",
256268
"argument_hint": "<issue-description> <must-gather-path> [olm-version]"
269+
},
270+
{
271+
"name": "diagnose",
272+
"description": "Diagnose and optionally fix common OLM and operator issues",
273+
"synopsis": "/olm:diagnose [operator-name] [namespace] [--fix] [--cluster]",
274+
"argument_hint": "[operator-name] [namespace] [--fix] [--cluster]"
275+
},
276+
{
277+
"name": "install",
278+
"description": "Install a day-2 operator using Operator Lifecycle Manager",
279+
"synopsis": "/olm:install <operator-name> [namespace] [channel] [source] [--approval=Automatic|Manual]",
280+
"argument_hint": "<operator-name> [namespace] [channel] [source] [--approval=Automatic|Manual]"
281+
},
282+
{
283+
"name": "list",
284+
"description": "List installed operators in the cluster",
285+
"synopsis": "/olm:list [namespace] [--all-namespaces]",
286+
"argument_hint": "[namespace] [--all-namespaces]"
287+
},
288+
{
289+
"name": "search",
290+
"description": "Search for available operators in catalog sources",
291+
"synopsis": "/olm:search [query] [--catalog <catalog-name>]",
292+
"argument_hint": "[query] [--catalog <catalog-name>]"
293+
},
294+
{
295+
"name": "status",
296+
"description": "Get detailed status and health information for an operator",
297+
"synopsis": "/olm:status <operator-name> [namespace]",
298+
"argument_hint": "<operator-name> [namespace]"
299+
},
300+
{
301+
"name": "uninstall",
302+
"description": "Uninstall a day-2 operator and optionally remove its resources",
303+
"synopsis": "/olm:uninstall <operator-name> [namespace] [--remove-crds] [--remove-namespace]",
304+
"argument_hint": "<operator-name> [namespace] [--remove-crds] [--remove-namespace]"
305+
},
306+
{
307+
"name": "upgrade",
308+
"description": "Update an operator to the latest version or switch channels",
309+
"synopsis": "/olm:upgrade <operator-name> [namespace] [--channel=<channel>] [--approve]",
310+
"argument_hint": "<operator-name> [namespace] [--channel=<channel>] [--approve]"
257311
}
258312
],
259313
"skills": [],
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "olm",
3-
"description": "OLM (Operator Lifecycle Manager) debugging and analysis tools",
4-
"version": "0.0.1",
3+
"description": "OLM (Operator Lifecycle Manager) plugin for operator management and debugging",
4+
"version": "0.1.0",
55
"author": {
66
"name": "github.com/openshift-eng"
77
}
8-
}
8+
}

0 commit comments

Comments
 (0)