* Add push-only support to Kaniko-GAR
* Refactor GAR authentication and crane push to use Application Default Credentials
* Add robust GAR authentication with Docker config and crane options
* GAR authentication setup and remove redundant logging statements
* feat:[CI-15236]: Added PLUGIN_TAR_PATH as output variable for the plugin.
* feat:[CI-15236]: Added PLUGIN_TAR_PATH as output variable for the plugin.
* feat:[CI-15236]: Added PLUGIN_TAR_PATH as output variable for the plugin.
* feat:[CI-15236]: Added PLUGIN_TAR_PATH as output variable for the plugin.
* feat:[CI-15236]: Test commit.
* feat:[CI-15236]: Test commit.
* feat:[CI-15236]: Added PLUGIN_TAR_PATH as output variable for the plugin.
* feat:[CI-15236]: Directory check and UTs.
* Update pkg/output/output.go
* feat:[CI-15236]: fixes
* feat:[CI-15236]: Test fixes - removed root
* feat:[CI-15236]: Test fixes - removed root
* feat:[CI-15236]: Test fixes - removed root
* feat:[CI-15236]: If tarPath directory no present it will create it.
* feat:[CI-15236]: If tarPath directory no present it will create it.
* feat:[CI-15236]: fixes
* Update kaniko.go
removed as getTarPath is only called when tarPath isn't empty
---------
Co-authored-by: OP (oppenheimer) <21008429+Ompragash@users.noreply.github.com>
The kaniko flag `snapshotMode` is deprecated in favor of `snapshot-mode`. The default value of `snapshot-mode` is `full`. As a result, the `optimize` flag set in Harness CI's `BuildAndPushToDocker` steps doesn't behave as expected because the `full` mode triggers a full filesystem scan which is slow. The `optimize` flag in Harness translates to `snapshot-mode=redo` which means only filesystem deltas are compared which is much faster.
This change fixes the flag name being sent to Kaniko executor. I verified that the executor present in the current version already supports this flag as shown below:
```
hemanthkumarmantri@Hemanth Kumar harness-core % docker run -it --entrypoint /kaniko/executor plugins/kaniko:1.8.10 --help | grep snapshot-mode
--snapshot-mode string Change the file attributes inspected during snapshotting (default "full")
--snapshotMode string This flag is deprecated. Please use '--snapshot-mode'.
```
* add config for base connector
* fix permissions code
* add gar step support
* add gar step support
* reformat code, add support for gar and acr
* remove logs
* address review comments
* delete bin file