File tree Expand file tree Collapse file tree 7 files changed +17
-15
lines changed Expand file tree Collapse file tree 7 files changed +17
-15
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " Kubebuilder DevContainer" ,
3
- "image" : " golang :1.22 " ,
3
+ "image" : " mcr.microsoft.com/devcontainers/go :1.23-bookworm " ,
4
4
"features" : {
5
5
"ghcr.io/devcontainers/features/docker-in-docker:2" : {},
6
- "ghcr.io/devcontainers/features/git:1" : {}
6
+ "ghcr.io/devcontainers/features/git:1" : {},
7
+ "ghcr.io/devcontainers/features/github-cli:1" : {},
8
+ "ghcr.io/devcontainers/features/kubectl-helm-minikube:1" : {}
7
9
},
8
10
9
11
"runArgs" : [" --network=host" ],
22
24
23
25
"onCreateCommand" : " bash .devcontainer/post-install.sh"
24
26
}
25
-
Original file line number Diff line number Diff line change 3
3
4
4
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-amd64
5
5
chmod +x ./kind
6
- mv ./kind /usr/local/bin/kind
6
+ sudo mv ./kind /usr/local/bin/kind
7
7
8
8
curl -L -o kubebuilder https://go.kubebuilder.io/dl/latest/linux/amd64
9
9
chmod +x kubebuilder
10
- mv kubebuilder /usr/local/bin/
11
-
12
- KUBECTL_VERSION=$( curl -L -s https://dl.k8s.io/release/stable.txt)
13
- curl -LO " https://dl.k8s.io/release/$KUBECTL_VERSION /bin/linux/amd64/kubectl"
14
- chmod +x kubectl
15
- mv kubectl /usr/local/bin/kubectl
10
+ sudo mv kubebuilder /usr/local/bin/
16
11
17
12
docker network create -d=bridge --subnet=172.19.0.0/24 kind
18
13
Original file line number Diff line number Diff line change 15
15
- name : Setup Go
16
16
uses : actions/setup-go@v5
17
17
with :
18
- go-version : ' ~1.22 '
18
+ go-version-file : ' go.mod '
19
19
20
20
- name : Install the latest version of kind
21
21
run : |
Original file line number Diff line number Diff line change 15
15
- name : Setup Go
16
16
uses : actions/setup-go@v5
17
17
with :
18
- go-version : ' ~1.22 '
18
+ go-version-file : ' go.mod '
19
19
20
20
- name : Running Tests
21
21
run : |
Original file line number Diff line number Diff line change 1
1
# Build the manager binary
2
- FROM golang:1.22 AS builder
2
+ FROM golang:1.23 AS builder
3
3
ARG TARGETOS
4
4
ARG TARGETARCH
5
5
Original file line number Diff line number Diff line change @@ -19,12 +19,14 @@ Participation in the Kubernetes community is governed by the [Kubernetes Code of
19
19
## Getting Started
20
20
21
21
### Prerequisites
22
- - go version v1.22.0+
22
+
23
+ - go version v1.23.0+
23
24
- docker version 17.03+.
24
25
- kubectl version v1.11.3+.
25
26
- Access to a Kubernetes v1.11.3+ cluster.
26
27
27
28
### To Deploy on the cluster
29
+
28
30
** Build and push your image to the location specified by ` IMG ` :**
29
31
30
32
``` sh
@@ -60,6 +62,7 @@ kubectl apply -k config/samples/
60
62
> ** NOTE** : Ensure that the samples has default values to test it out.
61
63
62
64
### To Uninstall
65
+
63
66
** Delete the instances (CRs) from the cluster:**
64
67
65
68
``` sh
@@ -102,6 +105,7 @@ kubectl apply -f https://raw.githubusercontent.com/<org>/etcd-operator/<tag or b
102
105
```
103
106
104
107
## Contributing
108
+
105
109
// TODO(user): Add detailed information on how you would like others to contribute to this project
106
110
107
111
** NOTE:** Run ` make help ` for more information on all potential ` make ` targets
Original file line number Diff line number Diff line change 1
1
module go.etcd.io/etcd-operator
2
2
3
- go 1.22.0
3
+ toolchain go1.23.4
4
+
5
+ go 1.23
4
6
5
7
require (
6
8
github.com/onsi/ginkgo/v2 v2.19.0
You can’t perform that action at this time.
0 commit comments