You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: filter cm fields not already present in resource (#319)
This would fix a lot of the inconsistent state issues which we see,
where if we don't specify the exact keys that the API returns, the
provider fails horribly. This also simplifies the config from a user
perspective, since they don't have to specify every single key that the
API returns. This means that from a TF perspective, the config becomes
minimal in most cases.
This relies on the fact that when we submit requests to the ApplyConfig
endpoint, that only the cm fields specified are set; any other field
that needs to be present in the data model relies on the API to set the
correct defaults.
Fixes#143
# When configuring the `argocd_cm`, make sure to specify the following keys (from "admin.enabled", to "users.anonymous.enabled") since those keys are added by Akuity Platform by default.
152
-
# If they are not defined, you may see inconsistent results and errors from the provider.
153
-
# Feel free to customize the values based on your usage, but the keys themselves must be specified.
154
-
# Note that "admin.enabled" cannot be set to true independently, and an "accounts.admin" key is required, like the "accounts.alice" key below, once you add that, remove the "admin.enabled" key.
155
-
"admin.enabled" = false
151
+
# When configuring `argocd_cm`, there is generally no need to set all of these keys. If you do not set a key, the API will set suitable default values.
152
+
# Please note that the API will disallow the setting of any key which isn't a known configuration option in `argocd-cm`.
153
+
#
154
+
# NOTE:
155
+
# `admin.enabled` can be set to `false` to disable the admin login.
156
+
# To enable the admin account, set `accounts.admin: "login"`, and to disable the admin login, set `admin.enabled: false`. They are mutually exclusive.
# When configuring the `argocd_cm`, make sure to specify the following keys (from "admin.enabled", to "users.anonymous.enabled") since those keys are added by Akuity Platform by default.
50
-
# If they are not defined, you may see inconsistent results and errors from the provider.
51
-
# Feel free to customize the values based on your usage, but the keys themselves must be specified.
52
-
# Note that "admin.enabled" cannot be set to true independently, and an "accounts.admin" key is required, like the "accounts.alice" key below, once you add that, remove the "admin.enabled" key.
53
-
"admin.enabled"=false
49
+
# When configuring `argocd_cm`, there is generally no need to set all of these keys. If you do not set a key, the API will set suitable default values.
50
+
# Please note that the API will disallow the setting of any key which isn't a known configuration option in `argocd-cm`.
51
+
#
52
+
# NOTE:
53
+
# `admin.enabled` can be set to `false` to disable the admin login.
54
+
# To enable the admin account, set `accounts.admin: "login"`, and to disable the admin login, set `admin.enabled: false`. They are mutually exclusive.
0 commit comments