Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

Commit a2dc128

Browse files
authored
Merge pull request #183 from akrejcir/ssp-cert-rot-for-ocp44
Fix cert rotation for OCP 4.4 and later
2 parents aab097c + 4b24f74 commit a2dc128

File tree

274 files changed

+22
-25305
lines changed

Some content is hidden

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

274 files changed

+22
-25305
lines changed

.gitignore

-2
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,3 @@ operator-sdk
22
_out
33
releases.json
44
versionsrc
5-
6-
cmd/webhook-updater/webhook-updater

Gopkg.lock

+3-161
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

-16
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,3 @@ required = [
4141
[[prune.project]]
4242
name = "k8s.io/code-generator"
4343
non-go = false
44-
45-
[[constraint]]
46-
name = "github.com/fsnotify/fsnotify"
47-
version = "1.4.7"
48-
49-
[[constraint]]
50-
name = "github.com/onsi/ginkgo"
51-
version = "1.12.0"
52-
53-
[[constraint]]
54-
name = "github.com/onsi/gomega"
55-
version = "1.10.0"
56-
57-
[[constraint]]
58-
name = "github.com/spf13/pflag"
59-
version = "1.0.5"

Makefile

+2-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ REGISTRY_IMAGE ?= kubevirt-ssp-operator-registry
88

99
container-build: csv-generator container-build-operator container-build-registry
1010

11-
container-build-operator: webhook-updater
11+
container-build-operator:
1212
docker build -f build/Dockerfile -t $(IMAGE_REGISTRY)/$(OPERATOR_IMAGE):$(IMAGE_TAG) .
1313

1414
container-build-registry:
@@ -25,9 +25,6 @@ container-push-registry:
2525
container-release:
2626
./hack/docker-push.sh $(IMAGE_REGISTRY)/$(OPERATOR_IMAGE):$(IMAGE_TAG) $(IMAGE_REGISTRY)/$(REGISTRY_IMAGE):$(IMAGE_TAG)
2727

28-
webhook-updater:
29-
./hack/build-webhook-updater.sh
30-
3128
csv-generator: operator-sdk
3229
./build/make-csv-generator.sh
3330

@@ -53,7 +50,4 @@ release: manifests container-build container-release
5350
functests: manifests
5451
cd functests && ./test-runner.sh
5552

56-
unittests:
57-
go test -v ./...
58-
59-
.PHONY: functests unittests release webhook-updater manifests manifests-prepare manifests-cleanup container-push container-build container-release
53+
.PHONY: functests release manifests manifests-prepare manifests-cleanup container-push container-build container-release

build/Dockerfile

-2
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ COPY build/csv-generator.sh /usr/bin/csv-generator
1818
COPY build/preprocess_template.py ${HOME}/
1919
COPY patch.yaml ${HOME}/
2020
RUN python3 ${HOME}/preprocess_template.py ${HOME}/patch.yaml ${HOME}/roles/KubevirtCommonTemplatesBundle/files/
21-
22-
COPY cmd/webhook-updater/webhook-updater /usr/bin/webhook-updater

cluster/latest/kubevirt-ssp-operator-cr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ metadata:
2626
name: kubevirt-template-validator
2727
namespace: kubevirt
2828
spec:
29-
version: v0.6.2
29+
version: v0.6.6
3030
templateValidatorReplicas: 2

cluster/latest/kubevirt-ssp-operator.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,3 @@ spec:
195195
value: ""
196196
- name: OPERATOR_NAME
197197
value: "kubevirt-ssp-operator"
198-
- name: webhook-updater
199-
image: quay.io/fromani/kubevirt-ssp-operator-container:latest
200-
command: ["webhook-updater"]
201-
args: ["--port", "8081"]
202-
imagePullPolicy: Always

cmd/webhook-updater/main.go

-8
This file was deleted.

deploy/crds/kubevirt_v1_templatevalidator_cr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ metadata:
44
name: kubevirt-template-validator
55
namespace: kubevirt
66
spec:
7-
version: v0.6.2
7+
version: v0.6.6
88
templateValidatorReplicas: 2

deploy/operator.yaml

-5
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,3 @@ spec:
5050
value: ""
5151
- name: OPERATOR_NAME
5252
value: "kubevirt-ssp-operator"
53-
- name: webhook-updater
54-
image: REPLACE_IMAGE
55-
command: ["webhook-updater"]
56-
args: ["--port", "8081"]
57-
imagePullPolicy: Always

hack/build-operator.sh

-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ docker login -u $(oc whoami) -p $(oc whoami -t) ${REGISTRY}
1515

1616
docker images
1717

18-
make -C ${BASEPATH}/.. webhook-updater
1918
docker build -f ${BASEPATH}/../build/Dockerfile -t ${REGISTRY}/kubevirt/kubevirt-ssp-operator:devel ${BASEPATH}/..
2019
docker push ${REGISTRY}/kubevirt/kubevirt-ssp-operator:devel || :
2120

0 commit comments

Comments
 (0)