Commit Graph

149 Commits

Author SHA1 Message Date
Vikyath Harekal
10a3e8bbc0 feat: [CDE-679]: Pass infra config metadata to infra provider methods (#3550)
* feat: [CDE-679]: return err
* feat: [CDE-679]: fix provider
* feat: [CDE-679]: merge
* feat: [CDE-679]: Pass infra config metadata to infra provider methods
* feat: [CDE-679]: Pass infra config metadata to infra provider methods
* feat: [CDE-661]: set starting state by default in resume
* Merge branch 'main' into hybrid
* feat: [CDE-661]: fix host and port (#3511)

* feat: [CDE-661]: fix host and port
* feat: [CDE-661]: fix host and port
* feat: [CDE-661]: send remove request for hybrid (#3500)

* feat: [CDE-661]: add debug logs
* feat: [CDE-661]: send remove request for hybrid
* feat: [CDE-661]: Fetch gateway host from infra config (#3494)

* feat: [CDE-661]: fix wiring
* feat: [CDE-661]: Fetch gateway host from infra config
* Merge branch 'main' into hybrid
* feat: [CDE-636]: Fixing infra provider config update logic.
* feat: [CDE-636]: Adding config metadata to infra provider methods parameters.
* feat: [CDE-636]: Adding config metadata to infra provider methods parameters.
* feat
2025-03-13 10:40:05 +00:00
Arvind Choudhary
f660d8b0cd feat: [AH-994]: Updated Client setup details. Update pypi to python (#3547)
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into AH-994-client-setup-details-update
* [AH-994]: Merge conflict fixed
* [AH-994]: Merge conflict fixed
* [AH-994]: Updated makefile
* [AH-994]: Merge conflict fixed
* [AH-994]: Updated Client setup details. Update pypi to python
2025-03-13 04:45:55 +00:00
Vikyath Harekal
ff18742bdd feat: [CDE-681]: Find infra from DB and status from GCP (#3538) (#3540)
* feat: [CDE-681]: Find infra from DB and status from GCP (#3538)

* Merge branch 'hybrid' into CDE-681
* feat: [CDE-681]: fix lint
* feat: [CDE-681]: fix lint
* feat: [CDE-681]: merge
* feat: [CDE-681]: fix wiring
* feat: [CDE-681]: handle delete and fallback for it
* feat: [CDE-681]: handle delete and fallback for it
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: Find infra from DB and status from GCP
* feat: [CDE-681]: merge
* feat: [CDE-661]: set starting state by default in resume
* Merge branch 'main' into hybrid
* feat: [CDE-661]: fix host and port (#3511)

* feat: [CDE-661]: fix host and port
* feat: [CDE-661]: fix host and port
* feat: [CDE-661]: send remove request for hybrid (#3500)

* feat: [CDE-661]: add debug logs
* feat: [CDE-661]: send remove request for hybrid
* feat:
2025-03-12 10:43:31 +00:00
Dhruv Dhruv
26cda57360 feat: [CDE-636]: Adding config metadata to infra provider methods parameters. (#3487)
* feat: [CDE-636]: Fixing infra provider config update logic.
* feat: [CDE-636]: Adding config metadata to infra provider methods parameters.
* feat: [CDE-636]: Adding config metadata to infra provider methods parameters.
2025-02-27 14:35:48 +00:00
Dhruv Dhruv
5965b1dd87 fix: [CDE-598]: Adding assertion during build with features that the image exists. (#3314)
* fix: [CDE-598]: Adding assertion during build with features that the image exists. Also logging the generated dockerfile in the user facing logs.
2025-01-24 08:04:37 +00:00
Deepak Bhatt
c54b82706e feat: [CDE-577]: fix jetbrains ide issues (#3281)
* feat: [CDE-577]: fix jetbrains ide issues
2025-01-16 07:23:26 +00:00
Dhruv Dhruv
b94a78c795 feat: [CDE-572]: Using features for devcontainers. (#3260)
* feat: [CDE-572]: Using features for devcontainers. Adding changes to parse features from the devcontainer.json and build a new docker image from them. Also adding the support for new devcontainer.json properties- init, privileged, capAdd, securityOpt, mounts. Adding support for three runArgs- privileged, capAdd, mount. Also making the DownloadFeature method context aware, cancelling the goroutines when the ctx is cancelled.
2025-01-15 07:22:55 +00:00
Dhruv Dhruv
b1d0c945d1 feat: [CDE-572]: Adding support for features- sorting and building. (#3248)
* Addressing review comments.
* feat: [CDE-572]: Adding support for features- sorting and building.
2025-01-14 08:21:44 +00:00
Dhruv Dhruv
4d888b0719 feat: [CDE-572]: Adding changes to support features. (#3244)
* Changes to support sorting and building.
* Updating go.mod
* feat: [CDE-572]: Adding changes to support features. Changes to support the features property in the devcontainer.json, download features from OCI repos and http(s) URLs as tarballs and parse them to devcontainer-feature.json, resolve them and apply user options. Also added a change to use an OS library to remove comments from the json files.
* feat: [CDE-572]: Adding changes to support features. Changes to support the features property in the devcontainer.json, download features from OCI repos and http(s) URLs as tarballs and parse them to devcontainer-feature.json, resolve them and apply user options. Also added a change to use an OS library to remove comments from the json files.
2025-01-13 11:44:24 +00:00
Deepak Bhatt
816feec222 feat: [CDE-576]: add port for JetBrains IDEs (#3243)
* feat: [CDE-576]: fix func name
* feat: [CDE-576]: fix lint
* feat: [CDE-576]: add port for JetBrains IDEs
2025-01-10 03:22:32 +00:00
Deepak Bhatt
19363d2b1a feat: [CDE-576]: add devcontainer config for Jetbrains (#3215)
* feat: [CDE-576]: fix hardcoding
* feat: [CDE-576]: fix lint
* feat: [CDE-576]: lint
* feat: [CDE-576]: make IDE path configurable
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-576-devcontainer-json-intellij
* feat: [CDE-576]: fix script name
* feat: [CDE-576]: configure Jetbrains IDEs
* feat: [CDE-576]: change to intellij ide type
* feat: [CDE-576]: fix comments
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-576-devcontainer-json-intellij
* feat: [CDE-576]: add devcontainer config for Jetbrains
* feat: [CDE-552]: fix lint
* feat: [CDE-552]: wait for the ide to run
* feat: [CDE-552}: fix lint
* feat: [CDE-552}: address comments
* feat: [CDE-552}: add support for arm and amd architecture
* feat: [CDE-552}: fix lint
* feat: [CDE-552}: fix build
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-563-intellij-support
* feat: [CDE-552}: fix installation for intellij
* feat: [CDE-552}: fix installation for intellij
* feat: [CDE-552}: add install tools, setup and run scripts for intellij
* add intellij support

# Conflicts:
#	app/gitspace/infrastructure/trigger_infra_event.go
#	app/gitspace/orchestrator/utils/script_templates/setup_intellij.sh
2025-01-07 13:10:54 +00:00
Deepak Bhatt
9989a5a589 feat: [CDE-576]: intellij code improvements (#3237)
* feat: [CDE-576]: fix lint
* feat: [CDE-576]: intellij code improvements
2025-01-07 05:29:46 +00:00
Deepak Bhatt
a094a54ac7 feat: [CDE-576]: fix intellij support (#3222)
* feat: [CDE-576]: fix debian warning
* feat: [CDE-576]: fix intellij support
2025-01-03 05:31:22 +00:00
Deepak Bhatt
887379b94a feat: [CDE-563]: add intellij support (#3193)
* feat: [CDE-552]: fix lint
* feat: [CDE-552]: wait for the ide to run
* feat: [CDE-552}: fix lint
* feat: [CDE-552}: address comments
* feat: [CDE-552}: add support for arm and amd architecture
* feat: [CDE-552}: fix lint
* feat: [CDE-552}: fix build
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into CDE-563-intellij-support
* feat: [CDE-552}: fix installation for intellij
* feat: [CDE-552}: fix installation for intellij
* feat: [CDE-552}: add install tools, setup and run scripts for intellij
* add intellij support

# Conflicts:
#	app/gitspace/infrastructure/trigger_infra_event.go
#	app/gitspace/orchestrator/utils/script_templates/setup_intellij.sh
2024-12-30 15:19:48 +00:00
Ansuman Satapathy
de86d126a5 feat: [CDE-573]: refactor to reduce number of utils. (#3208)
* feat: [CDE-573]: refactor to reduce number of utils.
* feat: [CDE-573]: refactor to reduce number of utils.
2024-12-30 04:59:16 +00:00
Ansuman Satapathy
c54e09908b feat: [CDE-573]: refactor to reduce utils (#3204)
* feat: [CDE-573]: refactor to reduce number of utils.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
2024-12-26 10:50:27 +00:00
Ansuman Satapathy
cafa55b2e5 feat: [CDE-573]: refactor to reduce number of abstractions and modules. (#3203)
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
2024-12-26 08:58:41 +00:00
Ansuman Satapathy
d89825d317 feat: [CDE-573]: refactor to reduce number of abstractions and modules. (#3199)
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
* feat: [CDE-573]: refactor to reduce number of abstractions and modules.
2024-12-26 05:11:54 +00:00
Marko Gaćeša
2b959817d5 feat: [CODE-2862]: put space fetch behind a cache (#3201)
* replaced type of the inner cache to SpaceCache
* put space fetch behind a cache
2024-12-25 11:37:40 +00:00
Deepak Bhatt
4f739d5127 feat: [CDE-563]: add support for intellij IDE (#3165)
* feat: [CDE-552}: add ide url scheme consts
* feat: [CDE-552}: define shell interpreter for script
* feat: [CDE-552}: add intellij port
* feat: [CDE-552}: fix lint
* feat: [CDE-552}: add intellij integration
* feat: [CDE-552}: add intellij type
2024-12-20 04:52:13 +00:00
Vikyath Harekal
800947f7f1 feat: [CDE-511]: Add hybrid_vm to InfraProviderType enum values (#3174)
* feat: [CDE-511]: Add hybrid_vm to InfraProviderType enum values
* feat: [CDE-511]: Add hybrid_vm to InfraProviderType enum values
2024-12-19 05:02:06 +00:00
Ansuman Satapathy
a1c91d1aa6 fix: [CDE-555]: run lifecycle commands in paralell and allow object types for it (#3161)
* fix: [CDE-555]: run commands in parallel
* fix: [CDE-555]: run commands in parallel
* fix: [CDE-555]: run commands in parallel
* fix: [CDE-555]: run commands in parallel
* fix: [CDE-555]: run commands in parallel
* fix: [CDE-555]: run commands in paralell
* fix: [CDE-555]: run commands in paralell
* fix: [CDE-555]: update parsing and add discriminator
* fix: [CDE-555]: update parsing and add discriminator
2024-12-16 06:28:45 +00:00
Ansuman Satapathy
1e18e289d8 fix: [CDE-555]: fix correctly iterate over list of extensions for gitspace. (#3153)
* fix: [CDE-555]: fix correctly iterate over list of extensions for gitspace.
2024-12-12 05:57:18 +00:00
Vikyath Harekal
e18f16e688 feat: [CDE-553]: concat skopeo stdout and stderr output (#3149)
* feat: [CDE-553]: concat output
2024-12-11 12:32:34 +00:00
Vikyath Harekal
2f83725e12 feat: [CDE-549]: print buffer logs before exiting (#3145)
* feat: [CDE-549]: print buffer logs before exiting
* feat: [CDE-549]: print buffer logs before exiting
2024-12-10 15:21:09 +00:00
Vikyath Harekal
aabc2cd60d feat: [CDE-549]: fix image name and tag split (#3144)
* feat: [CDE-549]: fix image name and tag split
* feat: [CDE-549]: fix image name and tag split
2024-12-10 12:51:23 +00:00
Vikyath Harekal
93c1462fec feat: [CDE-549]: Handle no tag (#3140)
* feat: [CDE-549]: use --src-tls-verify
* feat: [CDE-549]: Handle no tag
2024-12-10 09:46:48 +00:00
Vikyath Harekal
65a9253a9b feat: [CDE-549]: Fix --tls-verify=false (#3139)
* feat: [CDE-549]: Fix --tls-verify=false
2024-12-10 08:48:44 +00:00
Vikyath Harekal
5ec36a8b74 feat: [CDE-549]: skopeo command fix and response handling (#3138)
* feat: [CDE-549]: debug
2024-12-10 06:32:08 +00:00
Vikyath Harekal
5ccbbd76a6 feat: [CDE-549]: debug (#3137)
* feat: [CDE-549]: debug
2024-12-10 05:03:27 +00:00
Vikyath Harekal
df3342aefe feat: [CDE-549]: Copy image using skopeo (#3127)
* feat: [CDE-549]: fix
* feat: [CDE-549]: fix lint
* feat: [CDE-549]: fix
* feat: [CDE-549]: fix
* feat: [CDE-549]: update command
* feat: [CDE-549]: Copy image using skopeo
2024-12-09 13:16:13 +00:00
Dhruv Dhruv
ccf7673ee5 fix: [CDE-473]: Checking default containerUser from the image. (#3105)
* fix: [CDE-473]: Checking default containerUser from the image.
2024-12-04 07:24:22 +00:00
Ansuman Satapathy
26408533e1 feat: [CDE-472]: handle stream closing gracefully, and simplify sync cmd execution (#3102)
* feat: [CDE-472]: handle stream closing gracefully, and simplify sync cmd execution
* feat: [CDE-472]: handle stream closing gracefully, and simplify sync cmd execution
2024-12-03 13:06:59 +00:00
Dhruv Dhruv
6f7e203251 fix: [CDE-540]: Adding check for media folder path during gitspace creation. (#3100)
* fix: [CDE-540]: Adding check for media folder path during gitspace creation.
2024-12-03 08:59:31 +00:00
Ansuman Satapathy
74ff87178f feat: [CDE-472]: add status code to the channel for gitspace exec (#3096)
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
* feat: [CDE-472]: add status code to the channel
2024-12-03 04:49:05 +00:00
Ansuman Satapathy
04b4dab207 feat: [CDE-472]: make IDE service args typed (#3092)
* feat: [CDE-472]: reduce verbosity of internal installation steps
* feat: [CDE-472]: reduce verbosity of internal installation steps
* feat: [CDE-472]: make IDE service args typed
2024-12-02 12:04:47 +00:00
Dhruv Dhruv
a64d5631f4 feat: [CDE-473]: Unlocking and removing remoteUser password in case of SSH key. (#3090)
* feat: [CDE-473]: Unlocking and removing remoteUser password in case of SSH key.
2024-12-02 08:16:42 +00:00
Ansuman Satapathy
c65f994af9 feat: [CDE-522]: send total gitspaces without applying user filters in header (#3089)
* feat: [CDE-522]: formatting
* feat: [CDE-522]: formatting
* feat: [CDE-522]: send total gitspaces without applying user filters in header
* feat: [CDE-522]: send total gitspaces without applying filter in header
2024-12-02 07:03:22 +00:00
Ansuman Satapathy
08d9d959cc feat: [CDE-472]: install extensions only during setup, vscode impl for it. (#3088)
* feat: [CDE-522]: formatting
* feat: [CDE-472]: install extensions only during setup, vscode impl for it.
* feat: [CDE-472]: install extensions only during setup, vscode impl for it.
* feat: [CDE-472]: install extensions only during setup, vscode impl for it.
* feat: [CDE-472]: install extensions only during setup, vscode impl for it.
2024-12-02 06:49:31 +00:00
Ansuman Satapathy
293aa5ff29 feat: [CDE-472]: add search gitspace, user dir fixed for life-cycle command (#3087)
* feat: [CDE-472]: add search gitspace, user dir fixed for life-cycle command
2024-12-01 06:50:59 +00:00
Dhruv Dhruv
1086397b3f feat: [CDE-473]: Adding support for containerUser and remoteUser. (#3086)
* Adding support for root as remoteUser
* Changing logger from gitspace to application in config util.
* Changing logger from gitspace to application in config util.
* feat: [CDE-473]: Adding support for containerUser and remoteUser.
2024-12-01 05:03:48 +00:00
Ansuman Satapathy
7daa9666cc feat: [CDE-472]: customizations refactor code (#3078)
* feat: [CDE-472]: customizations refactor code
2024-11-29 08:29:38 +00:00
Deepak Bhatt
b4baf364a9 fix: [CDE-508]: use image auth map (#3058)
* use image auth map
2024-11-28 07:39:06 +00:00
Ansuman Satapathy
843dc4df5f feat: [CDE-525]: Add support for customization IDE extensions from devcontainer.json (#3057)
* feat: [CDE-525]: lint fixes
* feat: [CDE-525]: lint fixes
* feat: [CDE-525]: setup vscode web plugins
* feat: [CDE-525]: remove unused fields during serde from devcontainer.json
* feat: [CDE-525]: remove unused fields during serde from devcontainer.json
2024-11-27 13:14:44 +00:00
Deepak Bhatt
3b2db60eea feat: [CDE-508]: add image auth (#3053)
* add comment
* split pull image func into smaller parts
* split pull image func into smaller parts
* use MaskSecret type
* fix lint
* add image auth
* Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into add-image-auth
* add image auth
2024-11-27 10:24:33 +00:00
Deepak Bhatt
7765cf0d2f fix: [CDE-530]: use value for MaskSecret type (#3054)
* fix lint
* add non nil Mask secret
* add comment
* add non nil Mask secret
2024-11-27 06:53:13 +00:00
Deepak Bhatt
deddbc8d68 feat: [CDE-530]:add mask secret (#3047)
* truncated sha256
* add hash value for MaskSecret
* mark secrets for smc creds
* fix nil reference
* fix lint
* fix unmarshall
* implement unmarshall json func
* add mask secret
2024-11-26 09:32:00 +00:00
Dhruv Dhruv
7c358528ef feat: [CDE-475]: Adding support for runArgs. (#3031)
* Rebasing
* feat: [CDE-475]: Adding support for runArgs.
* WIP
* WIP
2024-11-25 09:56:30 +00:00
Deepak Bhatt
1299db775e fix:[CDE-507]: extract user from connector struct (#3040)
* change arg name
* fix user extract
2024-11-25 08:40:18 +00:00
Ansuman Satapathy
35039b9499 feat: [CDE-525]: stream pull image o/p cde, timeline events connector (#3037)
* feat: [CDE-525]: move event before network call
* feat: [CDE-525]: allow setting runArgs to IDE to allow proxy.
* feat: [CDE-525]: allow setting runArgs to IDE to allow proxy.
* feat: [CDE-525]: allow setting runArgs to IDE to allow proxy.
* feat: [CDE-525]: allow setting runArgs to IDE to allow proxy.
* feat: [CDE-525]: allow setting runArgs to IDE to allow proxy.
* feat: [CDE-525]: allow setting runArgs to IDE to allow proxy.
* feat: [CDE-525]: allow setting runArgs to IDE to allow proxy.
* feat: [CDE-525]: allow setting runArgs to IDE to allow proxy.
* feat: [CDE-525]: allow setting runArgs to IDE to allow proxy.
* feat: [CDE-525]: allow setting runArgs to IDE to allow proxy.
* feat: [CDE-470]: execute commands with harness user
* feat: [CDE-525]: stream pull image o/p cde, timeline events connector
* feat: [CDE-525]: stream pull image o/p cde, timeline events connector
* feat: [CDE-525]: stream pull image o/p cde, timeline events connector
2024-11-25 04:43:26 +00:00