Skip to content

Commit 8854919

Browse files
Merge pull request #475 from tmshort/helm-config
OPRUN-4076, OPRUN-4078: Replace kustomize config with helm config
2 parents db481dd + 0932fbf commit 8854919

File tree

133 files changed

+6317
-494
lines changed

Some content is hidden

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

133 files changed

+6317
-494
lines changed

openshift/.bingo/Variables.mk

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ $(GOLANGCI_LINT): $(BINGO_DIR)/golangci-lint.mod
2929
@echo "(re)installing $(GOBIN)/golangci-lint-v2.1.6"
3030
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=golangci-lint.mod -o=$(GOBIN)/golangci-lint-v2.1.6 "github.com/golangci/golangci-lint/v2/cmd/golangci-lint"
3131

32+
HELM := $(GOBIN)/helm-v3.18.4
33+
$(HELM): $(BINGO_DIR)/helm.mod
34+
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.
35+
@echo "(re)installing $(GOBIN)/helm-v3.18.4"
36+
@cd $(BINGO_DIR) && GOWORK=off $(GO) build -mod=mod -modfile=helm.mod -o=$(GOBIN)/helm-v3.18.4 "helm.sh/helm/v3/cmd/helm"
37+
3238
KUSTOMIZE := $(GOBIN)/kustomize-v5.0.1
3339
$(KUSTOMIZE): $(BINGO_DIR)/kustomize.mod
3440
@# Install binary/ries using Go 1.14+ build command. This is using bwplotka/bingo-controlled, separate go module with pinned dependencies.

openshift/.bingo/helm.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module _ // Auto generated by https://github.com/bwplotka/bingo. DO NOT EDIT
2+
3+
go 1.24.3
4+
5+
require helm.sh/helm/v3 v3.18.4 // cmd/helm

openshift/.bingo/helm.sum

Lines changed: 303 additions & 0 deletions
Large diffs are not rendered by default.

openshift/.bingo/variables.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ GO_BINDATA="${GOBIN}/go-bindata-v3.1.2+incompatible"
1212

1313
GOLANGCI_LINT="${GOBIN}/golangci-lint-v2.1.6"
1414

15+
HELM="${GOBIN}/helm-v3.18.4"
16+
1517
KUSTOMIZE="${GOBIN}/kustomize-v5.0.1"
1618

1719
YQ="${GOBIN}/yq-v4.34.2"

openshift/Makefile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,13 @@ verify: ## Run downstream-specific verify
2424
git diff --exit-code
2525

2626
.PHONY: manifests
27-
manifests: $(KUSTOMIZE) $(YQ)
28-
$(DIR)/operator-controller/generate-manifests.sh
29-
$(DIR)/catalogd/generate-manifests.sh
27+
manifests: $(YQ) $(HELM)
28+
$(DIR)/helm/generate-manifests.sh
29+
# Make a single file of each manifest for comparison purposes
30+
cat $(DIR)/operator-controller/manifests/*.yml > $(DIR)/operator-controller/manifests.yaml
31+
cat $(DIR)/operator-controller/manifests-experimental/*.yml > $(DIR)/operator-controller/manifests-experimental.yaml
32+
cat $(DIR)/catalogd/manifests/*.yml > $(DIR)/catalogd/manifests.yaml
33+
cat $(DIR)/catalogd/manifests-experimental/*.yml > $(DIR)/catalogd/manifests-experimental.yaml
3034

3135
.PHONY: verify-manifests
3236
verify-manifests: manifests

openshift/catalogd.Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ COPY --from=builder /build/bin/catalogd /catalogd
1212
COPY openshift/catalogd/cp-manifests /cp-manifests
1313
COPY openshift/catalogd/manifests /openshift/manifests
1414
COPY openshift/catalogd/manifests-experimental /openshift/manifests-experimental
15+
COPY helm/olmv1 /openshift/helm/olmv1
16+
COPY openshift/helm/experimental.yaml /openshift/helm
17+
COPY openshift/helm/catalogd.yaml /openshift/helm/openshift.yaml
1518

1619
LABEL io.k8s.display-name="OpenShift Operator Lifecycle Manager Catalog Controller" \
1720
io.k8s.description="This is a component of OpenShift Container Platform that provides operator catalog support."

openshift/catalogd/cp-manifests

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,8 @@ if [ -d /openshift/manifests-experimental ]; then
1717
cp -a /openshift/manifests-experimental "${DEST}/experimental/catalogd"
1818
fi
1919

20+
if [ -d /openshift/helm ]; then
21+
mkdir -p "${DEST}/helm/catalogd"
22+
cp -a /openshift/helm "${DEST}/helm/catalogd"
23+
fi
24+

openshift/catalogd/manifests-experimental.yaml

Lines changed: 1111 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1+
---
2+
# Source: olmv1/templates/namespace.yml
13
apiVersion: v1
24
kind: Namespace
35
metadata:
46
annotations:
7+
olm.operatorframework.io/feature-set: experimental
58
openshift.io/node-selector: ""
69
workload.openshift.io/allowed: management
710
labels:
8-
app.kubernetes.io/part-of: olm
9-
openshift.io/cluster-monitoring: "true"
11+
app.kubernetes.io/name: catalogd
1012
pod-security.kubernetes.io/audit: privileged
1113
pod-security.kubernetes.io/audit-version: latest
1214
pod-security.kubernetes.io/enforce: privileged
1315
pod-security.kubernetes.io/enforce-version: latest
1416
pod-security.kubernetes.io/warn: privileged
1517
pod-security.kubernetes.io/warn-version: latest
18+
app.kubernetes.io/part-of: olm
19+
openshift.io/cluster-monitoring: "true"
1620
name: openshift-catalogd

openshift/catalogd/manifests/20-networkpolicy-openshift-catalogd-catalogd-controller-manager.yml renamed to openshift/catalogd/manifests-experimental/01-networkpolicy-openshift-catalogd-catalogd-controller-manager.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
---
2+
# Source: olmv1/templates/networkpolicy/networkpolicy-olmv1-system-catalogd-controller-manager.yml
23
apiVersion: networking.k8s.io/v1
34
kind: NetworkPolicy
45
metadata:
6+
annotations:
7+
olm.operatorframework.io/feature-set: experimental
8+
labels:
9+
app.kubernetes.io/name: catalogd
10+
app.kubernetes.io/part-of: olm
511
name: catalogd-controller-manager
612
namespace: openshift-catalogd
713
spec:

0 commit comments

Comments
 (0)