Skip to content

Commit 4e239f0

Browse files
authored
fix(cvc-controller): add support for policy/v1 PodDisruptionBudget (#436)
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com> Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
1 parent 6db98a8 commit 4e239f0

File tree

3,472 files changed

+507
-1225473
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,472 files changed

+507
-1225473
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,18 @@ jobs:
4040
reporter: github-pr-review
4141
path: '.'
4242
pattern: '*.sh'
43-
exclude: './.git/*,./vendor/*'
43+
exclude: './.git/*
4444
4545
unit-tests:
4646
if: ${{ (github.event.ref_type != 'tag') }}
4747
name: unit tests
4848
runs-on: ubuntu-latest
4949
steps:
5050

51-
- name: Set up Go 1.14
52-
uses: actions/setup-go@v1
51+
- name: Set up Go 1.19
52+
uses: actions/setup-go@v3
5353
with:
54-
go-version: 1.14.7
54+
go-version: 1.19.1
5555
id: go
5656

5757
- name: Check out code into the Go module directory
@@ -72,15 +72,15 @@ jobs:
7272
strategy:
7373
fail-fast: false
7474
matrix:
75-
kubernetes: [v1.20.6]
75+
kubernetes: [v1.25.0]
7676
steps:
7777
- name: Checkout
7878
uses: actions/checkout@v2
7979

8080
- name: Setup Minikube-Kubernetes
81-
uses: manusa/actions-setup-minikube@v2.4.1
81+
uses: manusa/actions-setup-minikube@v2.7.0
8282
with:
83-
minikube version: v1.16.0
83+
minikube version: 'v1.26.1'
8484
kubernetes version: ${{ matrix.kubernetes }}
8585
github token: ${{ secrets.GITHUB_TOKEN }}
8686

@@ -94,6 +94,12 @@ jobs:
9494
echo "TAG=${CI_TAG}" >> $GITHUB_ENV
9595
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
9696
97+
- name: Set up Go 1.19
98+
uses: actions/setup-go@v3
99+
with:
100+
go-version: 1.19.1
101+
id: go
102+
97103
- name: Build images locally
98104
run: make all || exit 1;
99105

.github/workflows/pull_request.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ jobs:
4040
reporter: github-pr-review
4141
path: '.'
4242
pattern: '*.sh'
43-
exclude: './vendor/*'
4443

4544
cspc-operator:
4645
runs-on: ubuntu-latest
@@ -189,10 +188,10 @@ jobs:
189188
runs-on: ubuntu-latest
190189
steps:
191190

192-
- name: Set up Go 1.14
193-
uses: actions/setup-go@v1
191+
- name: Set up Go 1.19
192+
uses: actions/setup-go@v3
194193
with:
195-
go-version: 1.14.7
194+
go-version: 1.19.1
196195
id: go
197196

198197
- name: Check out code into the Go module directory
@@ -213,15 +212,15 @@ jobs:
213212
strategy:
214213
fail-fast: false
215214
matrix:
216-
kubernetes: [v1.20.6]
215+
kubernetes: [v1.25.0]
217216
steps:
218217
- name: Checkout
219218
uses: actions/checkout@v2
220219

221220
- name: Setup Minikube-Kubernetes
222-
uses: manusa/actions-setup-minikube@v2.4.1
221+
uses: manusa/actions-setup-minikube@v2.7.0
223222
with:
224-
minikube version: 'v1.16.0'
223+
minikube version: 'v1.26.1'
225224
kubernetes version: ${{ matrix.kubernetes }}
226225
github token: ${{ secrets.GITHUB_TOKEN }}
227226

@@ -232,6 +231,12 @@ jobs:
232231
echo "TAG=${CI_TAG}" >> $GITHUB_ENV
233232
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
234233
234+
- name: Set up Go 1.19
235+
uses: actions/setup-go@v3
236+
with:
237+
go-version: 1.19.1
238+
id: go
239+
235240
- name: Build images locally
236241
run: make all || exit 1;
237242

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@
66

77
# cspc file is created during sanity test
88
./ci/sanity/cspc.yaml
9+
10+
# IDE files
11+
.idea/

.muse/config.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,3 @@ ignoreRules = [ "G101",
22
"S1039",
33
"ST1005"
44
]
5-
6-
ignoreFiles = """
7-
vendor/**
8-
"""

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,14 +200,14 @@ gen-api-docs:
200200

201201
manifests:
202202
@echo "-----------------------------------------------------"
203-
@echo "--- Generating cStor-operatory YAML ----------"
203+
@echo "--- Generating cStor-operator YAML ----------"
204204
@echo "-----------------------------------------------------"
205205
./build/generate-manifest.sh
206206

207207
.PHONY: license-check
208208
license-check:
209209
@echo "--> Checking license header..."
210-
@licRes=$$(for file in $$(find . -type f -regex '.*\.sh\|.*\.go\|.*Docker.*\|.*\Makefile*' ! -path './vendor/*' ) ; do \
210+
@licRes=$$(for file in $$(find . -type f -regex '.*\.sh\|.*\.go\|.*Docker.*\|.*\Makefile*' ) ; do \
211211
awk 'NR<=5' $$file | grep -Eq "(Copyright|generated|GENERATED)" || echo $$file; \
212212
done); \
213213
if [ -n "$${licRes}" ]; then \

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ provide cStor volumes for stateful workloads.
5959

6060
### Minimum Supported Versions
6161

62-
K8S : 1.18+
62+
K8S : 1.21+
6363

6464
## Usage
6565

build/cspc-operator/cspc-operator.Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
FROM golang:1.14.7 as build
14+
FROM golang:1.19.1 as build
1515

1616
ARG RELEASE_TAG
1717
ARG BRANCH
1818
ARG TARGETOS
1919
ARG TARGETARCH
2020
ARG TARGETVARIANT=""
2121

22-
ENV GO111MODULE=on \
23-
GOOS=${TARGETOS} \
22+
ENV GOOS=${TARGETOS} \
2423
GOARCH=${TARGETARCH} \
2524
GOARM=${TARGETVARIANT} \
2625
DEBIAN_FRONTEND=noninteractive \

build/cstor-webhook/cstor-webhook.Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
FROM golang:1.14.7 as build
14+
FROM golang:1.19.1 as build
1515

1616
ARG RELEASE_TAG
1717
ARG BRANCH
1818
ARG TARGETOS
1919
ARG TARGETARCH
2020
ARG TARGETVARIANT=""
2121

22-
ENV GO111MODULE=on \
23-
GOOS=${TARGETOS} \
22+
ENV GOOS=${TARGETOS} \
2423
GOARCH=${TARGETARCH} \
2524
GOARM=${TARGETVARIANT} \
2625
DEBIAN_FRONTEND=noninteractive \

build/cvc-operator/cvc-operator.Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,15 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14-
FROM golang:1.14.7 as build
14+
FROM golang:1.19.1 as build
1515

1616
ARG RELEASE_TAG
1717
ARG BRANCH
1818
ARG TARGETOS
1919
ARG TARGETARCH
2020
ARG TARGETVARIANT=""
2121

22-
ENV GO111MODULE=on \
23-
GOOS=${TARGETOS} \
22+
ENV GOOS=${TARGETOS} \
2423
GOARCH=${TARGETARCH} \
2524
GOARM=${TARGETVARIANT} \
2625
DEBIAN_FRONTEND=noninteractive \

build/pool-manager/pool-manager.Dockerfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@
1818

1919
ARG BASE_IMAGE
2020

21-
FROM golang:1.14.7 as build
21+
FROM golang:1.19.1 as build
2222

2323
ARG RELEASE_TAG
2424
ARG BRANCH
2525
ARG TARGETOS
2626
ARG TARGETARCH
2727
ARG TARGETVARIANT=""
2828

29-
ENV GO111MODULE=on \
30-
GOOS=${TARGETOS} \
29+
ENV GOOS=${TARGETOS} \
3130
GOARCH=${TARGETARCH} \
3231
GOARM=${TARGETVARIANT} \
3332
DEBIAN_FRONTEND=noninteractive \

0 commit comments

Comments
 (0)