Skip to content

Commit d1dea10

Browse files
Merge pull request #170 from timflannagan/k8s-bump
Bug 1994139: Bump OLM kubernetes version to 1.22
2 parents 0ba8af9 + b82547d commit d1dea10

File tree

211 files changed

+15256
-8376
lines changed

Some content is hidden

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

211 files changed

+15256
-8376
lines changed

go.mod

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ require (
2222
google.golang.org/protobuf v1.27.1
2323
gopkg.in/yaml.v2 v2.4.0
2424
helm.sh/helm/v3 v3.6.2
25-
k8s.io/api v0.22.0-rc.0
26-
k8s.io/apimachinery v0.22.0-rc.0
27-
k8s.io/client-go v0.22.0-rc.0
28-
k8s.io/code-generator v0.22.0-rc.0
25+
k8s.io/api v0.22.0
26+
k8s.io/apimachinery v0.22.0
27+
k8s.io/client-go v0.22.0
28+
k8s.io/code-generator v0.22.0
2929
k8s.io/kube-openapi v0.0.0-20210527164424-3c818078ee3d
3030
k8s.io/utils v0.0.0-20210707171843-4b05e18ac7d9
3131
sigs.k8s.io/controller-runtime v0.9.2

go.sum

Lines changed: 32 additions & 74 deletions
Large diffs are not rendered by default.

scripts/generate_crds_manifests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CONTROLLER_GEN="go run ./vendor/sigs.k8s.io/controller-tools/cmd/controller-gen"
1212
HELM="go run helm.sh/helm/v3/cmd/helm"
1313

1414
ver=$(cat ./staging/operator-lifecycle-manager/OLM_VERSION)
15-
tmpdir="$(mktemp -p . -d 2>/dev/null || mktemp -p . -d -t tmpdir)"
15+
tmpdir="$(mktemp -p . -d 2>/dev/null || mktemp -d ./tmpdir.XXXXXXX)"
1616
chartdir="${tmpdir}/chart"
1717
crddir="${chartdir}/crds"
1818
crdsrcdir="${tmpdir}/operators"

scripts/verify_commits.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function verify_staging_sync() {
1818
local staging_dir="staging/${remote}"
1919

2020
local outside_staging
21-
outside_staging="$(git show --name-only "${downstream_commit}" -- ":!${staging_dir}" ':!vendor' ':!manifests')"
21+
outside_staging="$(git show --name-only "${downstream_commit}" -- ":!${staging_dir}" ':!vendor' ':!manifests' ':!go.sum' ':!go.mod')"
2222
if [[ -n "${outside_staging}" ]]; then
2323
err "downstream staging commit ${downstream_commit} changes files outside of ${staging_dir}, vendor, and manifests directories"
2424
err "${outside_staging}"
@@ -36,7 +36,6 @@ function verify_downstream_only() {
3636
err "downstream non-staging commit ${downstream_commit} changes staging"
3737
err "${inside_staging}"
3838
err "only staging commits (i.e. from an upstream cherry-pick) may change staging"
39-
4039
return 1
4140
fi
4241
}
@@ -58,7 +57,7 @@ function upstream_ref() {
5857
return 0
5958
fi
6059

61-
60+
6261
local invalid
6362
invalid=false
6463
if (( ${#upstream_repos[@]} != 1 )); then

staging/api/.github/workflows/go.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Go
1515
uses: actions/setup-go@v2
1616
with:
17-
go-version: 1.15
17+
go-version: 1.16
1818
id: go
1919
- name: Check out code into the Go module directory
2020
uses: actions/checkout@v2
@@ -29,7 +29,7 @@ jobs:
2929
- name: Set up Go
3030
uses: actions/setup-go@v2
3131
with:
32-
go-version: 1.15
32+
go-version: 1.16
3333
id: go
3434
- name: Check out code into the Go module directory
3535
uses: actions/checkout@v2

staging/api/crds/operators.coreos.com_clusterserviceversions.yaml

Lines changed: 62 additions & 33 deletions
Large diffs are not rendered by default.

staging/api/crds/operators.coreos.com_subscriptions.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ spec:
7676
description: Name of the environment variable. Must be a C_IDENTIFIER.
7777
type: string
7878
value:
79-
description: 'Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".'
79+
description: 'Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "".'
8080
type: string
8181
valueFrom:
8282
description: Source for the environment variable's value. Cannot be used if value is not empty.
@@ -555,7 +555,23 @@ spec:
555555
items:
556556
type: string
557557
dataSource:
558-
description: 'This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) * An existing custom resource that implements data population (Alpha) In order to use custom resource types that implement data population, the AnyVolumeDataSource feature gate must be enabled. If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source.'
558+
description: 'This field can be used to specify either: * An existing VolumeSnapshot object (snapshot.storage.k8s.io/VolumeSnapshot) * An existing PVC (PersistentVolumeClaim) If the provisioner or an external controller can support the specified data source, it will create a new volume based on the contents of the specified data source. If the AnyVolumeDataSource feature gate is enabled, this field will always have the same contents as the DataSourceRef field.'
559+
type: object
560+
required:
561+
- kind
562+
- name
563+
properties:
564+
apiGroup:
565+
description: APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.
566+
type: string
567+
kind:
568+
description: Kind is the type of resource being referenced
569+
type: string
570+
name:
571+
description: Name is the name of resource being referenced
572+
type: string
573+
dataSourceRef:
574+
description: 'Specifies the object from which to populate the volume with data, if a non-empty volume is desired. This may be any local object from a non-empty API group (non core object) or a PersistentVolumeClaim object. When this field is specified, volume binding will only succeed if the type of the specified object matches some installed volume populator or dynamic provisioner. This field will replace the functionality of the DataSource field and as such if both fields are non-empty, they must have the same value. For backwards compatibility, both fields (DataSource and DataSourceRef) will be set to the same value automatically if one of them is empty and the other is non-empty. There are two important differences between DataSource and DataSourceRef: * While DataSource only allows two specific types of objects, DataSourceRef allows any non-core object, as well as PersistentVolumeClaim objects. * While DataSource ignores disallowed values (dropping them), DataSourceRef preserves all values, and generates an error if a disallowed value is specified. (Alpha) Using this field requires the AnyVolumeDataSource feature gate to be enabled.'
559575
type: object
560576
required:
561577
- kind

staging/api/crds/zz_defs.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/api/go.mod

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
module github.com/operator-framework/api
22

3-
go 1.15
3+
go 1.16
44

55
require (
66
github.com/blang/semver v3.5.1+incompatible
77
github.com/blang/semver/v4 v4.0.0
88
github.com/ghodss/yaml v1.0.0
99
github.com/go-bindata/go-bindata/v3 v3.1.3
1010
github.com/mikefarah/yq/v3 v3.0.0-20201202084205-8846255d1c37
11-
github.com/sirupsen/logrus v1.7.0
11+
github.com/sirupsen/logrus v1.8.1
1212
github.com/spf13/cobra v1.1.3
1313
github.com/stretchr/testify v1.7.0
14-
k8s.io/api v0.21.1
15-
k8s.io/apiextensions-apiserver v0.21.1
16-
k8s.io/apimachinery v0.21.1
17-
k8s.io/client-go v0.21.1
14+
k8s.io/api v0.22.0
15+
k8s.io/apiextensions-apiserver v0.22.0
16+
k8s.io/apimachinery v0.22.0
17+
k8s.io/client-go v0.22.0
1818
sigs.k8s.io/controller-runtime v0.9.0
1919
sigs.k8s.io/controller-tools v0.6.0
2020
)

0 commit comments

Comments
 (0)