Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit ffc8e4b

Browse files
authored
Merge pull request #1070 from pohly/operator-update
operator update
2 parents 50a55e6 + e596d2d commit ffc8e4b

File tree

5 files changed

+18
-7
lines changed

5 files changed

+18
-7
lines changed

conf.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
"sphinx_copybutton"
2121
],
2222
"linkcheck_ignore": [
23+
"https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line",
24+
"https://help.github.com/articles/using-pull-requests/",
2325
"https://intel.github.io/pmem-csi/1.0/",
2426
".*cloudnative-k8sci.southcentralus.cloudapp.azure.com.*"
2527
],

deploy/crd/pmem-csi.intel.com_pmemcsideployments.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
# This file was generated by controller-gen v0.7.0 via 'make operator-generate-crd'
2-
1+
# This file was generated by controller-gen v0.8.0 via 'make operator-generate-crd'
32
---
43
apiVersion: apiextensions.k8s.io/v1
54
kind: CustomResourceDefinition
65
metadata:
76
annotations:
8-
controller-gen.kubebuilder.io/version: v0.7.0
7+
controller-gen.kubebuilder.io/version: v0.8.0
98
creationTimestamp: null
109
name: pmemcsideployments.pmem-csi.intel.com
1110
spec:

operator/operator.make

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
# https://github.com/operator-framework/operator-sdk/releases
12
OPERATOR_SDK_VERSION=1.17.0
2-
CONTROLLER_GEN_VERSION=v0.7.0
3+
# https://github.com/kubernetes-sigs/controller-tools/releases
4+
CONTROLLER_GEN_VERSION=v0.8.0
35
CONTROLLER_GEN=_work/bin/controller-gen-$(CONTROLLER_GEN_VERSION)
46

57
# download operator-sdk binary

test/e2e/deploy/deploy.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,15 @@ func findOperatorOnce(c *Cluster) (*Deployment, error) {
10121012
return deployment, nil
10131013
}
10141014

1015+
// The order matters here: the deployments listed first will also run first,
1016+
// and somehow that helps OLM. When it was run at the end, there were OLM
1017+
// errors ("operatorhubio-catalog-lbdrz 0/1 CrashLoopBackOff") that did not
1018+
// occur locally or when running the tests on a "fresh" CI cluster.
10151019
var allDeployments = []string{
1020+
"olm", // operator installed by OLM
1021+
"olm-lvm-production",
1022+
"olm-direct-production",
1023+
10161024
"lvm-production",
10171025
"direct-production",
10181026
"operator",
@@ -1021,9 +1029,6 @@ var allDeployments = []string{
10211029
// Uses kube-system, to ensure that deployment in a namespace also works,
10221030
// and *no* controller.
10231031
"operator-direct-production",
1024-
"olm", // operator installed by OLM
1025-
"olm-lvm-production",
1026-
"olm-direct-production",
10271032
}
10281033
var deploymentRE = regexp.MustCompile(`^(operator|olm)?-?(\w*)?-?(testing|production)?-?([0-9\.]*)$`)
10291034

test/start-stop-olm.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ CLUSTER=${CLUSTER:-pmem-govm}
1616
CLUSTER_DIR="${CLUSTER_DIRECTORY:-${REPO_DIR}/_work/${CLUSTER}}"
1717
SSH="${CLUSTER_DIR}/ssh.0"
1818
KUBECTL="${SSH} kubectl" # Always use the kubectl installed in the cluster.
19+
20+
# https://github.com/operator-framework/operator-lifecycle-manager/releases
21+
# Not the latest because of https://github.com/operator-framework/operator-sdk/issues/5410
1922
OLM_VERSION=v0.18.3
2023

2124
function usage() {

0 commit comments

Comments
 (0)