Skip to content
Closed
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@ $(CONTROLLER_GEN): $(LOCALBIN)
test -s $(LOCALBIN)/controller-gen || GOBIN=$(LOCALBIN) go install sigs.k8s.io/controller-tools/cmd/[email protected]

KUSTOMIZE ?= $(LOCALBIN)/kustomize
# TODO iain - This was 3.8.7 in previous version
KUSTOMIZE_VERSION ?= 4.5.5
KUSTOMIZE_INSTALL_SCRIPT ?= "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/kustomize/v${KUSTOMIZE_VERSION}/hack/install_kustomize.sh"
.PHONY: kustomize
Expand Down Expand Up @@ -196,25 +195,11 @@ bundle: manifests setup kustomize ## Generate bundle manifests and metadata, the
$(KUSTOMIZE) build config/manifests | operator-sdk generate bundle $(BUNDLE_GEN_FLAGS)
./scripts/csv_description_update.sh update_csv

# $(KUSTOMIZE) build config/kustomize/crd -o internal/deploy/kustomize/daily/base/websphere-liberty-crd.yaml
$(KUSTOMIZE) build config/kustomize/crd -o deploy/kustomize/daily/base/runtime-component-crd.yaml
cd config/kustomize/operator && $(KUSTOMIZE) edit set namespace $(KUSTOMIZE_NAMESPACE)
# $(KUSTOMIZE) build config/kustomize/operator -o internal/deploy/kustomize/daily/base/websphere-liberty-deployment.yaml
$(KUSTOMIZE) build config/kustomize/operator -o deploy/kustomize/daily/base/runtime-component-operator.yaml
# This does two replacements
# ${IMG} becomes ${KUSTOMIZE_IMG}
# serviceAccountName: controller-manager becomes serviceAccountName: websphere-liberty-controller-manager
# The second one looks unneeded, as the equivalent is already in the deployment file
# TODO iain
# Not sure about the first
# Probably
# sed -i.bak "s,${IMG},${KUSTOMIZE_IMG},g;s,serviceAccountName: controller-manager,serviceAccountName: websphere-liberty-controller-manager,g" internal/deploy/kustomize/daily/base/websphere-liberty-deployment.yaml
sed -i.bak "s,${IMG},${KUSTOMIZE_IMG},g" deploy/kustomize/daily/base/runtime-component-operator.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@idlewis In order for this change to be made, the image value within kustomize/daily folder (here) should have the new image

# TODO iain - I think these are included in the deployment file for RCO
# $(KUSTOMIZE) build config/kustomize/roles -o internal/deploy/kustomize/daily/base/websphere-liberty-roles.yaml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@idlewis Although the roles are included now in the deploy/kustomize/daily folder, we need this to continue to ensure that it's automatically updated in the future if/when roles change


mv config/manifests/patches/csvAnnotations.yaml.bak config/manifests/patches/csvAnnotations.yaml
# rm internal/deploy/kustomize/daily/base/websphere-liberty-deployment.yaml.bak
operator-sdk bundle validate ./bundle

.PHONY: fmt
Expand All @@ -234,7 +219,6 @@ test: manifests generate fmt vet ## Run tests.

.PHONY: unit-test
unit-test: ## Run unit tests
# go test -v -mod=vendor -tags=unit github.com/WASdev/websphere-liberty-operator/...
go test -v -mod=vendor -tags=unit github.com/application-stacks/runtime-component-operator/...

.PHONY: run
Expand Down