Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
Update dependencies and add calico (#19)
Browse files Browse the repository at this point in the history
* Upgrade dependencies

* Update to use Calico
  • Loading branch information
anthonywendt authored Aug 10, 2023
1 parent ba72d2f commit 00676ec
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
uses: supplypike/setup-bin@v3
with:
# renovate: zarf-uri datasource=github-tags depName=defenseunicorns/zarf
uri: 'https://github.com/defenseunicorns/zarf/releases/download/v0.28.0/zarf_v0.28.0_Linux_amd64'
uri: 'https://github.com/defenseunicorns/zarf/releases/download/v0.28.4/zarf_v0.28.4_Linux_amd64'
name: 'zarf'
# renovate: datasource=github-tags depName=defenseunicorns/zarf versioning=semver
version: 'v0.28.0'
version: 'v0.28.4'

- name: Login to GHCR
uses: docker/login-action@v2
Expand Down
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ repos:
hooks:
- id: fix-smartquotes
- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.23.0
rev: 0.24.0
hooks:
- id: check-jsonschema
name: "Validate Zarf Configs Against Schema"
Expand All @@ -44,10 +44,10 @@ repos:
"--no-cache"
]
- repo: https://github.com/golangci/golangci-lint
rev: v1.52.2
rev: v1.52.3
hooks:
- id: golangci-lint
- repo: https://github.com/renovatebot/pre-commit-hooks
rev: 35.105.1
rev: 36.40.0
hooks:
- id: renovate-config-validator
10 changes: 5 additions & 5 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
golang 1.20.4
golangci-lint 1.52.2
pre-commit 3.3.2
terraform 1.4.6
tflint 0.46.1
golang 1.21.0
golangci-lint 1.53.3
pre-commit 3.3.3
terraform 1.5.4
tflint 0.47.0
tfsec 1.28.1
sops 3.7.3
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# The version of Zarf to use. To keep this repo as portable as possible the Zarf binary will be downloaded and added to
# the build folder.
# renovate: datasource=github-tags depName=defenseunicorns/zarf
ZARF_VERSION := v0.28.2
ZARF_VERSION := v0.28.4

# The version of the build harness container to use
BUILD_HARNESS_REPO := ghcr.io/defenseunicorns/build-harness/build-harness
# renovate: datasource=docker depName=ghcr.io/defenseunicorns/build-harness/build-harness
BUILD_HARNESS_VERSION := 1.7.1
BUILD_HARNESS_VERSION := 1.10.2
# renovate: datasource=docker depName=ghcr.io/defenseunicorns/packages/dubbd-k3d extractVersion=^(?<version>\d+\.\d+\.\d+)
DUBBD_K3D_VERSION := 0.5.0
DUBBD_K3D_VERSION := 0.6.1

# Figure out which Zarf binary we should use based on the operating system we are on
ZARF_BIN := zarf
Expand Down Expand Up @@ -120,6 +120,13 @@ cluster/full: cluster/destroy cluster/create build/all deploy/all ## This will d
cluster/create: ## Create a k3d cluster with metallb installed
k3d cluster create k3d-test-cluster --config utils/k3d/k3d-config.yaml -v /etc/machine-id:/etc/machine-id@server:*
k3d kubeconfig merge k3d-test-cluster -o /home/${USER}/cluster-kubeconfig.yaml
echo "Installing Calico..."
kubectl apply --wait=true -f https://k3d.io/v5.5.2/usage/advanced/calico.yaml 2>&1 >/dev/null
echo "Waiting for Calico to be ready..."
kubectl rollout status deployment/calico-kube-controllers -n kube-system --watch --timeout=90s 2>&1 >/dev/null
kubectl rollout status daemonset/calico-node -n kube-system --watch --timeout=90s 2>&1 >/dev/null
kubectl wait --for=condition=Ready pods --all --all-namespaces 2>&1 >/dev/null
echo
utils/metallb/install.sh
echo "Cluster is ready!"

