Граф коммитов

41 Коммитов

Автор SHA1 Сообщение Дата
norakoiralamsft f635c0a0f0
Removing migrate to mostRecentSeqNum logic (#216)
* removing migrate to seqnum logic

* removing func instead of commenting
2023-05-25 12:43:14 -07:00
norakoiralamsft 5ece9d3308
Reverting PR 200 -- seqNum fix (#214)
* seq num 0 change

* reverting changes from pr 200
2023-05-03 12:28:11 -07:00
norakoiralamsft 0d2cc5c927
Deleting scripts and updating settings file logic (#211)
* adding utils and logic

* split fucn

* go mod fix

* nit string fix

* adding logic to other place

* test

* new way

* nit changes

* Debug message

* Debug message

* fix parameters

* fix parameters

* fix up

* Address pr comments

* parameters fix

* parameters fix
2023-04-19 10:30:54 -07:00
norakoiralamsft 00e37b6a29
Adding logging + logic to migrating seq num (#200)
* adding logging

* addressing comments

* cleanup tests

* nit change

* remove install failed logic

* nit error msg change

* fix unit tests
2022-10-11 11:01:20 -07:00
norakoiralamsft 77393ab56c
Clear protected settings (#201)
* clear protected settings

* git ignore vendor files

* removing vendor dir
2022-10-03 16:18:06 -07:00
Atanas Koralski 6ff686b62f
arm64 support and build update (#190) 2021-09-28 12:07:25 -07:00
Kashif Mustahsan 83f7df70e5 unit tests 2020-01-07 13:41:01 -08:00
Kashif Mustahsan c07ee2ca08 updating error messages 2020-01-07 12:07:34 -08:00
Bhaskar Brahma d46faab4ef replaced tabs with spaces in the json schema for validation 2019-07-31 16:58:40 -07:00
Bhaskar Brahma 4d249a2504 Addressed PR comments 2019-07-31 16:47:17 -07:00
Bhaskar Brahma 10710fb27d Added domain name validation for sovereign regions and additional tests 2019-07-29 13:51:40 -07:00
Bhaskar Brahma c2104dc037 updated tests 2019-07-26 14:45:13 -07:00
Bhaskar Brahma 2e2d012c2c Undid changes to readme file
removed unnecessary variable declaration

updated comments
2019-07-26 14:34:12 -07:00
Bhaskar Brahma 0dcb473cf7 Added methods for getting MSI with clientId or objectId and integrated all changes and added unit testing
refactored variable
2019-07-26 14:34:08 -07:00
Bhaskar Brahma c323e17a90 formatted code with go fmt
more formatting
2019-07-26 14:33:20 -07:00
Bhaskar Brahma f866c597d4 Changed retry strategy to use multiple downloaders 2019-07-24 17:57:36 -07:00
Bhaskar Brahma 5df0e1bef5 saving work 2019-07-24 14:58:17 -07:00
Bhaskar Brahma d072d784e6 Added changes for using MSI to download scripts with CSE 2019-07-22 17:24:14 -07:00
Bhaskar Brahma f01fb381c3 Added validation for protected settings 2019-07-19 15:22:57 -07:00
Bhaskar Brahma efcd9c6711 Added schema for msi to protectedSettings for CSE Linux 2019-07-19 13:38:07 -07:00
Ubuntu 5e2c5cf9c6 Used gofmt to format code 2019-06-07 20:32:23 +00:00
Bhaskar Brahma 42d9f3fbca changed redacted message 2019-06-06 15:48:16 -07:00
Bhaskar Brahma dcb4322d9d called the new methods, moved the new files, and added more test cases 2019-06-06 15:44:02 -07:00
Bhaskar Brahma 27a5ea8d47 Added function to filter out urls from error messages 2019-06-06 14:52:55 -07:00
David Albertson 225aa39f55 Removing stdout/stderr from telemetry 2018-12-10 15:56:34 -08:00
Christopher Boumenot 8486c6d4f0 use mrseq 2017-11-10 13:49:30 -08:00
Christopher Boumenot 3610216629 log stdout/stderr to telemetry 2017-11-08 22:14:32 -08:00
Christopher Boumenot 5165acfa01 respond to review feedback 2017-10-27 15:26:32 -07:00
Christopher Boumenot 95bbf9b65d support script command
* report stdout/stderr on failure
 * support fileUris in protected settings
 * telemetry
 * allow user to turn of dos2unix conversion
2017-10-13 14:22:16 -07:00
Christopher Boumenot e2fe70a2b2 remove migration code 2017-10-13 10:28:10 -07:00
Christopher Boumenot 3c139b6421 Merge pull request #108 from Azure/pr-report-failed-enable
report stdout/stderr on failure
2017-10-10 22:45:25 -07:00
Christopher Boumenot 69291b8b76 report stdout/stderr on failure 2017-10-10 19:16:29 -07:00
Ahmet Alp Balkan 306b443858
Tail stdout/stderr in 'enable' status message
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-11-28 15:49:41 -08:00
Ahmet Alp Balkan 759c2670e8
Add tailing function on log files
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-11-28 15:22:09 -08:00
Ahmet Alp Balkan 6230f858c6
Do not overwrite .status file in new enables
Updating custom-script-shim to not to overwrite a placeholder
"transitioning" `.status` file if it already exists.

Updating handler code writing "transitioning" `.status` file to
not to write the `.status` file until the sequence number check
is completed in the "enable" cmd.

Added integration tests to validate this case.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-10-11 11:04:01 -07:00
Ahmet Alp Balkan c686b8670a
Fix comment 2016-08-31 12:01:08 -07:00
Ahmet Alp Balkan 4822c78f64
cmd/enable: migrate old data dir on enable
Adding code to migrate /var/lib/azure/custom-script to
/var/lib/waagent/custom-script so that it gets cleaned up on
'waagent -deprovision' path. Shelling out to `mv -f` for recursive
file copying.

Also bumped version to v2.0.1.
2016-08-31 11:16:52 -07:00
Ahmet Alp Balkan c1ce23bbd2
Fix test case
Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
2016-08-16 14:59:51 -07:00
Ahmet Alp Balkan fe292ee5ca
Unify version string management in code
- Read main.Version from misc/manifest.xml, this way we only have
  one place to bump the version number before tagging. Also used
  by Extension Deployment Pipeline.
- Let govvv handle GitCommit/BuildDate/GitState etc.
2016-08-11 11:51:53 -07:00
Ahmet Alp Balkan 3bd28e1533
Do not rely on SeqNo in HandlerEnvironment.xml
Apparently waagent-2.0.x included a SeqNo field in HandlerEnvironment.xml
and 2.1.x removed it (it was not covered by the extensions spec). Other
extensions were using vmextension.FindSeqNum(...) method to locate the
highest sequence number.

Switching this handler to use it as well and refactoring a few methods
accordingly.
2016-08-02 14:57:42 -07:00
Ahmet Alp Balkan 09790bb079
Move packages into pkg/, handler to main/ 2016-08-01 13:44:25 -07:00