Skip to content

Commit

Permalink
fix(cvc-controller): add support for policy/v1 PodDisruptionBudget
Browse files Browse the repository at this point in the history
Signed-off-by: Niladri Halder <niladri.halder26@gmail.com>
  • Loading branch information
niladrih committed Sep 27, 2022
1 parent 577fe9a commit f0039fd
Show file tree
Hide file tree
Showing 3,469 changed files with 631 additions and 1,225,480 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
20 changes: 13 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,18 @@ jobs:
reporter: github-pr-review
path: '.'
pattern: '*.sh'
exclude: './.git/*,./vendor/*'
exclude: './.git/*
unit-tests:
if: ${{ (github.event.ref_type != 'tag') }}
name: unit tests
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.14
uses: actions/setup-go@v1
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.14.7
go-version: 1.19.1
id: go

- name: Check out code into the Go module directory
Expand All @@ -72,15 +72,15 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: [v1.20.6]
kubernetes: [v1.19.16, v1.25.0]
steps:
- name: Checkout
uses: actions/checkout@v2

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

Expand All @@ -94,6 +94,12 @@ jobs:
echo "TAG=${CI_TAG}" >> $GITHUB_ENV
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19.1
id: go

- name: Build images locally
run: make all || exit 1;

Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ jobs:
reporter: github-pr-review
path: '.'
pattern: '*.sh'
exclude: './vendor/*'

cspc-operator:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -189,10 +188,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.14
uses: actions/setup-go@v1
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.14.7
go-version: 1.19.1
id: go

- name: Check out code into the Go module directory
Expand All @@ -213,15 +212,15 @@ jobs:
strategy:
fail-fast: false
matrix:
kubernetes: [v1.20.6]
kubernetes: [v1.19.16, v1.25.0]
steps:
- name: Checkout
uses: actions/checkout@v2

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

Expand All @@ -232,6 +231,12 @@ jobs:
echo "TAG=${CI_TAG}" >> $GITHUB_ENV
echo "BRANCH=${BRANCH}" >> $GITHUB_ENV
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19.1
id: go

- name: Build images locally
run: make all || exit 1;

Expand Down
4 changes: 0 additions & 4 deletions .muse/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,3 @@ ignoreRules = [ "G101",
"S1039",
"ST1005"
]

ignoreFiles = """
vendor/**
"""
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ gen-api-docs:

manifests:
@echo "-----------------------------------------------------"
@echo "--- Generating cStor-operatory YAML ----------"
@echo "--- Generating cStor-operator YAML ----------"
@echo "-----------------------------------------------------"
./build/generate-manifest.sh