Expand Down
2 changes: 1 addition & 1 deletion gitlab-flux-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ application:
repository: https://repo1.dso.mil/big-bang/product/packages/gitlab.git
ref:
# renovate: datasource=gitlab-tags depName=big-bang/product/packages/gitlab versioning=loose registryUrl=https://repo1.dso.mil
tag: 7.0.4-bb.0
tag: 7.1.2-bb.0
values: |
###ZARF_VAR_GITLAB_VALUES###
dependsOn:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/defenseunicorns/uds-capability-gitlab
go 1.20

require (
github.com/gruntwork-io/terratest v0.43.7
github.com/gruntwork-io/terratest v0.43.11
github.com/stretchr/testify v1.8.4
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/ad
github.com/grpc-ecosystem/grpc-gateway v1.16.0/go.mod h1:BDjrQk3hbvj6Nolgz8mAMFbcEtjT1g+wF4CSlocrBnw=
github.com/gruntwork-io/go-commons v0.8.0 h1:k/yypwrPqSeYHevLlEDmvmgQzcyTwrlZGRaxEM6G0ro=
github.com/gruntwork-io/go-commons v0.8.0/go.mod h1:gtp0yTtIBExIZp7vyIV9I0XQkVwiQZze678hvDXof78=
github.com/gruntwork-io/terratest v0.43.7 h1:K1svA1v92xhiyZAm3WCwHXd8OqsrdVXzcOlhz6PGIBM=
github.com/gruntwork-io/terratest v0.43.7/go.mod h1:Tw+6/fcJFiBPpsx9NNSkLG5oHKIeaqiJHVLpQ+ORIfQ=
github.com/gruntwork-io/terratest v0.43.11 h1:k3U5lZjiNa38rqcTx/dus8cCaJY7qxShGIuGLeLfj/s=
github.com/gruntwork-io/terratest v0.43.11/go.mod h1:Tw+6/fcJFiBPpsx9NNSkLG5oHKIeaqiJHVLpQ+ORIfQ=
github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
Expand Down
6 changes: 6 additions & 0 deletions utils/k3d/k3d-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ options:
- arg: --disable=servicelb
nodeFilters:
- server:*
- arg: --flannel-backend=none
nodeFilters:
- server:*
- arg: --disable-network-policy
nodeFilters:
- server:*
k3d:
wait: true
ports:
Expand Down
26 changes: 13 additions & 13 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: ZarfPackageConfig
metadata:
name: gitlab
description: "UDS GitLab capability deployed via flux"
version: "0.0.4"
version: "0.0.5"
architecture: amd64

variables:
Expand Down Expand Up @@ -41,21 +41,21 @@ components:
repos:
- https://repo1.dso.mil/big-bang/product/packages/gitlab.git
images:
- "registry1.dso.mil/ironbank/bitnami/analytics/redis-exporter:v1.50.0"
- "registry1.dso.mil/ironbank/bitnami/analytics/redis-exporter:v1.51.0"
- "registry1.dso.mil/ironbank/bitnami/redis:7.0.0-debian-10-r3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/certificates:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/certificates:16.1.2"
- "registry1.dso.mil/ironbank/gitlab/gitlab/cfssl-self-sign:1.6.1"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitaly:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-container-registry:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-shell:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-sidekiq:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-toolbox:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-webservice:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-workhorse:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/kubectl:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitaly:16.1.2"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-container-registry:16.1.2"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-shell:16.1.2"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-sidekiq:16.1.2"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-toolbox:16.1.2"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-webservice:16.1.2"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-workhorse:16.1.2"
- "registry1.dso.mil/ironbank/gitlab/gitlab/kubectl:16.1.2"
- "registry1.dso.mil/ironbank/opensource/minio/mc:RELEASE.2022-12-24T15-21-38Z"
- "registry1.dso.mil/ironbank/opensource/minio/minio:RELEASE.2022-12-12T19-27-27Z"
- "registry1.dso.mil/ironbank/opensource/postgres/postgresql:14.8"
- "registry1.dso.mil/ironbank/redhat/ubi/ubi8:8.8"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-exporter:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/kubectl:16.0.3"
- "registry1.dso.mil/ironbank/gitlab/gitlab/gitlab-exporter:16.1.2"
- "registry1.dso.mil/ironbank/gitlab/gitlab/kubectl:16.1.2"

0 comments on commit 00676ec

Please sign in to comment.