Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,18 @@ fmt: ## Run go fmt against code.
vet: ## Run go vet against code.
go vet ./...

.PHONY: update-dependencies
update-dependencies: ## Update Go dependencies and regenerate CRDs, manifests and bundle.
$(MAKE) -C argocd-operator update-dependencies

.PHONY: update-dependencies-argocd
update-dependencies-argocd: ## Update only the Argo CD dependency.
$(MAKE) -C argocd-operator update-dependencies-argocd

.PHONY: update-dependencies-gitops-promoter
update-dependencies-gitops-promoter: ## Update only the GitOps Promoter dependency.
$(MAKE) -C argocd-operator update-dependencies-gitops-promoter

.PHONY: test-all
test-all: manifests generate fmt vet ## Run all tests.
go test -timeout 1h ./... -coverprofile cover.out
Expand Down
11 changes: 10 additions & 1 deletion argocd-operator/hack/update-dependencies-script/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,13 @@ Then run the script:
make update-dependencies
```

See `hack/update-dependencies-script/main.go` for list of dependencies that are updated.
See each dependency subdirectory's `main.go` for the list of files it updates.

## Environment overrides

- `GITOPS_PROMOTER_VERSION`: GitOps Promoter release from which CRDs are copied. It must match
the version pinned in `argocd-operator/go.mod`; the updater fails otherwise, since the copied
CRDs have to match the vendored controller.
- `REDIS_MIRROR_IMAGE`: image repository used to resolve the Redis digest. Defaults to
`quay.io/akuity/redis`. If the digest cannot be resolved (for example, the mirror does not have
the tag yet), the Redis digests are left unchanged and the rest of the update continues.
Loading
Loading