-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #430 from LF-Decentralized-Trust-labs/operator-config
Enhancements to Operator Configuration and Installation Options
- Loading branch information
Showing
18 changed files
with
447 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Operator Build | ||
|
||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
operator-build: | ||
runs-on: ubuntu-latest | ||
env: | ||
CLUSTER_NAME: paladin | ||
NAMESPACE: paladin | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: Install pre-requisites | ||
uses: ./.github/actions/setup | ||
|
||
- name: Install Kind | ||
uses: helm/kind-action@v1 | ||
with: | ||
install_only: true # only install kind, the cluster creation is managed by the deploy step | ||
ignore_failed_clean: true | ||
|
||
- name: Download docker artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: /tmp # download all docker images to /tmp | ||
pattern: paladin-* | ||
merge-multiple: true | ||
|
||
- name: Load image | ||
run: | | ||
docker load --input /tmp/paladin-operator-${{ github.sha }}.tar | ||
docker load --input /tmp/paladin-${{ github.sha }}.tar | ||
docker image ls -a | ||
# The makefile uses kustomize | ||
- uses: imranismail/setup-kustomize@v2 | ||
|
||
- name: Deploy Operator | ||
run: | | ||
./gradlew deploy \ | ||
-PclusterName=${{ env.CLUSTER_NAME }} \ | ||
-Pnamespace=${{ env.NAMESPACE }} \ | ||
-PbuildOperator=false \ | ||
-PbuildPaladin=false \ | ||
-PoperatorImageName=paladin.io/paladin-operator \ | ||
-PoperatorImageTag=test \ | ||
-PpaladinImageName=paladin.io/paladin \ | ||
-PpaladinImageTag=test | ||
- name: Uninstall Operator | ||
run: | | ||
./gradlew clean \ | ||
-PclusterName=${{ env.CLUSTER_NAME }} \ | ||
-Pnamespace=${{ env.NAMESPACE }} \ | ||
-PdeleteCluster=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Install paladin operator using flux | ||
|
||
## Install the cert-manager | ||
``` | ||
kubectl apply -f cert-manager.yaml | ||
``` | ||
|
||
## Install paladin operator | ||
``` | ||
kubectl apply -f paladin-operator.yaml | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: cert-manager | ||
--- | ||
apiVersion: source.toolkit.fluxcd.io/v1 | ||
kind: HelmRepository | ||
metadata: | ||
name: cert-manager | ||
namespace: cert-manager | ||
spec: | ||
interval: 24h | ||
url: https://charts.jetstack.io | ||
|
||
--- | ||
apiVersion: helm.toolkit.fluxcd.io/v2 | ||
kind: HelmRelease | ||
metadata: | ||
name: cert-manager | ||
namespace: cert-manager | ||
spec: | ||
interval: 30m | ||
chart: | ||
spec: | ||
chart: cert-manager | ||
version: "v1.16.1" | ||
sourceRef: | ||
kind: HelmRepository | ||
name: cert-manager | ||
namespace: cert-manager | ||
interval: 12h | ||
values: | ||
installCRDs: true |
Oops, something went wrong.