Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
444 commits
Select commit Hold shift + click to select a range
c931ce8
feat(apps/infra): fixes infra resource updates, and error-on-apply
nxtcoder17 Dec 20, 2023
cfd550f
Changed err to errors.NewE(err) in infra.
nxtcoder36 Dec 21, 2023
7037c1a
Merge remote-tracking branch 'origin' into update/error-handling-fixes
nxtcoder36 Dec 21, 2023
9afdbdc
Merge pull request #122 from kloudlite/update/error-handling-fixes
nxtcoder36 Dec 21, 2023
92379c1
feat(apps/message-office): adds ping() rpc service
nxtcoder17 Dec 21, 2023
0f27113
refactor: cleanup, and better logging
nxtcoder17 Dec 21, 2023
c42f971
Merge branch 'release-1.0.5' of github.com:kloudlite/api into release…
nxtcoder17 Dec 21, 2023
5b6bff6
Update build-container.yml
abdheshnayak Dec 22, 2023
f16858d
deps(go): github.com/kloudlite/operator pkg update
nxtcoder17 Dec 22, 2023
12612b8
fix(apps/container-registry): fixes agent deps
nxtcoder17 Dec 22, 2023
6fbae18
fix(apps): updates import paths for agent types
nxtcoder17 Dec 22, 2023
8d77026
fix(cmd/struct-to-graphql): updates module name
nxtcoder17 Dec 22, 2023
7c926de
fix(apps): graphql types updated with changed module name
nxtcoder17 Dec 22, 2023
4ad5990
fix(container-registry): fixes graphql types
nxtcoder17 Dec 22, 2023
6bcc52b
Added nats in infra domain to publish message on create, delete, update.
nxtcoder19 Dec 22, 2023
d6155a9
added gateway container image build to workflows
karthik1729 Dec 22, 2023
6483206
changed build script
karthik1729 Dec 22, 2023
a7c3311
Published messages to NATs when there are resource updates
karthik1729 Dec 22, 2023
7dc25a9
Merge branch 'release-1.0.5' of github.com:kloudlite/api into update/…
karthik1729 Dec 22, 2023
6175e68
Merge pull request #124 from kloudlite/update/nats-messages
nxtcoder19 Dec 22, 2023
e4510f4
Feature/websocket server (#125)
abdheshnayak Dec 23, 2023
1baa933
Error Handling
karthik1729 Dec 24, 2023
fc11bc9
Removed cluster update on read or list clusters (#127)
karthik1729 Dec 26, 2023
ab9e736
Fix/minor-bug (#128)
karthik1729 Dec 26, 2023
c7cdfae
Feature/websocket server (#129)
abdheshnayak Dec 27, 2023
f250ae7
:sparkles: Added Cluster managed service (#130)
abdheshnayak Dec 27, 2023
9fd3d71
Updated nats messaging for infra microservice.
nxtcoder19 Dec 27, 2023
dca61d5
Merge pull request #131 from kloudlite/update/nats-messages
nxtcoder19 Dec 27, 2023
949ae7f
Cleanup subject name formating
karthik1729 Dec 27, 2023
3cc64b0
removed unnecessary natscli injection
karthik1729 Dec 27, 2023
23b13c8
:recycle: Moved build run from infra to container-registry (#132)
abdheshnayak Dec 27, 2023
710d6e2
Merge branch 'release-1.0.5' into feature/console-checklist
nxtcoder19 Dec 27, 2023
302f224
Added nats messaging in console-api for app, msvc, mres, project, rou…
nxtcoder19 Dec 27, 2023
f265e3b
minor changes in nats messaging in infra.
nxtcoder19 Dec 27, 2023
540570c
provided http server (#133)
karthik1729 Dec 27, 2023
a02cf43
updated github webhook length check properly (#134)
karthik1729 Dec 27, 2023
6abc969
topic name fix gitwebhooks
karthik1729 Dec 27, 2023
45ecd9c
WIP
karthik1729 Dec 27, 2023
1b580b4
Fixed NATS subject name (#136)
karthik1729 Dec 27, 2023
6e77ad7
Merge branch 'release-1.0.5' into feature/console-checklist
karthik1729 Dec 27, 2023
4cfe813
WIP
karthik1729 Dec 28, 2023
759a628
added CR updates in message office (#137)
karthik1729 Dec 28, 2023
f736771
Feature/message office cr updates (#138)
karthik1729 Dec 28, 2023
68a1b46
Merge branch 'release-1.0.5' of github.com:kloudlite/api into feature…
karthik1729 Dec 28, 2023
365dac0
Merge Conflit Resolution
karthik1729 Dec 28, 2023
2a0d087
container registry build run updates
karthik1729 Dec 28, 2023
2c08907
Listing all workspaces and environments as environments
karthik1729 Dec 28, 2023
1d0677b
Listing all workspaces and environments as environments (#139)
karthik1729 Dec 28, 2023
379c0c0
Retained List workspaces in domain interface
karthik1729 Dec 28, 2023
2d513ef
Fix/list workspaces as environments (#140)
karthik1729 Dec 28, 2023
4804417
Fix/list workspaces as environments (#141)
karthik1729 Dec 28, 2023
8e9cacc
Fix/list workspaces as environments (#142)
karthik1729 Dec 28, 2023
164079a
Merge branch 'release-1.0.5' into fix/list-workspaces-as-environments
karthik1729 Dec 28, 2023
5d193af
Retained and Exposed list workspace for later use
karthik1729 Dec 28, 2023
aabcfb0
Fix/list workspaces as environments (#143)
karthik1729 Dec 28, 2023
fe4e4bc
Nats message publisher implemented in container registry. (#144)
nxtcoder36 Dec 29, 2023
fff78ce
Check deletion timestamp and finalisers to delete resource
karthik1729 Dec 29, 2023
d66493a
Merge branch 'release-1.0.5' into fix/list-workspaces-as-environments
karthik1729 Dec 29, 2023
e79f6c4
feat(apps/iam): adds Role Bindings for cluster managed services
nxtcoder17 Dec 29, 2023
69a3c80
fix(apps/infra): fixes missing sync status
nxtcoder17 Dec 29, 2023
4d715f9
:sparkles: Wip, feature helm-release
abdheshnayak Dec 29, 2023
c38d002
:coffin: Removed managed service from the console
abdheshnayak Dec 29, 2023
80e8a36
Merge branch 'release-1.0.5' into feature/helm-release
abdheshnayak Dec 29, 2023
8fa0d60
:twisted_rightwards_arrows: Fixed issue raised by merge
abdheshnayak Dec 29, 2023
6cb745f
fix(infra): updates resource updates from agent processing
nxtcoder17 Dec 29, 2023
efa66ff
Merge pull request #147 from kloudlite/feature/helm-release
abdheshnayak Dec 29, 2023
aa8e6c6
:coffin: Removed listing managed service tempalte from console
abdheshnayak Jan 1, 2024
a81f074
:sparkles: Added list and get managed service template in infra
abdheshnayak Jan 1, 2024
d6d1b88
Merge pull request #148 from kloudlite/feature/helm-release
abdheshnayak Jan 1, 2024
79cabc8
fix(apps/infra): fixes infra process resource updates
nxtcoder17 Jan 1, 2024
7e13df5
Implementation fix
karthik1729 Jan 1, 2024
123c530
Implementation fix (#150)
karthik1729 Jan 1, 2024
70faa97
Merge branch 'release-1.0.5' of github.com:kloudlite/api into release…
karthik1729 Jan 1, 2024
78fc306
fix(apps/console): fixes resource updates processing (#151)
nxtcoder17 Jan 1, 2024
3423757
Fix/sync status graphql (#153)
nxtcoder17 Jan 1, 2024
3c14639
fix(container-registry): fixes graphql schemas
nxtcoder17 Jan 2, 2024
8ecb685
Made changes to Managed Service Spec
karthik1729 Jan 2, 2024
5714dcb
Updated infra
karthik1729 Jan 2, 2024
f33ca18
Made changes to Managed Service Spec (#156)
karthik1729 Jan 2, 2024
3b66bc7
Merge branch 'release-1.0.5' of github.com:kloudlite/api into release…
karthik1729 Jan 2, 2024
547331d
Feature/websocket server (#158)
abdheshnayak Jan 3, 2024
9b50c1b
Fix/remove embedded account and cluster from resources (#159)
nxtcoder17 Jan 3, 2024
6f755b0
minor changes in console for listing of workspaces. (#161)
nxtcoder36 Jan 3, 2024
ecd0125
feat(apps/infra): Adds more resources to resource sync updates
nxtcoder19 Jan 4, 2024
6b86bc4
changes helm types from operator update
karthik1729 Jan 4, 2024
79e94aa
:sparkles: Added new gql mutation query to update device ports (#163)
abdheshnayak Jan 5, 2024
7ef4e51
feat(apps/console): clusterReference removed from resources
nxtcoder17 Jan 5, 2024
2608110
fix(apps/console): removes cluster reference from resources
nxtcoder17 Jan 6, 2024
bd8e8f5
feat(apps/message-office): updates implementation for `messages.proto`
nxtcoder17 Jan 6, 2024
6e6bc9d
fix(apps/iam): removes role binding actions for `workspace`
nxtcoder17 Jan 6, 2024
77e118d
chore: updates `github.com/kloudlite/operator`
nxtcoder17 Jan 6, 2024
debef99
fix(apps/tenant-agent): fixes errors due to change in message office
nxtcoder17 Jan 6, 2024
ce55b0d
chore: go mod updates `github.com/kloudlite/operator`
nxtcoder17 Jan 6, 2024
10921a5
fix(console): migrates `Workspace` to `Environment`
nxtcoder17 Jan 7, 2024
78096c0
fix(apps/console): fixes secret resource creation
nxtcoder17 Jan 8, 2024
3815b83
feat(apps/infra): fixes helm resource syncing
nxtcoder17 Jan 8, 2024
68f253f
fix(apps/infra): fixes resource syncing issues
nxtcoder17 Jan 8, 2024
6453afe
implemented project managed service
karthik1729 Jan 8, 2024
00db208
feat(api/console): Implemented project managed services in console API
karthik1729 Jan 8, 2024
93577d3
:sparkles: Added new gql mutation query to update device ports (#169)
abdheshnayak Jan 8, 2024
071751f
:sparkles: Added mutation query to update device namespace (#170)
abdheshnayak Jan 8, 2024
f499c42
Added clone functionality to environment:
nxtcoder19 Jan 8, 2024
6cc5522
Merge pull request #171 from kloudlite/feature/clone-environment
nxtcoder19 Jan 9, 2024
09c30e1
fix(apps/console): resource updates
nxtcoder17 Jan 8, 2024
ef69e91
feat(console): updates graphql queries
nxtcoder17 Jan 9, 2024
b38682e
Feature/account device (#173)
abdheshnayak Jan 10, 2024
bf09479
refactor(apps/console): Changed schema of VPN Device to ConsoleVPNDevice
karthik1729 Jan 10, 2024
fc38ff0
Refactor/console schema changes (#175)
karthik1729 Jan 10, 2024
7219508
Ci/added workflow dispatch (#176)
karthik1729 Jan 10, 2024
2d78858
Refactor/infra schema changes (#177)
karthik1729 Jan 10, 2024
b39b172
fix(console): resource sync updates
nxtcoder17 Jan 11, 2024
894b768
Added resource sync updates
nxtcoder17 Jan 10, 2024
dfa1aef
feat(apps/console): fixes checkName, and adds observability tracking id
nxtcoder17 Jan 11, 2024
0df04e6
feat(apps/tenant-agent): adds observability annotations while applyin…
nxtcoder17 Jan 10, 2024
effba68
added Observability tracking key for below infra resources:
nxtcoder17 Jan 11, 2024
b0a4176
fix(console): fixes clone environment graphql types
nxtcoder19 Jan 11, 2024
30c7675
fix(console): added graphql types for clone environment
nxtcoder19 Jan 11, 2024
e27c883
Merge pull request #179 from kloudlite/hotfix/clone-environment
nxtcoder19 Jan 11, 2024
5d7a9b4
fix(console): project cluster KV cache
nxtcoder17 Jan 11, 2024
418d1c1
fix(console): project cluster KV cache (#181)
nxtcoder17 Jan 11, 2024
c79ccf0
fix(console): updated project entity
nxtcoder19 Jan 11, 2024
272f144
Refactor/infra schema changes (#183)
abdheshnayak Jan 11, 2024
7b3c3d4
fix(message-office): error-on-apply dispatch updates
nxtcoder17 Jan 11, 2024
b4cc0cc
fix(apps/console): query implementation updates
nxtcoder17 Jan 11, 2024
2e8588b
fix(apps/console): Added cluster-name while fetching resource from re…
karthik1729 Jan 12, 2024
4309256
fix:(apps/accounts): Removed unused fields in account entity
karthik1729 Jan 12, 2024
39b78f6
fix(apps/account): Removed unused fields and code generated
karthik1729 Jan 12, 2024
c3d5b9d
fix(apps/console): Fixed resource mapping fetch with cluster-name
karthik1729 Jan 12, 2024
9af0171
feature(pkg/repos): Added `Patch functions` and Removed unused `Silen…
karthik1729 Jan 12, 2024
02a7891
check(apps/account): Updated way account repo is patching. Need to test
karthik1729 Jan 12, 2024
bdcaa49
fix(apps/account): Added contact email back to account
karthik1729 Jan 12, 2024
e2e3c51
fix(apps/accounts): Account update changed to patch
karthik1729 Jan 12, 2024
028e0ea
fix(apps/account-api): Changed Entities, generated schemas
karthik1729 Jan 12, 2024
a2097c4
fix(apps/accounts-api): IsActive field will not be updated during acc…
karthik1729 Jan 12, 2024
1c36f89
fix:(apps/accounts-api): list only accounts that are not marked for d…
karthik1729 Jan 12, 2024
faf522e
should not show markedForDeletion account in find
karthik1729 Jan 12, 2024
14e6445
fix(apps/accounts): Marked for deletion called on account delete
karthik1729 Jan 12, 2024
d137b8d
feat(apps/console): updates vpn devices implementation
nxtcoder17 Jan 12, 2024
203dcbd
feat(apps/iam): adds new role `GetVPNDeviceConnectConfig`, and this role
nxtcoder17 Jan 12, 2024
86389ae
fix(pkg/functions): fixes invalid nil check
nxtcoder17 Jan 12, 2024
ca9d235
fix(apps/infra): Updated Cloud Provider credentials flow
karthik1729 Jan 12, 2024
8237867
Create sweep.yaml
sweep-ai-deprecated[bot] Jan 12, 2024
c826df5
Create sweep template
sweep-ai-deprecated[bot] Jan 12, 2024
3ff57f3
feat(apps/console): resource metrics now available via console
nxtcoder17 Jan 12, 2024
b08bdb1
feat(apps/iam): adds new action `ReadLogs`, and `ReadMetrics`
nxtcoder17 Jan 12, 2024
17451d6
fix(apps/infra): Cluster Entity sync and testing
karthik1729 Jan 12, 2024
3336162
Fix/Nodepool-entity (#193)
karthik1729 Jan 12, 2024
cefcb04
fix(apps/infra): Tested Helmchart Entity flow (#195)
karthik1729 Jan 13, 2024
137e7a8
Fix/storage entities (#196)
karthik1729 Jan 13, 2024
1fd7cf0
fix(apps/infra): kubeconfig not downloading error fixed
karthik1729 Jan 13, 2024
b0e8de9
fix(apps/infra): updates ingress domain entry sync
nxtcoder17 Jan 13, 2024
bc1aa38
feat(apps/infra): dispatches events on domain entry on add/update/remove
nxtcoder17 Jan 13, 2024
a23d662
Fix(apps/infra): Updated VPN device flow, cluster managed service fix
karthik1729 Jan 13, 2024
1089781
pvc-sync updated
karthik1729 Jan 13, 2024
70b38f0
Helm release log correction
karthik1729 Jan 13, 2024
204ad46
Feature/websocket logs (#202)
abdheshnayak Jan 13, 2024
4a4d109
feat(apps/console): error-on-apply on delete action
nxtcoder17 Jan 13, 2024
3d2b5db
fix(apps/infra): infra now processes error-on-apply to delete stale
nxtcoder17 Jan 13, 2024
6db829e
fix(apps/infra): fixes ci build
nxtcoder17 Jan 13, 2024
1c3ce0c
Fix(apps/infra): Updated VPN device flow, cluster managed service fix…
karthik1729 Jan 13, 2024
b186cb3
:bug: Added cors management to environment vars (#205)
abdheshnayak Jan 13, 2024
579876c
Issues/cors websocket server (#206)
abdheshnayak Jan 13, 2024
123efb1
:bug: Fixed issue with session key, as not supported ':' for nats (#207)
abdheshnayak Jan 14, 2024
8e15315
:sparkles: Added tracking id to build run to trace logs. (#208)
abdheshnayak Jan 14, 2024
b1b32e4
:bug: Fixed issue with vpn device, in infra (#209)
abdheshnayak Jan 14, 2024
fddb52e
fix(apps/console): resource sync and patches
nxtcoder17 Jan 13, 2024
54c7683
feat(apps/tenant-agent): adds account-name and cluster-name
nxtcoder17 Jan 13, 2024
9f4b9e4
fix(apps/console): resource sync updates
nxtcoder17 Jan 14, 2024
066e692
fix(apps/console): inline typeMeta required fix
nxtcoder17 Jan 14, 2024
de019e4
chore(apps/console): better resource visibility in logs for
nxtcoder17 Jan 15, 2024
7949570
fix(apps/console): api fixes
nxtcoder17 Jan 15, 2024
be5fb7b
fix(apps/infra): fixes upsert vpn device implementation
nxtcoder17 Jan 15, 2024
7820f2e
feat(cmd/struct-to-graphql): adds ability to override `omitempty`
nxtcoder17 Jan 15, 2024
e3a1d5b
chore(http-cli): updates graphql calls
nxtcoder17 Jan 15, 2024
d1dd1ab
build: updates deps `kloudlite/operator`
nxtcoder17 Jan 15, 2024
9245fa5
feat(cmd/struct-json-path): generates constant strings `jsonpath` for…
nxtcoder17 Jan 13, 2024
35a61a0
test(cmd/struct-json-path): adds coverage task
nxtcoder17 Jan 13, 2024
c1efb27
feat(cmd/struct-json-path): adds support for ignoring nested fields
nxtcoder17 Jan 16, 2024
9922637
(Refactor) Separated console and infra device. (#213)
abdheshnayak Jan 16, 2024
c41974b
fix(cmd/struct-json-path): fixes traversal of pointer to struct type
nxtcoder17 Jan 16, 2024
6386b5a
fix(cmd/struct-json-path): adds generating common variables via cli
nxtcoder17 Jan 16, 2024
e94387d
wip
nxtcoder19 Jan 17, 2024
754b62e
refactoring is in progress
karthik1729 Jan 17, 2024
8de8b10
:bug: Implemented on error apply method for vpn device in console (#215)
abdheshnayak Jan 17, 2024
30fc9ff
refactor(console): refactor code for below resource:
nxtcoder19 Jan 17, 2024
4f25506
:bug: Fixed issuw with wireguard config update (#216)
abdheshnayak Jan 17, 2024
4a7e721
:bug: Fixed issue with device namespace (#218)
abdheshnayak Jan 18, 2024
4a64f9c
refactor(console): Added patch in place of update for below resource:
karthik1729 Jan 18, 2024
5f078b9
Added patch for below resource:
nxtcoder19 Jan 18, 2024
5e95492
refactoring(console: minor change in function naming
nxtcoder19 Jan 18, 2024
d3cf8c4
refactoring(console): minor changes in term of formatting code for be…
nxtcoder19 Jan 18, 2024
702d90f
:art: In device, fixed iam, deletion of device
abdheshnayak Jan 18, 2024
7839416
:art: In device, fixed iam, deletion of device
abdheshnayak Jan 18, 2024
7f48600
:art: Added device resource type for both console and infra
abdheshnayak Jan 18, 2024
32c3474
Fix/device iam issue (#219)
abdheshnayak Jan 18, 2024
a778fd3
Merge branch 'release-1.0.5' of github.com:kloudlite/api into release…
abdheshnayak Jan 18, 2024
2f561ee
refactor(console): Added patch in place of find and update of mongo m…
nxtcoder19 Jan 18, 2024
1535f98
Merge branch 'release-1.0.5' into refactor/update/db-query-key
nxtcoder19 Jan 18, 2024
0ba4df0
refactor(console): Added record version for patch util function for a…
nxtcoder19 Jan 18, 2024
68203f2
refactor(api): tested patch method for all resource of console services
nxtcoder19 Jan 19, 2024
975d981
Merge pull request #220 from kloudlite/refactor/update/db-query-key
nxtcoder17 Jan 19, 2024
c666158
refactor(api): Refactor below services with generated constants and p…
nxtcoder19 Jan 23, 2024
6cb0b55
Merge pull request #222 from kloudlite/refactor/infra-update-patch
nxtcoder17 Jan 23, 2024
a3f430e
fix(api): updated patch method of mongo db repo
nxtcoder19 Jan 23, 2024
46230ef
Merge pull request #223 from kloudlite/fix/mongo-patch-method
nxtcoder17 Jan 23, 2024
4b117ac
Merge branch 'release-1.0.5' of github.com:kloudlite/api into release…
abdheshnayak Jan 24, 2024
6ea5f5b
fix: updates vpn device apply
nxtcoder17 Jan 24, 2024
f20ef66
fix(repos/mongo): fixes patching recordVersion
nxtcoder17 Jan 24, 2024
4d0fe81
Merge pull request #228 from kloudlite/fix/db-resource-patch-and-vpn-…
nxtcoder17 Jan 24, 2024
eb86907
Merge branch 'release-1.0.5' of github.com:kloudlite/api into release…
abdheshnayak Jan 24, 2024
0905ab3
fix(api): removed role binding after successfull deletion of below re…
nxtcoder19 Jan 24, 2024
c55c109
fix(api): added error return statement
nxtcoder19 Jan 24, 2024
d8b180c
Merge pull request #229 from kloudlite/fix/resources/remove-role-bind…
nxtcoder17 Jan 24, 2024
5c1f6b3
Merge branch 'release-1.0.5' of github.com:kloudlite/api into release…
abdheshnayak Jan 24, 2024
be22f43
Update/device config (#230)
abdheshnayak Jan 24, 2024
fc07aef
chore: bumps go version to v1.21.5
nxtcoder17 Jan 24, 2024
c9aaa12
Merge pull request #231 from kloudlite/bump/go-version
nxtcoder17 Jan 24, 2024
f3666b1
fix(pkg/kv): adds method `ErrKeyNotFound` at repo, to check if error is
nxtcoder17 Jan 24, 2024
7a507cd
fix(apps/{console,iam}): removes RoleBinding on VPNDevice, and Enviro…
nxtcoder17 Jan 24, 2024
39882a8
Merge pull request #232 from kloudlite/fix/nats-key-not-found
nxtcoder17 Jan 24, 2024
66bdaa0
fix(apps/auth): disabled oauth2 providers, does not throw an error now
nxtcoder17 Jan 24, 2024
6b97aff
Merge pull request #233 from kloudlite/fix/disabled-oauth-providers
nxtcoder17 Jan 24, 2024
3260f85
fix(apps/infra): fixes helm release, missing status
nxtcoder17 Jan 25, 2024
cc2e56c
fix(apps/infra): fixes graphql update for nodepool, and infra VPN
nxtcoder17 Jan 25, 2024
3c62ac4
feat: adds api for restarting apps, and project managed services
nxtcoder17 Jan 25, 2024
445274c
docs(github issue template): updates assignees
nxtcoder17 Jan 25, 2024
092680d
chore: updates `kloudlite/operator` to latest release-1.0.5
nxtcoder17 Jan 25, 2024
a76c45d
Merge pull request #237 from kloudlite/feat/restart-apps-and-managed-…
nxtcoder17 Jan 25, 2024
674e6e6
Merge branch 'release-1.0.5' of github.com:kloudlite/api into release…
abdheshnayak Jan 26, 2024
891d7f4
Feature/cluster update console vpn dev (#239)
abdheshnayak Jan 26, 2024
d523cf8
refactor(apps/console): refactors environment cloning
nxtcoder17 Jan 27, 2024
aa5a79f
Merge pull request #240 from kloudlite/fix/environment-cloning
nxtcoder17 Jan 28, 2024
becd2dc
fix(console): updated target namespace to md5 hash namespace for belo…
nxtcoder19 Jan 29, 2024
6f62fc4
Merge pull request #241 from kloudlite/fix/update-resource-namespace
nxtcoder17 Jan 29, 2024
234925e
Merge branch 'release-1.0.5' of github.com:kloudlite/api into release…
abdheshnayak Jan 31, 2024
a77e401
:coffin: Removed device from infra
abdheshnayak Jan 31, 2024
1fa62c1
Merge pull request #243 from kloudlite/refactor/infra-device-clean
nxtcoder17 Feb 1, 2024
420f3e8
feat(apps/infra): charts/kloudlite-agent is now installed and managed by
nxtcoder17 Feb 1, 2024
3848ea9
refactor(apps/tenant-agent): cleanup, and some refactorings
nxtcoder17 Feb 1, 2024
3ddbd50
docs: Adds CHANGELOG and removes sweep AI from github repo
nxtcoder17 Feb 1, 2024
52cffbf
Merge pull request #244 from kloudlite/feat/agent-cluster-helm
nxtcoder17 Feb 1, 2024
096fa8f
ci: updates image building scripts
nxtcoder17 Feb 2, 2024
dbc088e
ci: ignores building images with commit-sha tag
nxtcoder17 Feb 2, 2024
07a039f
ci: enhanced build logs
nxtcoder17 Feb 2, 2024
18257ea
ci: fixes ci build app, as github runs it with `bash -e` command
nxtcoder17 Feb 2, 2024
44e2186
ci: github workflow bash errnoexit flag fixes
nxtcoder17 Feb 4, 2024
cb7c033
ci: updates build gateway api container image workflow
nxtcoder17 Feb 4, 2024
64a8254
docs: updates CHANGELOG
nxtcoder17 Feb 4, 2024
f10e2bb
ci: github workflow updated to parse image tags from branches, and tags
nxtcoder17 Feb 4, 2024
3dc4bd4
fix(apps/infra): fixes cluster kloudlite release version
nxtcoder17 Feb 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake .
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/0-feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: "✨ New Feature"
about: Suggest an idea
title: "✨ "
labels: enhancement
assignees: "karthik1729"
assignees: "nxtcoder17"
projects: Kloudlite

---
Expand Down
5 changes: 2 additions & 3 deletions .github/ISSUE_TEMPLATE/1-bug.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ name: "🐛 Bug Report"
about: Create a bug report to help us improve
title: "🐛 "
labels: bug
assignees: karthik1729
assignees: nxtcoder17
projects: kloudlite

---

### Describe the Bug
...

### To Reproduce
Steps to reproduce the behavior:
### How To Reproduce
1. ...
2. ...

Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/auth.yml

This file was deleted.

131 changes: 131 additions & 0 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
name: build-docker-images

on:
workflow_dispatch:

repository_dispatch:
types:
- webhook

push:
paths:
- "apps/**/**"
- "pkg/**"
- "grpc-interfaces/**"
- "common/**"
- "go.*"
- ".github/workflows/**"


permissions:
contents: read
packages: write

jobs:
docker-builds:
strategy:
matrix:
app:
- accounts
- auth
- comms
- console
- container-registry
- iam
- infra
- worker-audit-logging
- webhook
- websocket-server
- message-office
- tenant-agent
runs-on: ubuntu-latest
name: Deploy to Docker Image
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Setup Golang caches
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-golang-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-golang-

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.5

- name: Install Task
uses: arduino/setup-task@v1
with:
version: 3.x
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Install UPX
run: |
curl -L0 https://github.com/upx/upx/releases/download/v4.2.1/upx-4.2.1-amd64_linux.tar.xz > upx.tar.xz
tar -xf upx.tar.xz
sudo mv upx-4.2.1-amd64_linux/upx /usr/local/bin

- name: Build Binary
run: |
cd apps/${{matrix.app}}
task build Out=$PWD/../../.github/workflows/container-build/app

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create Image Tag from branch name
if: startsWith(github.ref, 'refs/heads/release')
run: |
set +e
IMAGE_TAG=$(echo ${GITHUB_REF#refs/heads/} | sed 's/release-//g')
echo "$IMAGE_TAG" | grep -i '\-nightly$'
if [ $? -ne 0 ]; then
IMAGE_TAG="$IMAGE_TAG-nightly"
fi
set -e

echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
echo "OVERRIDE_PUSHED_IMAGE=true" >> $GITHUB_ENV

- name: Create Image Tag from tag
if: startsWith(github.ref, 'refs/tags/')
run: |
IMAGE_TAG=$(echo ${GITHUB_REF#refs/tags/})

echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
echo "OVERRIDE_PUSHED_IMAGE=false" >> $GITHUB_ENV

- name: Build & Push Image
if: startsWith(github.ref, 'refs/heads/release') || startsWith(github.ref, 'refs/tags/')
run: |
set +e
image_name="ghcr.io/${{ github.repository }}/${{matrix.app}}"

docker manifest inspect $image_name:$IMAGE_TAG
exit_status=$?
if [ $exit_status -eq 0 ]; then
[ "$OVERRIDE_PUSHED_IMAGE" = "false" ] && echo "image ($image_name:$IMAGE_TAG) already exists, and override image is disable, exiting" && exit 0
echo "image exists, but override pushed image is set to true. proceeding with building image"
fi

set -e

cd .github/workflows/container-build
task go-container-build Image="$image_name:$IMAGE_TAG"
# task go-container-build Image="$image_name:commit-${GITHUB_SHA}"
7 changes: 7 additions & 0 deletions .github/workflows/container-build/Containerfile.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#syntax=docker/dockerfile:1
FROM gcr.io/distroless/static-debian11:nonroot
LABEL org.opencontainers.image.source https://github.com/kloudlite/api
WORKDIR /app
COPY --chown=1001 ./app ./app
CMD ["./app"]
ENTRYPOINT ["./app"]
11 changes: 11 additions & 0 deletions .github/workflows/container-build/Taskfile.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 3

tasks:
go-container-build:
preconditions:
- sh: '[[ -n "{{.Image}}" ]]'
msg: 'var Image must have a value'
silent: true
cmds:
- |
docker buildx build -f ./Containerfile.local -t {{.Image}} . --push
57 changes: 0 additions & 57 deletions .github/workflows/finance.yml

This file was deleted.

75 changes: 75 additions & 0 deletions .github/workflows/gateway-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: build-gateway-image

on:
repository_dispatch:
types:
- webhook
push:
paths:
- "apps/gateway/**"
- ".github/workflows/**"

permissions:
contents: read
packages: write

jobs:
container-build:
runs-on: ubuntu-latest
name: Deploy to Docker Image
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Log in to the Container registry
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Create Image Tag from branch name
if: startsWith(github.ref, 'refs/heads/release')
run: |
set +e
IMAGE_TAG=$(echo ${GITHUB_REF#refs/heads/} | sed 's/release-//g')
echo "$IMAGE_TAG" | grep -i '\-nightly$'
if [ $? -ne 0 ]; then
IMAGE_TAG="$IMAGE_TAG-nightly"
fi
set -e

echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
echo "OVERRIDE_PUSHED_IMAGE=true" >> $GITHUB_ENV

- name: Create Image Tag from tag
if: startsWith(github.ref, 'refs/tags/')
run: |
IMAGE_TAG=$(echo ${GITHUB_REF#refs/tags/})

echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
echo "OVERRIDE_PUSHED_IMAGE=false" >> $GITHUB_ENV

- name: Build & Push Image
if: startsWith(github.ref, 'refs/heads/release') || startsWith(github.ref, 'refs/tags/')
run: |
set +e

image_name=ghcr.io/${{ github.repository }}/gateway

docker manifest inspect $image_name:$IMAGE_TAG
exit_status=$?
if [ $exit_status -eq 0 ]; then
[ "$OVERRIDE_PUSHED_IMAGE" = "false" ] && echo "image ($image_name:$IMAGE_TAG) already exists, and override image is disable, exiting" && exit 0
echo "image exists, but override pushed image is set to true. proceeding with building image"
fi
set -e

cd apps/gateway
docker buildx build -t "$image_name:$IMAGE_TAG" . --push
Loading