Melissa Kam
7900544249
[CC-7063] Fetch HCP agent bootstrap config in Link reconciler ( #20306 )
...
* Move config-dependent methods to separate package
In order to reuse the fetching and file creation part of the
bootstrap package, move the code that would cause cyclical
dependencies to a different package.
* Export needed bootstrap methods and variables
Also add back validating persisted config and update tests.
* Add support to check for just management token
Add a new method that fetches the bootstrap configuration only if
there isn't a valid management token file instead of checking for
all the hcp-config files.
* Pass data dir as a dependency to link controller
The link controller needs to check the data directory for
the hcp-config files.
* Fetch bootstrap config for token in controller
Load the management token when reconciling a link resource, which will
fetch the agent boostrap configuration if the token is not already
persisted locally. Skip this step if the cluster is in read-only mode.
* Validate resource ID format in link creation
* Handle unauthorized and forbidden errors
Check for 401 and 403s when making GNM requests, exit bootstrap fetch
loop and return specific failure statuses for link.
* Move test function to a testing file
* Log load and status write errors
2024-01-24 09:51:43 -06:00
..
2023-10-11 10:44:03 -05:00
2024-01-10 12:15:36 +00:00
2023-08-11 09:12:13 -04:00
2023-09-12 12:56:43 -07:00
2023-09-12 12:56:43 -07:00
2023-09-12 12:56:43 -07:00
2023-10-10 10:58:06 -04:00
2024-01-19 16:31:49 -06:00
2023-12-12 08:29:13 -05:00
2024-01-10 12:15:36 +00:00
2024-01-24 09:51:43 -06:00
2023-08-11 09:12:13 -04:00
2024-01-17 23:46:18 +00:00
2024-01-22 10:10:03 -05:00
2024-01-03 09:53:39 -07:00
2023-10-10 10:58:06 -04:00
2024-01-23 10:06:59 +05:30
2024-01-12 11:54:07 -05:00
2024-01-23 10:06:59 +05:30
2024-01-24 09:51:43 -06:00
2023-09-12 12:56:43 -07:00
2023-08-23 10:33:07 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-11-06 08:47:12 -06:00
2024-01-18 16:44:53 -06:00
2023-10-10 10:58:06 -04:00
2023-11-02 14:05:06 -05:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2024-01-16 08:57:43 -06:00
2023-08-22 09:46:03 -05:00
2024-01-22 09:23:24 -06:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-10-10 10:58:06 -04:00
2023-11-28 21:27:14 +00:00
2024-01-23 20:07:58 -06:00
2024-01-23 20:07:58 -06:00
2023-10-10 10:58:06 -04:00
2024-01-16 08:57:43 -06:00
2023-11-27 10:34:22 -05:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-10-10 10:58:06 -04:00
2023-10-10 10:58:06 -04:00
2023-10-10 10:58:06 -04:00
2023-10-10 10:58:06 -04:00
2023-12-06 12:11:32 -05:00
2024-01-12 15:11:21 -06:00
2024-01-08 09:49:29 -06:00
2024-01-23 10:06:59 +05:30
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-10-10 10:58:06 -04:00
2023-12-06 12:11:32 -05:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2024-01-23 10:06:59 +05:30
2024-01-23 10:06:59 +05:30
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2024-01-17 23:46:18 +00:00
2024-01-17 23:46:18 +00:00
2024-01-16 22:36:02 -05:00
2024-01-18 18:30:04 -05:00
2024-01-18 18:30:04 -05:00
2024-01-16 22:36:02 -05:00
2023-10-10 10:58:06 -04:00
2023-12-06 12:11:32 -05:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-12-06 12:11:32 -05:00
2023-08-11 09:12:13 -04:00
2023-08-22 09:46:03 -05:00
2023-10-10 10:58:06 -04:00
2023-08-11 09:12:13 -04:00
2024-01-23 10:06:59 +05:30
2023-12-06 12:11:32 -05:00
2023-12-11 23:28:04 +00:00
2023-10-10 10:58:06 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2024-01-16 08:57:43 -06:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-10-10 10:58:06 -04:00
2023-10-10 10:58:06 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-10-10 10:58:06 -04:00
2023-08-11 09:12:13 -04:00
2023-08-22 09:46:03 -05:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-09-22 15:50:56 -06:00
2023-08-11 09:12:13 -04:00
2023-12-06 12:11:32 -05:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-10-06 13:59:47 -05:00
2023-12-06 12:11:32 -05:00
2023-08-11 09:12:13 -04:00
2023-10-10 10:58:06 -04:00
2024-01-24 09:51:43 -06:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-10-10 10:58:06 -04:00
2023-10-10 10:58:06 -04:00
2023-11-07 10:15:50 -06:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2024-01-16 08:57:43 -06:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-09-05 13:34:44 -07:00
2023-10-10 10:58:06 -04:00
2023-10-11 10:44:03 -05:00
2023-11-28 21:27:14 +00:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00
2023-08-11 09:12:13 -04:00