Skip to content

Commit 0f9401a

Browse files
authored
Merge pull request #387 from Danil-Grigorev/plugin-install-doc
📖 🐛 Document plugin installation, and fix template binary path
2 parents 8fc9605 + c7e4d6d commit 0f9401a

File tree

4 files changed

+47
-10
lines changed

4 files changed

+47
-10
lines changed

.krew.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,29 +14,29 @@ spec:
1414
os: darwin
1515
arch: amd64
1616
{{addURIAndSha "https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/{{ .TagName }}/clusterctl-operator_{{ .TagName }}_darwin_amd64.tar.gz" .TagName }}
17-
bin: clusterctl-operator
17+
bin: bin/clusterctl-operator
1818
- selector:
1919
matchLabels:
2020
os: darwin
2121
arch: arm64
2222
{{addURIAndSha "https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/{{ .TagName }}/clusterctl-operator_{{ .TagName }}_darwin_arm64.tar.gz" .TagName }}
23-
bin: clusterctl-operator
23+
bin: bin/clusterctl-operator
2424
- selector:
2525
matchLabels:
2626
os: linux
2727
arch: amd64
2828
{{addURIAndSha "https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/{{ .TagName }}/clusterctl-operator_{{ .TagName }}_linux_amd64.tar.gz" .TagName }}
29-
bin: clusterctl-operator
29+
bin: bin/clusterctl-operator
3030
- selector:
3131
matchLabels:
3232
os: linux
3333
arch: arm64
3434
{{addURIAndSha "https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/{{ .TagName }}/clusterctl-operator_{{ .TagName }}_linux_arm64.tar.gz" .TagName }}
35-
bin: clusterctl-operator
35+
bin: bin/clusterctl-operator
3636
- selector:
3737
matchLabels:
3838
os: windows
3939
arch: amd64
4040
{{addURIAndSha "https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/{{ .TagName }}/clusterctl-operator_{{ .TagName }}_windows_amd64.tar.gz" .TagName }}
41-
bin: clusterctl-operator.exe
41+
bin: bin/clusterctl-operator.exe
4242

docs/book/src/02_installation/00.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Installation
2+
3+
This section describes `cluster-api-operator` components installation instructions.
4+
5+
## [Plugin](./01_plugin.md)
6+
7+
This document describes the plugin installation steps and prerequisites.
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Plugin installation
2+
3+
The `cluster-api-operator` plugin can be installed using krew, the kubectl plugin manager.
4+
5+
## Prerequisites
6+
7+
[krew][] installed on your system. See the krew installation guide for instructions.
8+
9+
[krew]: [https://krew.sigs.k8s.io/docs/user-guide/setup/install/]
10+
11+
## Steps
12+
13+
1. Add the cluster-api-operator plugin index to krew:
14+
```bash
15+
clusterctl krew index add operator https://github.com/kubernetes-sigs/cluster-api-operator.git
16+
```
17+
18+
2. Install the cluster-api-operator plugin:
19+
```bash
20+
clusterctl krew install operator/operator
21+
```
22+
23+
3. Verify the installation:
24+
```bash
25+
clusterctl operator
26+
```
27+
28+
This should print help information for the clusterctl operator plugin.
29+
30+
The `cluster-api-operator` plugin is now installed and ready to use with both `kubectl` and `clusterctl`.

plugins/clusterctl-operator.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,34 +15,34 @@ spec:
1515
arch: amd64
1616
uri: https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/v0.8.0/clusterctl-operator_v0.8.0_darwin_amd64.tar.gz
1717
sha256: 98c1a85ff35cc0df1208c30fa2059cbc5a881d58ca13a4af5ca7f49e25fcb121
18-
bin: clusterctl-operator
18+
bin: bin/clusterctl-operator
1919
- selector:
2020
matchLabels:
2121
os: darwin
2222
arch: arm64
2323
uri: https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/v0.8.0/clusterctl-operator_v0.8.0_darwin_arm64.tar.gz
2424
sha256: 93e7f0e3a0fbd30f132b167eff8f4b5f30e2a0dcc4efdd638eeeb98cb2eb6038
25-
bin: clusterctl-operator
25+
bin: bin/clusterctl-operator
2626
- selector:
2727
matchLabels:
2828
os: linux
2929
arch: amd64
3030
uri: https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/v0.8.0/clusterctl-operator_v0.8.0_linux_amd64.tar.gz
3131
sha256: fe78cc5f7ca675b5d865e5fcea0176152e93044b40677814911e7d5546af227f
32-
bin: clusterctl-operator
32+
bin: bin/clusterctl-operator
3333
- selector:
3434
matchLabels:
3535
os: linux
3636
arch: arm64
3737
uri: https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/v0.8.0/clusterctl-operator_v0.8.0_linux_arm64.tar.gz
3838
sha256: 47e6fb9d9490baf4fe05506f3ba5c7c0905c34813e949a24484885771c36c66c
39-
bin: clusterctl-operator
39+
bin: bin/clusterctl-operator
4040
- selector:
4141
matchLabels:
4242
os: windows
4343
arch: amd64
4444
uri: https://github.com/kubernetes-sigs/cluster-api-operator/releases/download/v0.8.0/clusterctl-operator_v0.8.0_windows_amd64.tar.gz
4545
sha256: 96e1a0bba6ccc61a7de15ec8c1c0a39c87510ed8a33c093c20e11923258f8668
46-
bin: clusterctl-operator.exe
46+
bin: bin/clusterctl-operator.exe
4747

4848

0 commit comments

Comments
 (0)