-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ci): provide demo/preview environments (#1406)
## Summary Updates the celestia-local chart to allow helm-parameter overrides when creating PR preview environments. ## Background To show how we can leverage a preview environments for: - testing work in progress PR - providing a demo environment to external users - Testing against a live cluster ## Changes - Update celestia-local chart to: - remove hardcoded values - allow specifying ingress params - ensuring PVC storage is namespace scoped - Update sequencer and evm-stack components to support parameterized imagePullPolicy for ArgoCD - Include ArgoCD ApplicationSet for PR preview envs (to be applied by admins) ## Testing - Rendering locally for manual inspection - Applied changes to argocd.dev.astria.org to test on live cluster - Verify components are being deployed successfully - Confirm smoke-tests pass when pointing to deployed components --------- Co-authored-by: ido <[email protected]>
- Loading branch information
1 parent
b401e4f
commit d2b9083
Showing
38 changed files
with
548 additions
and
82 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
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,82 @@ | ||
{{/* | ||
Namepsace to deploy elements into. | ||
*/}} | ||
{{- define "celestia.namespace" -}} | ||
{{- default .Release.Namespace .Values.global.namespaceOverride | trunc 63 | trimSuffix "-" -}} | ||
{{- end }} | ||
|
||
|
||
{{/* | ||
Expand the name of the chart. | ||
*/}} | ||
{{- define "celestia.appName" -}} | ||
{{- default (include "celestia.name" .) | trunc 63 | trimSuffix "-" }}-astria-dev-cluster | ||
{{- end }} | ||
|
||
{{/* | ||
Common labels | ||
*/}} | ||
{{- define "celestia.labels" -}} | ||
{{ include "celestia.selectorLabels" . }} | ||
{{- end }} | ||
|
||
{{/* | ||
Selector labels | ||
*/}} | ||
{{- define "celestia.selectorLabels" -}} | ||
app: {{ include "celestia.appName" . }} | ||
{{- end }} | ||
|
||
{{/* | ||
The log level represented as a number | ||
*/}} | ||
{{- define "celestia.logLevelNum" -}} | ||
{{- if eq .Values.config.logLevel "error" }} | ||
1 | ||
{{- else if eq .Values.config.logLevel "warn" }} | ||
2 | ||
{{- else if eq .Values.config.logLevel "info" }} | ||
3 | ||
{{- else if eq .Values.config.logLevel "debug" }} | ||
4 | ||
{{- else if eq .Values.config.logLevel "trace" }} | ||
5 | ||
{{- end }} | ||
{{- end }} | ||
|
||
|
||
|
||
|
||
{{/* | ||
Return if ingress is stable. | ||
*/}} | ||
{{- define "celestia.ingress.isStable" -}} | ||
{{- eq (include "celestia.ingress.apiVersion" .) "networking.k8s.io/v1" }} | ||
{{- end }} | ||
|
||
{{/* | ||
Return if ingress supports ingressClassName. | ||
*/}} | ||
{{- define "celestia.ingress.supportsIngressClassName" -}} | ||
{{- or (eq (include "celestia.ingress.isStable" .) "true") (and (eq (include "celestia.ingress.apiVersion" .) "networking.k8s.io/v1beta1") (semverCompare ">= 1.18-0" .Capabilities.KubeVersion.Version)) }} | ||
{{- end }} | ||
|
||
{{/* | ||
Return if ingress supports pathType. | ||
*/}} | ||
{{- define "celestia.ingress.supportsPathType" -}} | ||
{{- or (eq (include "celestia.ingress.isStable" .) "true") (and (eq (include "celestia.ingress.apiVersion" .) "networking.k8s.io/v1beta1") (semverCompare ">= 1.18-0" .Capabilities.KubeVersion.Version)) }} | ||
{{- end }} | ||
|
||
{{/* | ||
Return the appropriate apiVersion for ingress. | ||
*/}} | ||
{{- define "celestia.ingress.apiVersion" -}} | ||
{{- if and ($.Capabilities.APIVersions.Has "networking.k8s.io/v1") (semverCompare ">= 1.19-0" .Capabilities.KubeVersion.Version) }} | ||
{{- print "networking.k8s.io/v1" }} | ||
{{- else if $.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1" }} | ||
{{- print "networking.k8s.io/v1beta1" }} | ||
{{- else }} | ||
{{- print "extensions/v1beta1" }} | ||
{{- end }} | ||
{{- 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
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
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
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
Oops, something went wrong.