Skip to content

Commit 6a83340

Browse files
Update capibmadm cli tool installation guide (#2470)
1 parent f2249b7 commit 6a83340

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

.github/ISSUE_TEMPLATE/release.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ After every CAPIBM major version release:
1515
- [ ] [Update release support data in docs](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/docs/book/src/developer/release-support-guidelines.md)
1616
- [ ] [Update docs with reference to latest release](https://github.com/kubernetes-sigs/cluster-api-provider-ibmcloud/blob/main/README.md#compatibility-with-cluster-api-and-kubernetes-versions)
1717
- [ ] Update and add documentation link for new release branch in Netlify
18+
- [ ] Update capibmadm tool to the latest version after each new release
1819
- [ ] Add new presubmit job for latest release branch in [kubernetes/test-infra](https://github.com/kubernetes/test-infra/tree/master/config/jobs/kubernetes-sigs/cluster-api-provider-ibmcloud)
1920
- [ ] Update kubekins-e2e image to relevent Kubernetes version
2021
- [ ] Add E2E CI jobs for latest release branch in [ppc64le-cloud/test-infra](https://github.com/ppc64le-cloud/test-infra/blob/master/config/jobs/periodic/cluster-api-provider-ibmcloud/test-e2e-capi-ibmcloud-periodics.yaml)

docs/book/src/topics/capibmadm/index.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ Kubernetes Cluster API Provider IBM Cloud Management Utility
44

55
## Install capibmadm
66

7+
{{#tabs name:"install-ccapibmadm" tabs:"Linux/MacOS,Windows"}}
8+
{{#tab Linux/MacOS}}
9+
710
#### Install capibmadm binary with curl on Linux / MacOS
811
Run the following command to download the capibmadm binary:
912

@@ -23,6 +26,9 @@ Test to ensure the version you installed is up-to-date:
2326
capibmadm version -o short
2427
```
2528

29+
{{#/tab }}
30+
{{#tab Windows}}
31+
2632
#### Install capibmadm binary with curl on Windows using PowerShell
2733
Go to the working directory where you want capibmadm downloaded.
2834

@@ -43,5 +49,8 @@ Test to ensure the version you installed is up-to-date:
4349
capibmadm.exe version -o short
4450
```
4551

52+
{{#/tab }}
53+
{{#/tabs }}
54+
4655
## [1. PowerVS commands](./powervs/index.md)
4756
## [2. VPC commands](./vpc/index.md)

docs/book/theme/css/custom.css

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,64 @@ aside.note.warning > h1::before {
3939
border-radius: 50%;
4040
border: 2px solid var(--warning-note-color, #f0ad4e);
4141
}
42+
43+
.tabset > input[type="radio"] {
44+
position: absolute;
45+
left: -200vw;
46+
}
47+
48+
.tabset .tab-panel {
49+
display: none;
50+
}
51+
52+
.tabset > input:first-child:checked ~ .tab-panels > .tab-panel:first-child,
53+
.tabset > input:nth-child(3):checked ~ .tab-panels > .tab-panel:nth-child(2){
54+
display: block;
55+
}
56+
57+
.tabset > label {
58+
position: relative;
59+
display: inline-block;
60+
padding: .6em 1em 1em;
61+
border: 1px solid transparent;
62+
border-bottom: 0;
63+
cursor: pointer;
64+
font-size: 16px;
65+
border-top-right-radius: 4px;
66+
border-top-left-radius: 4px;
67+
}
68+
69+
.tabset > label::after {
70+
content: "";
71+
position: absolute;
72+
left: 15px;
73+
bottom: 10px;
74+
width: 20px;
75+
height: 4px;
76+
background: #8d8d8d;
77+
}
78+
79+
.tabset > label:hover,
80+
.tabset > input:focus + label {
81+
color: #06c;
82+
}
83+
84+
.tabset > label:hover::after,
85+
.tabset > input:focus + label::after,
86+
.tabset > input:checked + label::after {
87+
background: #06c;
88+
}
89+
90+
.tabset > input:checked + label {
91+
border-color: #ccc;
92+
border-bottom: 1px solid #fff;
93+
margin-bottom: -1px;
94+
}
95+
96+
.tab-panel {
97+
padding: 1em 1.4em;
98+
border: 1px solid #ccc;
99+
border-bottom-right-radius: 4px;
100+
border-bottom-left-radius: 4px;
101+
position: relative;
102+
}

hack/tools/tools.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
_ "sigs.k8s.io/cluster-api/hack/tools/conversion-verifier"
3535
_ "sigs.k8s.io/cluster-api/hack/tools/mdbook/embed"
3636
_ "sigs.k8s.io/cluster-api/hack/tools/mdbook/releaselink"
37+
_ "sigs.k8s.io/cluster-api/hack/tools/mdbook/tabulate"
3738
_ "sigs.k8s.io/controller-runtime/tools/setup-envtest"
3839
_ "sigs.k8s.io/controller-tools/cmd/controller-gen"
3940
_ "sigs.k8s.io/kustomize/kustomize/v5"

0 commit comments

Comments
 (0)