-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cryostat3): deploy Cryostat 3.0 (#124)
Co-authored-by: Atif Ali <[email protected]> Co-authored-by: Thuan Vo <[email protected]>
- Loading branch information
1 parent
68a9bcf
commit 60a39a2
Showing
27 changed files
with
1,083 additions
and
420 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 |
---|---|---|
|
@@ -27,21 +27,22 @@ on: | |
|
||
env: | ||
TARGET_BRANCH: ${{ github.event.pull_request.base.ref || github.ref_name }} | ||
TEST_NAMESPACE: helm-test | ||
|
||
jobs: | ||
lint-chart: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v3 | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: v3.11.2 | ||
- uses: actions/setup-python@v4 | ||
version: v3.14.4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
python-version: '3.x' | ||
check-latest: true | ||
- name: Set up chart-testing | ||
uses: helm/[email protected] | ||
|
@@ -53,23 +54,30 @@ jobs: | |
- name: Fail if safe-to-test label NOT applied | ||
if: ${{ github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'safe-to-test') }} | ||
run: exit 1 | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v3 | ||
uses: azure/setup-helm@v4 | ||
with: | ||
version: v3.11.2 | ||
- uses: actions/setup-python@v4 | ||
version: v3.14.4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.9' | ||
python-version: '3.x' | ||
check-latest: true | ||
- uses: helm/[email protected] | ||
- name: Set up Kind cluster | ||
run: kind create cluster -n ci-${{ github.run_id }} | ||
uses: helm/kind-action@v1 | ||
with: | ||
cluster_name: ci-${{ github.run_id }} | ||
- name: Install and test chart | ||
run: | | ||
kubectl create ns helm-test | ||
ct install --target-branch ${TARGET_BRANCH} --upgrade --namespace=helm-test --config ct.yaml | ||
- name: Clean up Kind cluster | ||
run: kind delete cluster -n ci-${{ github.run_id }} | ||
# FIXME: Remove when chart-testing fixes the issue https://github.com/helm/chart-testing/issues/525 | ||
HELM_LOCATION="$(which helm)" | ||
sudo mv $HELM_LOCATION "$(dirname $HELM_LOCATION)/.helm" | ||
cat <(echo '#!/usr/bin/env bash') <(echo 'exec .helm "${@//--reuse-values/--reset-then-reuse-values}"') | sudo tee $HELM_LOCATION | ||
sudo chmod +x $HELM_LOCATION | ||
kubectl create ns $TEST_NAMESPACE | ||
ct install --target-branch ${TARGET_BRANCH} --upgrade --namespace=$TEST_NAMESPACE --config ct.yaml --debug |
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: {{ .Release.Name }}-alpha-config | ||
data: | ||
alpha_config.yaml: |- | ||
server: | ||
BindAddress: http://0.0.0.0:4180 | ||
upstreamConfig: | ||
proxyRawPath: true | ||
upstreams: | ||
- id: cryostat | ||
path: / | ||
uri: http://localhost:8181 | ||
- id: grafana | ||
path: /grafana/ | ||
uri: http://localhost:3000 | ||
- id: storage | ||
path: ^/storage/(.*)$ | ||
rewriteTarget: /$1 | ||
uri: http://localhost:8333 | ||
passHostHeader: false | ||
proxyWebSockets: false | ||
providers: | ||
- id: dummy | ||
name: Unused - Sign In Below | ||
clientId: CLIENT_ID | ||
clientSecret: CLIENT_SECRET | ||
provider: google |
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,16 @@ | ||
{{- if and (.Values.rbac.create) (.Values.authentication.openshift.enabled) -}} | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "cryostat.fullname" . }} | ||
labels: | ||
{{- include "cryostat.labels" . | nindent 4 }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ .Values.authentication.openshift.clusterRole.name }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "cryostat.serviceAccountName" . }} | ||
namespace: {{ .Release.Namespace }} | ||
{{- end }} |
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,7 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Release.Name }}-db-connection-key | ||
type: Opaque | ||
data: | ||
CONNECTION_KEY: {{ include "cryostat.databaseConnectionKey" . }} |
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,9 @@ | ||
{{- if empty .Values.core.databaseSecretName -}} | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: {{ .Release.Name }}-db-encryption-key | ||
type: Opaque | ||
data: | ||
ENCRYPTION_KEY: {{ include "cryostat.databaseEncryptionKey" . }} | ||
{{- end -}} |
Oops, something went wrong.