.PHONY: license-check
license-check:
@echo "--> Checking license header..."
@licRes=$$(for file in $$(find . -type f -regex '.*\.sh\|.*\.go\|.*Docker.*\|.*\Makefile*' ! -path './vendor/*' ) ; do \
@licRes=$$(for file in $$(find . -type f -regex '.*\.sh\|.*\.go\|.*Docker.*\|.*\Makefile*' ) ; do \
awk 'NR<=5' $$file | grep -Eq "(Copyright|generated|GENERATED)" || echo $$file; \
done); \
if [ -n "$${licRes}" ]; then \
Expand Down
2 changes: 1 addition & 1 deletion build/cspc-operator/cspc-operator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.14.7 as build
FROM golang:1.19.1 as build

ARG RELEASE_TAG
ARG BRANCH
Expand Down
2 changes: 1 addition & 1 deletion build/cstor-webhook/cstor-webhook.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.14.7 as build
FROM golang:1.19.1 as build

ARG RELEASE_TAG
ARG BRANCH
Expand Down
2 changes: 1 addition & 1 deletion build/cvc-operator/cvc-operator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
FROM golang:1.14.7 as build
FROM golang:1.19.1 as build

ARG RELEASE_TAG
ARG BRANCH
Expand Down
2 changes: 1 addition & 1 deletion build/pool-manager/pool-manager.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

ARG BASE_IMAGE

FROM golang:1.14.7 as build
FROM golang:1.19.1 as build

ARG RELEASE_TAG
ARG BRANCH
Expand Down
2 changes: 1 addition & 1 deletion build/volume-manager/volume-manager.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

FROM golang:1.14.7 as build
FROM golang:1.19.1 as build

ARG RELEASE_TAG
ARG BRANCH
Expand Down
127 changes: 66 additions & 61 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,75 +1,80 @@
module github.com/openebs/cstor-operators

go 1.13
go 1.19

require (
github.com/cespare/xxhash v1.1.0
github.com/davecgh/go-spew v1.1.1
github.com/ghodss/yaml v1.0.0
github.com/hashicorp/go-version v1.2.1
github.com/imdario/mergo v0.3.8 // indirect
github.com/onsi/ginkgo v1.12.0
github.com/onsi/gomega v1.9.0
github.com/openebs/api/v3 v3.0.0-20211116062351-ecd9a8a61d3e
github.com/hashicorp/go-version v1.6.0
github.com/onsi/ginkgo v1.16.5
github.com/onsi/gomega v1.20.2
github.com/openebs/api/v3 v3.0.0-20220927112951-89777143758b
github.com/pkg/errors v0.9.1
github.com/spf13/cobra v0.0.5
github.com/spf13/cobra v1.5.0
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.6.1
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8
go.uber.org/zap v1.13.0
golang.org/x/net v0.0.0-20201110031124-69a78807bb2b
google.golang.org/grpc v1.27.1
k8s.io/api v0.20.2
k8s.io/apimachinery v0.20.2
k8s.io/client-go v0.20.2
github.com/stretchr/testify v1.8.0
github.com/ugorji/go/codec v1.2.7
go.uber.org/zap v1.23.0
golang.org/x/net v0.0.0-20220926192436-02166a98028e
google.golang.org/grpc v1.49.0
k8s.io/api v0.25.2
k8s.io/apimachinery v0.25.2
k8s.io/client-go v1.5.2
k8s.io/klog v1.0.0
)

replace (
k8s.io/api => k8s.io/api v0.20.2
k8s.io/apiextensions-apiserver => k8s.io/apiextensions-apiserver v0.20.2

k8s.io/apimachinery => k8s.io/apimachinery v0.20.2

k8s.io/apiserver => k8s.io/apiserver v0.20.2

k8s.io/cli-runtime => k8s.io/cli-runtime v0.20.2

k8s.io/client-go => k8s.io/client-go v0.20.2

k8s.io/cloud-provider => k8s.io/cloud-provider v0.20.2

k8s.io/cluster-bootstrap => k8s.io/cluster-bootstrap v0.20.2

k8s.io/code-generator => k8s.io/code-generator v0.20.2

k8s.io/component-base => k8s.io/component-base v0.20.2
k8s.io/component-helpers => k8s.io/component-helpers v0.20.2
k8s.io/cri-api => k8s.io/cri-api v0.20.2

k8s.io/csi-translation-lib => k8s.io/csi-translation-lib v0.20.2

k8s.io/kube-aggregator => k8s.io/kube-aggregator v0.20.2

k8s.io/kube-controller-manager => k8s.io/kube-controller-manager v0.20.2

k8s.io/kube-proxy => k8s.io/kube-proxy v0.20.2

k8s.io/kube-scheduler => k8s.io/kube-scheduler v0.20.2

k8s.io/kubectl => k8s.io/kubectl v0.20.2

k8s.io/kubelet => k8s.io/kubelet v0.20.2

k8s.io/legacy-cloud-providers => k8s.io/legacy-cloud-providers v0.20.2

k8s.io/metrics => k8s.io/metrics v0.20.2

k8s.io/node-api => k8s.io/node-api v0.20.2

k8s.io/sample-apiserver => k8s.io/sample-apiserver v0.20.2

k8s.io/sample-cli-plugin => k8s.io/sample-cli-plugin v0.20.2
require (
github.com/emicklei/go-restful/v3 v3.9.0 // indirect
github.com/evanphx/json-patch v4.12.0+incompatible // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/go-logr/logr v1.2.3 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.20.0 // indirect
github.com/go-openapi/swag v0.22.3 // indirect
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/google/gnostic v0.6.9 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.3.0 // indirect
github.com/imdario/mergo v0.3.13 // indirect
github.com/inconshreveable/mousetrap v1.0.1 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/moby/spdystream v0.2.0 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/nxadm/tail v1.4.8 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/ryanuber/columnize v2.1.2+incompatible // indirect
go.uber.org/atomic v1.10.0 // indirect
go.uber.org/multierr v1.8.0 // indirect
golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1 // indirect
golang.org/x/sys v0.0.0-20220926163933-8cfa568d3c25 // indirect
golang.org/x/term v0.0.0-20220919170432-7a66f970e087 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/time v0.0.0-20220922220347-f3bd1da661af // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20220926220553-6981cbe3cfce // indirect
google.golang.org/protobuf v1.28.1 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
k8s.io/klog/v2 v2.80.1 // indirect
k8s.io/kube-openapi v0.0.0-20220803164354-a70c9af30aea // indirect
k8s.io/utils v0.0.0-20220922133306-665eaaec4324 // indirect
sigs.k8s.io/json v0.0.0-20220713155537-f223a00ba0e2 // indirect
sigs.k8s.io/structured-merge-diff/v4 v4.2.3 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

k8s.io/sample-controller => k8s.io/sample-controller v0.20.2
replace (
k8s.io/api => k8s.io/api v0.25.2
k8s.io/apimachinery => k8s.io/apimachinery v0.25.2
k8s.io/client-go => k8s.io/client-go v0.25.2
)
Loading

0 comments on commit f0039fd

Please sign in to comment.