Skip to content

Commit

Permalink
fix: add keycloak to dev bundle and rename (#262)
Browse files Browse the repository at this point in the history
## Description
This change replaces the core-istio bundle with a dev-slim bundle that
includes keycloak in addition to istio and pepr.

## Related Issue
#251

---------

Co-authored-by: Micah Nagel <micah.nagel@defenseunicorns.com>
  • Loading branch information
zachariahmiller and mjnagel authored Mar 19, 2024
1 parent ec5f1ff commit 8a4291b
Show file tree
Hide file tree
Showing 13 changed files with 39 additions and 29 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/tag-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ jobs:
run: |
ZARF_ARCHITECTURE=amd64 uds run -f tasks/create.yaml standard-package --no-progress --set FLAVOR=${{ matrix.flavor }}
ZARF_ARCHITECTURE=amd64 uds run -f tasks/create.yaml k3d-standard-bundle --no-progress
ZARF_ARCHITECTURE=amd64 uds run -f tasks/create.yaml istio-package --no-progress --set FLAVOR=${{ matrix.flavor }}
ZARF_ARCHITECTURE=amd64 uds run -f tasks/create.yaml k3d-istio-bundle --no-progress
ZARF_ARCHITECTURE=amd64 uds run -f tasks/create.yaml slim-dev-package --no-progress --set FLAVOR=${{ matrix.flavor }}
ZARF_ARCHITECTURE=amd64 uds run -f tasks/create.yaml k3d-slim-dev-bundle --no-progress
if [ "${{ matrix.flavor }}" != "registry1" ]; then
ZARF_ARCHITECTURE=arm64 uds run -f tasks/create.yaml standard-package --no-progress --set FLAVOR=${{ matrix.flavor }}
ZARF_ARCHITECTURE=arm64 uds run -f tasks/create.yaml k3d-standard-bundle --no-progress
ZARF_ARCHITECTURE=arm64 uds run -f tasks/create.yaml istio-package --no-progress --set FLAVOR=${{ matrix.flavor }}
ZARF_ARCHITECTURE=arm64 uds run -f tasks/create.yaml k3d-istio-bundle --no-progress
ZARF_ARCHITECTURE=arm64 uds run -f tasks/create.yaml slim-dev-package --no-progress --set FLAVOR=${{ matrix.flavor }}
ZARF_ARCHITECTURE=arm64 uds run -f tasks/create.yaml k3d-slim-dev-bundle --no-progress
fi
# Standard Package by default tests what's in the Istio Package
Expand Down
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,19 @@ uds deploy k3d-core-demo:0.16.1

#### UDS Package Development

In addition to the demo bundle, a [k3d-core-istio-dev bundle](./bundles/k3d-istio/README.md) also exists to work with UDS Core with only Istio & Pepr installed. Run the command below to use it:
In addition to the demo bundle, a [k3d-slim-dev bundle](./bundles/k3d-slim-dev/README.md) also exists to work with UDS Core with only Istio, Keycloak & Pepr installed. Run the command below to use it.

Deploy Istio, Keycloak and Pepr:

<!-- x-release-please-start-version -->

```bash
uds deploy k3d-core-istio-dev:0.16.1
uds deploy k3d-core-slim-dev:0.16.1
```

<!-- x-release-please-end -->


#### Developing UDS Core

UDS Core development leverages the `uds zarf dev deploy` command. For convenience, a UDS Task is provided to setup the environment. You'll need to have [NodeJS](https://nodejs.org/en/download/) 20 or later installed to continue. Here's an example of a flow developing the [metrics-server package](./src/metrics-server/README.md):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# Unicorn Delivery Service - K3d Istio (UDS Core)
# Unicorn Delivery Service - K3d Slim Dev (UDS Core)

This bundle is a trimmed-down version of [UDS Core](../k3d-standard/README.md) bundle, with only the following UDS Core applications installed:

- [Istio](https://istio.io/) - Service Mesh
- [KeyCloak](https://www.keycloak.org/) - Identity & Access Management
- [Pepr](https://pepr.dev) - UDS policy engine & operator

The k3d uds-dev-stack provides:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
kind: UDSBundle
metadata:
name: k3d-core-istio-dev
name: k3d-core-slim-dev
description: A UDS bundle for deploying Istio from UDS Core on a development cluster
# x-release-please-start-version
version: "0.16.1"
Expand Down Expand Up @@ -33,7 +33,7 @@ packages:
# renovate: datasource=github-tags depName=defenseunicorns/zarf versioning=semver
ref: v0.32.5

- name: core-istio
- name: core-slim-dev
path: ../../build/
# x-release-please-start-version
ref: 0.16.1
Expand Down
3 changes: 0 additions & 3 deletions packages/istio/README.md

This file was deleted.

3 changes: 3 additions & 0 deletions packages/slim-dev/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# UDS Core Slim Dev

This is a special modified version of UDS Core that only includes the components needed to run Istio, UDS Operator and Keycloak.
10 changes: 8 additions & 2 deletions packages/istio/zarf.yaml → packages/slim-dev/zarf.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kind: ZarfPackageConfig
metadata:
name: core-istio
description: "UDS Core (Istio Only)"
name: core-slim-dev
description: "UDS Core (Istio, UDS Operator and Keycloak)"
authors: "Defense Unicorns - Product"
# x-release-please-start-version
version: "0.16.1"
Expand Down Expand Up @@ -34,3 +34,9 @@ components:
required: true
import:
path: ../standard

# Keycloak
- name: keycloak
required: true
import:
path: ../standard
4 changes: 2 additions & 2 deletions release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"versioning": "default",
"extra-files": [
"README.md",
"packages/istio/zarf.yaml",
"packages/slim-dev/zarf.yaml",
"packages/standard/zarf.yaml",
"bundles/k3d-istio/uds-bundle.yaml",
"bundles/k3d-slim-dev/uds-bundle.yaml",
"bundles/k3d-standard/uds-bundle.yaml",
"tasks/deploy.yaml",
"tasks/publish.yaml"
Expand Down
12 changes: 6 additions & 6 deletions tasks/create.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ tasks:
- description: "Create the UDS Core Standard Bundle"
cmd: "uds create bundles/k3d-standard --confirm --no-progress --architecture=${ZARF_ARCHITECTURE}"

- name: istio-package
- name: slim-dev-package
description: "Create the UDS Core (Istio Only) Zarf Package"
actions:
- task: pepr-build

- description: "Create the UDS Core Istio Zarf Package"
cmd: "uds zarf package create packages/istio --confirm --flavor ${FLAVOR}"
cmd: "uds zarf package create packages/slim-dev --confirm --flavor ${FLAVOR}"

- name: k3d-istio-bundle
description: "Create the K3d-UDS Core (Istio Only) Bundle"
- name: k3d-slim-dev-bundle
description: "Create the K3d-UDS Core (Istio and Keycloak Only) Bundle"
actions:
- description: "Create the UDS Core Istio Only Bundle"
cmd: "uds create bundles/k3d-istio --confirm --no-progress --architecture=${ZARF_ARCHITECTURE}"
- description: "Create the UDS Core Istio and Keycloak Only Bundle"
cmd: "uds create bundles/k3d-slim-dev --confirm --no-progress --architecture=${ZARF_ARCHITECTURE}"

- name: single-package
description: "Create a single Zarf Package, must set UDS_PKG environment variable"
Expand Down
6 changes: 3 additions & 3 deletions tasks/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ tasks:
- description: "Deploy the UDS Core Standard Bundle"
cmd: uds deploy bundles/k3d-standard/uds-bundle-k3d-core-demo-${UDS_ARCH}-${VERSION}.tar.zst --confirm --no-progress

- name: k3d-istio-bundle
- name: k3d-slim-dev-bundle
actions:
- description: "Deploy the UDS Core Istio Only Bundle"
cmd: uds deploy bundles/k3d-istio/uds-bundle-k3d-core-istio-dev-${UDS_ARCH}-${VERSION}.tar.zst --confirm --no-progress
- description: "Deploy the UDS Core Slim Dev Only Bundle"
cmd: uds deploy bundles/k3d-slim-dev/uds-bundle-k3d-core-slim-dev-${UDS_ARCH}-${VERSION}.tar.zst --confirm --no-progress

- name: single-package
actions:
Expand Down
2 changes: 1 addition & 1 deletion tasks/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ tasks:
- description: "Pepr Format check"
cmd: npx pepr format --validate-only
- description: install yamllint deps
cmd: pip install yamllint
cmd: CMD=pip && which $CMD || CMD=pip3 && $CMD install yamllint
- description: yaml lint
cmd: yamllint . -c .yamllint --no-warnings
4 changes: 2 additions & 2 deletions tasks/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ tasks:
uds publish bundles/k3d-standard/uds-bundle-k3d-*-amd64-${VERSION}.tar.zst ${TARGET_REPO}/bundles --no-progress
uds publish bundles/k3d-standard/uds-bundle-k3d-*-arm64-${VERSION}.tar.zst ${TARGET_REPO}/bundles --no-progress
uds publish bundles/k3d-istio/uds-bundle-k3d-*-arm64-${VERSION}.tar.zst ${TARGET_REPO}/bundles --no-progress
uds publish bundles/k3d-istio/uds-bundle-k3d-*-amd64-${VERSION}.tar.zst ${TARGET_REPO}/bundles --no-progress
uds publish bundles/k3d-slim-dev/uds-bundle-k3d-*-arm64-${VERSION}.tar.zst ${TARGET_REPO}/bundles --no-progress
uds publish bundles/k3d-slim-dev/uds-bundle-k3d-*-amd64-${VERSION}.tar.zst ${TARGET_REPO}/bundles --no-progress
- description: "Tag the latest bundles"
cmd: |
Expand Down
2 changes: 1 addition & 1 deletion tasks/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tasks:
description: "Build and test UDS Core"
actions:
- task: create:standard-package
- task: create:istio-package
- task: create:slim-dev-package
- task: create:k3d-standard-bundle
- task: deploy:k3d-standard-bundle
- task: validate-packages
Expand Down

0 comments on commit 8a4291b

Please sign in to comment.