Skip to content

Commit

Permalink
automate arlon installation (#296)
Browse files Browse the repository at this point in the history
* add argo installation

* rename init to initialize

* ignoring preexisting resources when installing argocd

* add wait for argocd-server deployment

* add embeds

* add arlon install

* implementing port forward

* getting initial admin password

* Upgrade golang and use new container image for v0.10(port from v0.9) (#278)

* Upgrade golang in Docker to fix CVEs, upgrade controller-gen, kustomize

* Force golang.org/x/text version to 0.3.8 (or higher)

* Patch version upgrades for ArgoCD, CAPI

* Fix CVE https://avd.aquasec.com/nvd/2022/cve-2022-27664/ by upgrading to patch for golang.org/x/net

* Fixes #157 CVE-2022-21698 port from v0.9 (#284)

* Fix code scanning alert - CVE-2022-21698 #157

* Use image 0.9.12 from manifests/deploy.yaml and other minor updates

* Fix code scanning alert - CVE-2022-21698 #157

* adding replace for go-check/check

* automated argocd login

* port forward working.

* using image 0.9.12
fix link time argocd tag injection

* go mod tidy

* now copying manifests to the container

* not deploying the arlon-webhook

* review comments

Co-authored-by: Trilok Khairnar <[email protected]>
  • Loading branch information
Rohitrajak1807 and cruizen authored Nov 10, 2022
1 parent 5d81c21 commit 8263d3e
Show file tree
Hide file tree
Showing 19 changed files with 951 additions and 104 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# separate terms of service, privacy policy, and support
# documentation.

name: build
name: Trivy Code Scan

on:
push:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

# macos
.DS_Store
# Binaries for programs and plugins
*.exe
*.exe~
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ version: 2
build:
os: ubuntu-20.04
tools:
python: "3.9"
python: "3.11"

mkdocs:
configuration: mkdocs.yml
Expand Down
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ COPY api/ api/
COPY controllers/ controllers/
COPY pkg/ pkg/
COPY cmd/ cmd/
COPY deploy/ deploy/
COPY config/ config/

# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o arlon main.go
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ REPO_SERVER ?= ghcr.io
REPO_ORG ?= arlonproj
REPO_NAME ?= arlon
CAPI_VERSION := $(shell cat $(REPO_ROOT)$*/capirc)
ARGO_VERSION := $(shell cat $(REPO_ROOT)$*/argorc)
CAPI_LD_FLAG := -X github.com/arlonproj/arlon/cmd/install.capiCoreProvider=$(CAPI_VERSION)
LD_FLAGS := $(CAPI_LD_FLAG) -s -w
ARGO_LD_FLAG := -X github.com/arlonproj/arlon/cmd/initialize.argocdGitTag=$(ARGO_VERSION)
LD_FLAGS := $(CAPI_LD_FLAG) $(ARGO_LD_FLAG) -s -w
# Image URL to use all building/pushing image targets
IMG ?= $(REPO_SERVER)/$(REPO_ORG)/$(REPO_NAME)/controller:$(VERSION)
# Produce CRDs with multiversion enabled for v1 APIs - fixes failure in make test
Expand Down
1 change: 1 addition & 0 deletions argorc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
release-2.4
Loading

0 comments on commit 8263d3e

Please sign in to comment.