Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update hasura/graphql-engine docker tag to v2.25.1 #3

Open
wants to merge 101 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
5787cff
fix: action + default values
patrickleet Oct 21, 2022
dcbae25
fix: easier than making code harder to read by parsing and making low…
patrickleet Oct 21, 2022
f39c454
fix: version
patrickleet Oct 21, 2022
0726d78
feat: semantic version
patrickleet Oct 21, 2022
686262b
feat: release
patrickleet Oct 21, 2022
1b55144
feat: release
patrickleet Oct 21, 2022
67bc7a9
feat: release
patrickleet Oct 21, 2022
ddc5515
fix: token
patrickleet Oct 21, 2022
50771bf
fix: tag and release
patrickleet Oct 21, 2022
6ffb4a0
fix: create tag
patrickleet Oct 21, 2022
cf9d29d
fix: version
patrickleet Oct 21, 2022
63ed5d3
fix: template string
patrickleet Oct 21, 2022
6ee8420
fix: outputS
patrickleet Oct 21, 2022
0604ae1
fix: release docker image in release pipeline
patrickleet Oct 21, 2022
377319c
fix: workflow name
patrickleet Oct 21, 2022
2579858
fix: update version
patrickleet Oct 21, 2022
9c6edfb
fix: update version
patrickleet Oct 21, 2022
720d0bc
fix: update version
patrickleet Oct 21, 2022
596e566
fix: update version
patrickleet Oct 21, 2022
b7d1b8c
fix: update version
patrickleet Oct 21, 2022
778cf5a
fix: update version
patrickleet Oct 21, 2022
32391ac
fix: push
patrickleet Oct 21, 2022
ce3a014
fix: push
patrickleet Oct 21, 2022
5f07963
fix: push
patrickleet Oct 21, 2022
5cb91f2
fix: push
patrickleet Oct 21, 2022
d2daeba
fix: push
patrickleet Oct 22, 2022
1d1da4f
fix: push
patrickleet Oct 22, 2022
4a93cae
fix: secret name
patrickleet Oct 22, 2022
ef70cf6
fix: permissions
patrickleet Oct 22, 2022
e24a2a0
fix: order
patrickleet Oct 22, 2022
e0c9803
fix: order
patrickleet Oct 22, 2022
e660144
fix: tag
patrickleet Oct 22, 2022
448203d
fix: tags
patrickleet Oct 22, 2022
97c3e2a
fix: tags 2
patrickleet Oct 22, 2022
f499551
feat: bump
patrickleet Oct 22, 2022
38e21a3
chore: set version to v0.3.0
github-actions[bot] Oct 22, 2022
34eca86
feat: readd push to branch tag name
patrickleet Oct 22, 2022
fb97117
fix: revert change to tag in main
patrickleet Oct 22, 2022
d9558ef
fix: on push tags
patrickleet Oct 22, 2022
7b118a8
fix: patch
patrickleet Oct 22, 2022
1bfb047
fix: job names
patrickleet Oct 22, 2022
51670f1
fix: release to ghcr
patrickleet Oct 22, 2022
293b39d
fix: release
patrickleet Oct 22, 2022
98a5f4e
fix: release notes
patrickleet Oct 22, 2022
803ac3c
chore: cleanup
patrickleet Oct 22, 2022
ca832d1
feat: promotion
patrickleet Oct 23, 2022
0f7f878
fix: promotion
patrickleet Oct 23, 2022
9c66cb4
fix: checkout@v3
patrickleet Oct 23, 2022
8573d1c
fix: ref
patrickleet Oct 23, 2022
e507a0f
fix: ref
patrickleet Oct 23, 2022
8c3f46a
fix: git user
patrickleet Oct 23, 2022
29c972b
fix: PAT token
patrickleet Oct 23, 2022
6f12946
fix: PAT token 2
patrickleet Oct 23, 2022
b620b9c
fix: port protocol
patrickleet Oct 23, 2022
538a6e3
feat: jobs refactor
patrickleet Oct 23, 2022
a61c7b6
fix: use PAT
patrickleet Oct 23, 2022
f9b4ee4
fix: rebase
patrickleet Oct 23, 2022
3a58f7d
fix: permissions
patrickleet Oct 23, 2022
31d89ab
fix: use generated token
patrickleet Oct 23, 2022
f195de6
fix: ref name only
patrickleet Oct 23, 2022
8509b13
fix: debug
patrickleet Oct 23, 2022
3212b47
fix: ghcr + release
patrickleet Oct 23, 2022
a39ef0c
fix: cleanup
patrickleet Oct 23, 2022
748a21c
refactor: user yq to change release image tag
patrickleet Oct 23, 2022
75f4c40
chore: cleanup
patrickleet Oct 23, 2022
65157cd
chore: better changelog?
patrickleet Oct 23, 2022
a97f9ad
chore: better changelog?
patrickleet Oct 23, 2022
056a444
chore: better changelog?
patrickleet Oct 23, 2022
e853f1e
chore: better changelog?
patrickleet Oct 23, 2022
86f9e88
chore: better changelog?
patrickleet Oct 23, 2022
af5c52b
feat: pr-open workflow (#6)
patrickleet Oct 23, 2022
3462f32
feat: close pr (#7)
patrickleet Oct 23, 2022
cdcd801
chore(deps): update paulhatch/semantic-version action to v4.0.3 (#4)
renovate[bot] Oct 23, 2022
faab4e1
fix: delete pr-commenter as its neat but not actually doing anything …
patrickleet Oct 24, 2022
f0b3f7e
Refactor/dry pipeline (#9)
patrickleet Oct 24, 2022
03933e0
refactor: use org secret
patrickleet Oct 24, 2022
a8e4809
refactor: DRY - use repo name
patrickleet Oct 24, 2022
789d04c
feat: /helm + other gha improvements from other repo
patrickleet Oct 24, 2022
b51f54d
chore(deps): update postgres docker tag to v15 (#5)
renovate[bot] Oct 24, 2022
60e5598
fix: kubectl version
patrickleet Oct 25, 2022
594a66b
fix: pull secret
patrickleet Oct 25, 2022
1b8eb60
fix: pull secret
patrickleet Oct 25, 2022
497714d
fix: example hasura secrets + other updates
patrickleet Oct 26, 2022
4e6e584
fix: missing port protocol
patrickleet Oct 26, 2022
ea6fcd0
feat: add db metadata
patrickleet Oct 26, 2022
f821483
fix: model env var for actions
patrickleet Oct 26, 2022
88912c5
feat: missing table
patrickleet Oct 26, 2022
806e4c6
fix: waves
patrickleet Oct 31, 2022
eec44cc
feat: local dev
patrickleet Oct 31, 2022
834bc15
fix: rm unused files
patrickleet Oct 31, 2022
f863afd
fix(job): migrations post sync hook
patrickleet Nov 5, 2022
05cf368
fix(job): migrations post sync hook only - rm wave
patrickleet Nov 5, 2022
529c551
fix: sync ksvc in wave 0
patrickleet Nov 6, 2022
ebb4201
feat: update hasura version
patrickleet Nov 6, 2022
fe5b91c
fix: missed version
patrickleet Nov 6, 2022
16c1b53
feat: previews (#10)
patrickleet Nov 6, 2022
cc222e7
feat: shared workflows (#11)
patrickleet Nov 28, 2022
3556119
fix: no node
patrickleet Nov 28, 2022
30bfdf2
fix: auto-promote
patrickleet Nov 28, 2022
244cd86
fix(renovate): argocd
patrickleet Nov 28, 2022
4a997d4
chore(deps): update hasura/graphql-engine docker tag to v2.25.1
renovate[bot] May 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1 @@
charts
helm/
12 changes: 12 additions & 0 deletions .github/workflows/pr-close.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: pr-close
on:
pull_request:
types: [ closed ]

jobs:

preview-cleanup:
uses: CloudNativeEntrepreneur/actions/.github/workflows/gitops-preview-cleanup.yaml@main
secrets: inherit
with:
environment_repository: CloudNativeEntrepreneur/example-preview-envs
45 changes: 45 additions & 0 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: pr

on:

pull_request:
branches:
- main

jobs:

helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: helm

preview-helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: preview/helm

promote-helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: promote/helm

preview:
needs:
- helm-quality
- preview-helm-quality
- promote-helm-quality
uses: CloudNativeEntrepreneur/actions/.github/workflows/gitops-preview.yaml@main
secrets: inherit
with:
container: true
environment_repository: CloudNativeEntrepreneur/example-preview-envs
project: example-preview-envs
comment: |
Your preview environment has been published! :rocket:

It may take a few minutes to spin up, but you can view it here once it's ready: [${{ github.event.repository.name }}-pr-${{ github.event.pull_request.number }}-preview](http://${{ github.event.repository.name }}.${{ github.event.repository.name }}-pr-${{ github.event.pull_request.number }}-preview.127.0.0.1.sslip.io)

You can verify the PR is ready with `kubectl`:
```bash
kubectl get ksvc -n ${{ github.event.repository.name }}-pr-${{ github.event.pull_request.number }}-preview
```
30 changes: 30 additions & 0 deletions .github/workflows/publish-and-promote.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: promote
on:
push:
tags:
- v*.*.*

jobs:

publish-container:
uses: CloudNativeEntrepreneur/actions/.github/workflows/publish-container.yaml@main
secrets: inherit

promote-local:
uses: CloudNativeEntrepreneur/actions/.github/workflows/gitops-promote-helm.yaml@main
secrets: inherit
with:
environment_repository: CloudNativeEntrepreneur/example-local-env
project: example-local-env
pull_request: false
values: |
# Set from promote job of CloudNativeEntrepreneur/example-hasura
local: true

promote-prod:
uses: CloudNativeEntrepreneur/actions/.github/workflows/gitops-promote-helm.yaml@main
secrets: inherit
with:
environment_repository: CloudNativeEntrepreneur/example-prod-env
project: example-prod-env
pull_request: false
32 changes: 32 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: main
on:
push:
branches:
- main
jobs:

helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: helm

preview-helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: preview/helm

promote-helm-quality:
uses: CloudNativeEntrepreneur/actions/.github/workflows/helm-quality.yaml@main
with:
helm_path: promote/helm

release:
needs:
- helm-quality
- preview-helm-quality
- promote-helm-quality
uses: CloudNativeEntrepreneur/actions/.github/workflows/github-release.yaml@main
secrets: inherit
with:
helm: true
container: true
42 changes: 0 additions & 42 deletions .lighthouse/jenkins-x/pullrequest.yaml

This file was deleted.

49 changes: 0 additions & 49 deletions .lighthouse/jenkins-x/release.yaml

This file was deleted.

17 changes: 0 additions & 17 deletions .lighthouse/jenkins-x/triggers.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# This container runs migrations - the main hasura service is hasura/graphql-engine:v2.x.x
FROM hasura/graphql-engine:v2.0.10.cli-migrations-v3
FROM hasura/graphql-engine:v2.14.0.cli-migrations-v3

# we are managing migrations with schemahero - so let's avoid copying it here unless we go back to using Hasura for migrations.
# we still want the metadata and config though
Expand Down
36 changes: 5 additions & 31 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
HASURA_ENDPOINT?=http://example-hasura.default.127.0.0.1.sslip.io
LOCAL_DEV_CLUSTER ?= kind-local-dev-cluster
HASURA_ENDPOINT?=http://example-hasura.example-local-env.127.0.0.1.sslip.io
LOCAL_DEV_CLUSTER ?= rancher-desktop
NOW := $(shell date +%m_%d_%Y_%H_%M)
SERVICE_NAME := example-hasura
HASURA_GRAPHQL_DATABASE_URL=postgres://readmodel:$(kubectl get secret readmodel.example-readmodel-postgresql.credentials.postgresql.acid.zalan.do)@readmodel.default.cluster.svc.local:5432/readmodel
HASURA_GRAPHQL_DATABASE_URL=postgres://readmodel:$(kubectl get secret readmodel.example-readmodel-postgresql.credentials.postgresql.acid.zalan.do)@readmodel.example-local-env.cluster.svc.local:5432/readmodel

# Does what's described in Readme, runs in the background - `attach-to-tmux-session` to attach to the session where it is running
onboard: refresh-kind-image
onboard:
echo "Nothing to do. Deploy using gitops config."

open:
code .
Expand All @@ -14,30 +15,3 @@ migrate:
hasura metadata apply --endpoint $(HASURA_ENDPOINT)
hasura migrate apply --all-databases --endpoint $(HASURA_ENDPOINT)
hasura metadata reload --endpoint $(HASURA_ENDPOINT)

build-new-local-image:
kubectl ctx $(LOCAL_DEV_CLUSTER)
docker build -t $(SERVICE_NAME) .
docker tag $(SERVICE_NAME):latest dev.local/$(SERVICE_NAME):$(NOW)

load-local-image-to-kind:
kubectl ctx $(LOCAL_DEV_CLUSTER)
kind --name local-dev-cluster load docker-image dev.local/$(SERVICE_NAME):$(NOW)

deploy-to-local-cluster:
kubectl ctx $(LOCAL_DEV_CLUSTER)
helm template ./charts/$(SERVICE_NAME)/ \
-f ./charts/$(SERVICE_NAME)/values.yaml \
--set image.repository=dev.local/$(SERVICE_NAME),image.tag=$(NOW) \
| kubectl apply -f -
kubectl wait --for=condition=ready ksvc example-hasura --timeout=600s

delete-local-deployment:
kubectl ctx $(LOCAL_DEV_CLUSTER)
helm template ./charts/$(SERVICE_NAME)/ \
-f ./charts/$(SERVICE_NAME)/values.yaml \
--set image.repository=dev.local/$(SERVICE_NAME),image.tag=$(NOW) \
| kubectl delete -f -

refresh-kind-image: build-new-local-image load-local-image-to-kind deploy-to-local-cluster
hard-refresh-kind-image: delete-local-deployment build-new-local-image load-local-image-to-kind deploy-to-local-cluster
4 changes: 0 additions & 4 deletions OWNERS

This file was deleted.

6 changes: 0 additions & 6 deletions OWNERS_ALIASES

This file was deleted.

3 changes: 0 additions & 3 deletions charts/example-hasura/README.md

This file was deleted.

16 changes: 0 additions & 16 deletions charts/example-hasura/templates/_helpers.tpl

This file was deleted.

22 changes: 0 additions & 22 deletions charts/example-hasura/templates/service.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: 3
endpoint: http://example-hasura.default.127.0.0.1.sslip.io
endpoint: http://example-hasura.example-prod-env.127.0.0.1.sslip.io
metadata_directory: metadata
actions:
kind: synchronous
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.default-example.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
version: '3.6'
services:
postgres:
image: postgres:12
image: postgres:15
restart: always
volumes:
- db_data:/var/lib/postgresql/data
environment:
POSTGRES_PASSWORD: postgrespassword
graphql-engine:
image: hasura/graphql-engine:v2.0.10
image: hasura/graphql-engine:v2.25.1
ports:
- "8080:8080"
depends_on:
Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions helm/templates/external-secret-example-hasura.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{{- if .Values.localDev }}
{{- else }}
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: example-hasura
annotations:
argocd.argoproj.io/sync-wave: "-1"
spec:
secretStoreRef:
name: fake
kind: ClusterSecretStore
target:
name: example-hasura
dataFrom:
- extract:
key: /example-hasura
{{- end }}
Loading