Commit Graph

22 Commits (release/3.1.0)

Author SHA1 Message Date
Ansuman Satapathy a515a57299 feat: [CDE-545]: check during provision retry for latest instance (#3114)
* feat: [CDE-545]: check during provision retry for latest instance
* feat: [CDE-545]: check during provision retry for latest instance
2024-12-05 05:25:02 +00:00
Dhruv Dhruv 6dbe85fbfd fix: [CDE-413]: Setting branch URL in all gitspace API response (#2881)
* 

fix: [CDE-413]: Adding spacePath to method.
* 

fix: [CDE-413]: Adding method to get branch url in the scm interface and using it to set the branch url in the gitspace config api responses. Removing the SCM interface as it has only 1 impl. Minor refactoring.
* 

fix: [CDE-413]: Adding method to get branch url in the scm interface and using it to set the branch url in the gitspace config api responses. Removing the SCM interface as it has only 1 impl. Minor refactoring.
2024-10-29 04:46:03 +00:00
Deepak Bhatt 6983438ec2 feat: [CDE-391]:add infrastruce and orchestrator funcs (#2841)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* change name
* increase scope of delete
* change func name
* modify delete api
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* add delete and handler condition
* address comment
* handle cleanup event
* update enum mapping
* find destroyed infra as well
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* modify find signature
* Merge branch 'add-force-delete-job-funcs' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* 



address feedback 2
* 



address feedback
* 



Apply suggestion from code review
* 



Apply suggestion from code review
* 



remove std out
* 



add infrastruce and orchestrator funcs
* 



add and modify infra provider methods

Add cleanupInstanceResources method
Modify Deprovision method and make it idempotent
* address feedback 2
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* Merge branch 'add-force-delete-job-funcs' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* address feedback
* Apply suggestion from code review
* Apply suggestion from code review
* remove std out
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-force-delete-job-funcs
* add infrastruce and orchestrator funcs
* add and modify infra provider methods

Add cleanupInstanceResources method
Modify Deprovision method and make it idempotent
2024-10-28 05:30:14 +00:00
Patrick Wolf d789e5775e feat: [CODE-2402] : Update all occurences of 'gitness' to 'harness' within comments and markdown. Updated the logo reference (did not delete the Gitness logo directory yet). No active code changes except display strings. (#2684)
* Apply suggestion from code review
* updating images for signin and register page.
* fix: lint
* fix: logo update
* revert golangci
* Adding more strings and updated the logo. Still need to update the signin page images
* Apply suggestion from code review

Updating harness logo to use Open Source logo
* Update all occurences of 'gitness' to 'harness' within comments and markdown. Updated the logo reference (did not delete the Gitness logo directory yet).  No active code changes except display strings.
2024-09-25 00:13:28 +00:00
Dhruv Dhruv 0f8eb568e2 feat: [CDE-241]: Adding protocol to the gitspace port returned by the IDE and corresponding changes. Fixing gitspace instance's reference instead of value in the orchestrator. (#2521)
* feat: [CDE-241]: Addressing review comment.
* feat: [CDE-241]: Addressing review comment.
* feat: [CDE-241]: Adding protocol to the gitspace port returned by the IDE and corresponding changes. Fixing gitspace instance's reference instead of value in the orchestrator.
2024-08-16 08:31:05 +00:00
Ansuman Satapathy 2f3b6a6f85 feat: [CDE-177]: Update listing page for CDE (#2506)
* feat: [CDE-207]: Fixed typecheck (#2513)

* feat: [CDE-207]: remove currentUserInfo app prop
* Merge branch 'CDE-207-FixTypeCheck' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-207-FixTypeCheck
* feat: [CDE-207]: remove currentUserInfo app prop
* feat: [CDE-207]: Fixed typecheck
* feat: [CDE-207]: Fixed typecheck
* feat: [CDE-207]: Fixed typecheck
* feat: [CDE-207]: Fixed typecheck
* fix lint errors (#2520)

* add copyright header
* add copyright header
* fix lint errors
* feat: [CDE-192]: mark stuck actions as error
* feat: [CDE-192]: mark stuck actions as error
* feat: [CDE-192]: mark stuck actions as error
* feat: [CDE-192]: fix gitspace instance store
* Merge remote-tracking branch 'origin/main' into CDE-New
* add secret resolver in gitness (#2493)

* rename identifier to space identifier
* update factory method
* remove access_key from gitspace table
* add access key and type to devcontainer exec
* add migration for gitspace access key ref
* fix error message for resolver factory
* update resolver interface
* add secret resolver in gitness
* feat: [CDE-192]: correctly update date and sync update
* Merge remote-tracking branch 'origin/main' into CDE-New

# Conflicts:
#	app/api/controller/gitspace/action.go
#	app/api/controller/gitspace/delete.go
* feat: [CDE-192]: correctly update dates for updated
* feat: [CDE-192]: handle empty inputparams
* feat: [CDE-192]: handle empty inputparams
* Merge remote-tracking branch 'origin/main' into CDE-New
* Merge remote-tracking branch 'origin/main' into CDE-New
* feat: [CDE-207]: Use SCM api hook (#2499)

* feat: [CDE-207]: Updated Strings
* feat: [CDE-207]: Use SCM api hook
* feat: fixed string issue (#2476)

* feat: [CDE-211]: fixed lint issues
* feat: [CDE-211]: fixed lint issues
* feat: fixed string issue
* feat: fixed string issue (#2474)

* feat: fixed string issue
* add ssh identifier in map functions in gitness store
* add ssh fields in types
* feat: fixed GitspaceCodeRepoType in create payload
* feat: updated common hooks
* feat: update for listing
* feat: update for listing
* feat: removed cde folder
* feat: [CDE-177]: Update listing page for CDE
2024-08-16 06:46:02 +00:00
Vistaar Juneja e1ef7e9609 feat: [CI-13861]: support gitness provided variables for docker configuration (#2517)
* fix lint
* feat: [CDE-192]: implement overrides and honor env variables for CDE docker client
* remove default value of host from config and Dockerfile
* feat: [CI-13861]: support gitness provided variables for docker configuration
2024-08-15 12:15:31 +00:00
Dhruv Dhruv dcf2068873 feat: [CDE-192]: Updating instance state synchronously when calling orchestrator's trigger flows. (#2505)
* feat: [CDE-192]: Updating instance state synchronously when calling orchestrator's trigger flows.
2024-08-14 11:57:19 +00:00
Ansuman Satapathy 99d8d2d6a3 feat: [CDE-192]: make hosts and ports in gitspace infrastructure more verbose (#2496)
* feat: [CDE-192]: make hosts and ports in gitspace infrastructure more verbose
2024-08-13 11:42:01 +00:00
Ansuman Satapathy 3d4cbb95ec feat: [CDE-192]: added a new factory method for infraproviders. (#2431)
* feat: [CDE-192]: added a new factory method for infraproviders.
* feat: [CDE-192]: added a new factory method for infraproviders.
2024-08-08 12:39:09 +00:00
Dhruv Dhruv 52bfdfb3f8 feat: [CDE-220]: Adding gitspace instance identifier to infra provisioning. Adding checks to ensure infra status is always same as required. Adding infra status type error enum. Adding util method to derive gitspace container name. Cleaning parameters to use values instead of references. Refactoring fields for infra struct to make them more explicit. Adding config to read agent port and pass it on to infra provider for provisioning and finding. (#2411)
* feat: [CDE:220]: Adding util method to get working dir from repo name.
* feat: [CDE:220]: Addressing review comments.
* feat: [CDE-220]: Adding gitspace instance identifier to infra provisioning. Adding checks to ensure infra status is always same as required. Adding infra status type error enum. Adding util method to derive gitspace container name. Cleaning parameters to use values instead of references. Refactoring fields for infra struct to make them more explicit. Adding config to read agent port and pass it on to infra provider for provisioning and finding.
2024-08-07 02:29:10 +00:00
Dhruv Dhruv 9d5071b45c feat: [CDE-203]: Making infra processing async. (#2325)
* Cleaning the flow around gitspace instance update.
* Renaming params and param schema types.
* Correcting comments.
* feat: [CDE-203]: Making infra processing async.
* feat: [CDE-203]: Making infra processing async.
* feat: [CDE-203]: Making infra processing async.
2024-08-01 10:01:31 +00:00
Vistaar Juneja 722caeddf8 fix: [CI-13599]: use latest version of docker (#2288)
* fix merge conflicts
* fix pr checks
* fix go mod tidy
* fix: [CI-13599]: use latest version of docker
2024-07-26 13:04:45 +00:00
Dhruv Dhruv 9232029c74 WIP (#2284)
* feat: [CDE-194]: Reverting docker port range changes.
* feat: [CDE-194]: Removing extra types.
* feat: [CDE-194]: Restructuring code around port publishing and forwarding.
* WIP
* WIP
* WIP
* WIP
2024-07-26 06:26:22 +00:00
Ansuman Satapathy 767bb717d9 feat: [CDE-142]: provider interface pass pointers. (#2232)
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
* feat: [CDE-142]: provider interface pass pointers.
2024-07-16 13:06:08 +00:00
Dhruv Dhruv 6e516183fd feat: [CDE-163]: Moving dir creation and deletion to infra provider. Refactoring gitspace env variables. Renaming unprovisioning to deprovisioning. (#2231)
* feat: [CDE-163]: Moving dir creation and deletion to infra provider. Refactoring gitspace env variables. Renaming unprovisioning to deprovisioning.
2024-07-16 07:59:02 +00:00
Dhruv Dhruv b9d3bb4d2b feat: [CDE-140]: Adding docker machine host name config to identify the public host name on which the docker host is running. Updated the docker config to read from the default docker env variables if config values are not set. Updated the events timestamp to use nanoseconds. Fixed the working directory response and cleaned the logic of how the gitspace instance url is generated. Updated the scm service to parse repo name in a provider agnostic manner. (#2201)
* feat: [CDE-140]: Fixing ProvideGitspaceContainerOrchestratorConfig.
* feat: [CDE-140]: Fixing ProvideGitspaceContainerOrchestratorConfig.
* feat: [CDE-140]: Addressing review comments.
* feat: [CDE-140]: Reverting changes done for docker config default values. Adding default value of GITNESS_GITSPACE_DEFAULT_BIND_MOUNT_SOURCE_BASE_PATH and GITNESS_DOCKER_HOST to Dockerfile. Adding new column in gitspace_events table for storing event timestamp in nanoseconds and corresponding migrations.
* Lingting.
* feat: [CDE-140]: Adding docker machine host name config to identify the public host name on which the docker host is running. Updated the docker config to read from the default docker env variables if config values are not set. Updated the events timestamp to use nanoseconds. Fixed the working directory response and cleaned the logic of how the gitspace instance url is generated. Updated the scm service to parse repo name in a provider agnostic manner.
2024-07-13 04:35:20 +00:00
Dhruv Dhruv 3acded8ed8 feat: [CDE-92]: Container orchestrator and IDE service
* feat: [CDE-92]: Removing Client method from infraprovider interface and using DockerClientFactory to generate docker clients. Using go templates to substitute values in gitspace scripts. Setting a default base path for gitspaces if not provided.
* Rebasing
* feat: [CDE-92]: Addressing review comments.
* Rebasing
* Rebasing
* feat: [CDE-92]: Addressing review comments
* Rebasing
* feat: [CDE-92]: Using port from config for code-server installation
* feat: [CDE-92]: Initial commit
* Rebasing
2024-07-05 05:28:31 +00:00
Ansuman Satapathy 4833ed67a5 feat: [CDE-83]: Added base types for gitspaces (#2170)
* feat: [CDE-83]: Added base types for gitspaces
2024-07-04 09:25:45 +00:00
Dhruv Dhruv 06a514976f feat: [CDE-115]: Adding infra provider factory (#2138) 2024-06-28 14:22:58 +00:00
Dhruv Dhruv f53480a8ad feat: [CDE-85]: Adding impl for docker provider (#2131) 2024-06-28 06:47:45 +00:00
Dhruv Dhruv 62e5ae34b4 feat: [CDE-85]: Creating new pkg for infra providers. Adding interface and types. (#2128) 2024-06-25 05:44:45 +00:00