Skip to content

Commit

Permalink
feat: renamed flavor to unicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Kruggel committed Jun 26, 2024
1 parent 5d4461e commit 7c9f782
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-docs-shim.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
flavor: [registry1, chainguard]
flavor: [registry1, unicorn]
type: [install, upgrade]
steps:
- name: Shim for ${{ matrix.type }} ${{ matrix.flavor }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
name: Publish package
strategy:
matrix:
flavor: [registry1, chainguard]
flavor: [registry1, unicorn]

permissions:
contents: read
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
timeout-minutes: 25
strategy:
matrix:
flavor: [registry1, chainguard]
flavor: [registry1, unicorn]
type: [install, upgrade]

steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ The Jenkins Package expects to be deployed on top of [UDS Core](https://github.c
| Flavor | Description | Example Creation |
| ------ | ----------- | ---------------- |
| registry1 | Uses images from registry1.dso.mil within the package. | `zarf package create . -f registry1` |
| chainguard | Uses images from cgr.dev within the package. | `zarf package create . -f chainguard` |
| unicorn | Uses images from cgr.dev within the package. | `zarf package create . -f unicorn` |

> [!IMPORTANT]
> **NOTE:** To create the registry1 or the chainguard flavor you will need to be logged into Iron Bank - you can find instructions on how to do this in the [Big Bang Zarf Tutorial](https://docs.zarf.dev/tutorials/6-big-bang/#setup).
> **NOTE:** To create the registry1 or the unicorn flavor you will need to be logged into Iron Bank - you can find instructions on how to do this in the [Big Bang Zarf Tutorial](https://docs.zarf.dev/tutorials/6-big-bang/#setup).
## Releases

Expand Down
2 changes: 1 addition & 1 deletion chart/templates/uds-package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec:
{{- if .Values.sso.enabled }}
sso:
- name: Jenkins SSO
clientId: uds-core-jenkins
clientId: uds-package-jenkins
redirectUris:
- "https://jenkins.{{ .Values.domain }}/securityRealm/finishLogin"
{{- end }}
Expand Down
2 changes: 1 addition & 1 deletion common/zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ components:
name: jenkins
namespace: jenkins
condition: "'{.status.phase}'=Ready"
- cmd: zarf tools kubectl get secrets sso-client-uds-core-jenkins -n jenkins -o=jsonpath='{.data.secret}' | base64 -d
- cmd: zarf tools kubectl get secrets sso-client-uds-package-jenkins -n jenkins -o=jsonpath='{.data.secret}' | base64 -d
mute: true
setVariables:
- name: JENKINS_CLIENT_SECRET
Expand Down
2 changes: 1 addition & 1 deletion values/common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ controller:
jenkins:
securityRealm:
oic:
clientId: "uds-core-jenkins"
clientId: "uds-package-jenkins"
clientSecret: "###ZARF_VAR_JENKINS_CLIENT_SECRET###"
wellKnownOpenIDConfigurationUrl: "https://sso.###ZARF_VAR_DOMAIN###/realms/uds"
tokenServerUrl: "https://sso.###ZARF_VAR_DOMAIN###/realms/uds/protocol/openid-connect/token"
Expand Down
2 changes: 1 addition & 1 deletion values/chainguard.yaml → values/unicorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ controller:
repository: "chainguard/k8s-sidecar"
tag: "latest"

# TODO get a chainguard version of this image
# TODO get a unicorn version of this image
agent:
image:
# -- Repository to pull the agent jnlp image from
Expand Down
6 changes: 3 additions & 3 deletions zarf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,20 @@ components:
- registry1.dso.mil/ironbank/kiwigrid/k8s-sidecar:1.27.2
- registry1.dso.mil/ironbank/opensource/bats/bats:v1.10.0-ubi9

# Note: chainguard flavor is experimental
# Note: unicorn flavor is experimental
- name: jenkins
required: true
description: "Deploy jenkins with registry1 images"
import:
path: common
only:
flavor: chainguard
flavor: unicorn
cluster:
architecture: amd64
charts:
- name: jenkins
valuesFiles:
- values/chainguard.yaml
- values/unicorn.yaml
images:
- cgr.dev/chainguard/jenkins:latest
- registry1.dso.mil/ironbank/opensource/jenkins/inbound-agent:3186.vc3b_7249b_87eb_-1
Expand Down

0 comments on commit 7c9f782

Please sign in to comment.