Skip to content

Commit 2dea823

Browse files
Merge pull request #1391 from benluddy/helm3-chart
Update chart to use the new "crds" directory.
2 parents a6162e4 + 1bf7d62 commit 2dea823

File tree

349 files changed

+23731
-5424
lines changed

Some content is hidden

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

349 files changed

+23731
-5424
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,9 @@ clean:
156156

157157
# Generate manifests for CRDs
158158
manifests: vendor
159-
$(CONTROLLER_GEN) schemapatch:manifests=./deploy/chart/templates paths=./pkg/api/apis/operators/... output:dir=./deploy/chart/templates
159+
$(CONTROLLER_GEN) schemapatch:manifests=./deploy/chart/crds paths=./pkg/api/apis/operators/... output:dir=./deploy/chart/crds
160160

161-
$(YQ_INTERNAL) w --inplace deploy/chart/templates/0000_50_olm_03-clusterserviceversion.crd.yaml spec.validation.openAPIV3Schema.properties.spec.properties.install.properties.spec.properties.deployments.items.properties.spec.properties.template.properties.metadata.x-kubernetes-preserve-unknown-fields true
161+
$(YQ_INTERNAL) w --inplace deploy/chart/crds/0000_50_olm_03-clusterserviceversion.crd.yaml spec.validation.openAPIV3Schema.properties.spec.properties.install.properties.spec.properties.deployments.items.properties.spec.properties.template.properties.metadata.x-kubernetes-preserve-unknown-fields true
162162

163163
# Generate clients, listers, and informers
164164
codegen:

deploy/chart/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
apiVersion: v1
1+
apiVersion: v2
22
description: A Helm chart for Kubernetes
33
name: olm

go.mod

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ require (
1818
github.com/openshift/client-go v0.0.0-20190923180330-3b6373338c9b
1919
github.com/operator-framework/operator-registry v1.5.8
2020
github.com/otiai10/copy v1.0.1
21-
github.com/pkg/errors v0.8.1
21+
github.com/pkg/errors v0.9.1
2222
github.com/prometheus/client_golang v1.2.1
2323
github.com/sirupsen/logrus v1.4.2
2424
github.com/spf13/cobra v0.0.5
2525
github.com/stretchr/testify v1.4.0
2626
golang.org/x/sys v0.0.0-20191210023423-ac6580df4449 // indirect
2727
golang.org/x/time v0.0.0-20191024005414-555d28b269f0
28-
google.golang.org/grpc v1.24.0
28+
google.golang.org/grpc v1.27.0
2929
gopkg.in/yaml.v2 v2.2.4
30-
helm.sh/helm/v3 v3.0.1
31-
k8s.io/api v0.17.1
32-
k8s.io/apiextensions-apiserver v0.17.1
33-
k8s.io/apimachinery v0.17.1
30+
helm.sh/helm/v3 v3.1.2
31+
k8s.io/api v0.17.2
32+
k8s.io/apiextensions-apiserver v0.17.2
33+
k8s.io/apimachinery v0.17.2
3434
k8s.io/apiserver v0.0.0
3535
k8s.io/client-go v8.0.0+incompatible
3636
k8s.io/code-generator v0.0.0
@@ -43,11 +43,12 @@ require (
4343
)
4444

4545
replace (
46+
github.com/Azure/go-autorest => github.com/Azure/go-autorest v13.3.2+incompatible
4647
github.com/docker/docker => github.com/moby/moby v0.7.3-0.20190826074503-38ab9da00309 // Required by Helm
4748
github.com/openshift/api => github.com/openshift/api v3.9.1-0.20190924102528-32369d4db2ad+incompatible
4849
github.com/openshift/client-go => github.com/openshift/client-go v0.0.0-20190923180330-3b6373338c9b
4950
github.com/prometheus/client_golang => github.com/prometheus/client_golang v0.9.3-0.20190127221311-3c4408c8b829
50-
helm.sh/helm/v3 => helm.sh/helm/v3 v3.0.0-beta.5.0.20200123114618-5e3c7d7eb86a
51+
google.golang.org/grpc => google.golang.org/grpc v1.26.0 // https://github.com/etcd-io/etcd/issues/11563
5152

5253
// Pin to kube 1.16
5354
k8s.io/api => k8s.io/api v0.0.0-20190918155943-95b840bb6a1f

go.sum

Lines changed: 126 additions & 21 deletions
Large diffs are not rendered by default.

scripts/package_release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ echo "Version: $1" >> ${charttmpdir}/Chart.yaml
2121

2222
mkdir -p ${chartdir}
2323

24-
go run -mod=vendor helm.sh/helm/v3/cmd/helm template -n olm -f ${values} ${charttmpdir} --output-dir ${charttmpdir}
24+
go run -mod=vendor helm.sh/helm/v3/cmd/helm template -n olm -f ${values} --include-crds --output-dir ${charttmpdir} ${charttmpdir}
2525

26-
cp -R ${charttmpdir}/olm/templates/. ${chartdir}
26+
cp -R "${charttmpdir}"/olm/{templates,crds}/. "${chartdir}"

0 commit comments

Comments
 (0)