EKS - aws-ebs-csi-driver add-on advanced configuration problem

0

Hi, I am using the aws-ebs-csi-driver add-on, and while I was able yesterday to input a custom JSON content, today I tried to upgrade the add-on's version to latest (v1.15.0-eksbuild.1) and I got the below error:

ConfigurationValue is not in valid JSON or YAML format.

Here is my JSON:

{
	"controller": {
		"nodeSelector": {
			"kubernetes.io/os": "linux",
			"aaaaa": "xxx-yyy-zzz",
			"some_other_key": "abcd"
		}
	}
}

which seems valid, according to the schema I get from

aws eks describe-addon-configuration --addon-name aws-ebs-csi-driver --addon-version v1.15.0-eksbuild.1 

It's very strange that I was able to input that JSON yesterday, but I cannot now? Has the updated version broken something in the schema validator? Is this a bug or something wrong with the data I try to input?

babis
已提問 1 年前檢視次數 3124 次
4 個答案
1

We've discovered an issue with the way we parse configuration that has tabs in it. If you remove the tabs from your input, this will work. We are working to address this issue so tabs vs spaces will not matter in the future.

AWS
已回答 1 年前
0

I removed all whitespace and submitted the JSON as one line, and it was accepted.

Thank you! :)

babis
已回答 1 年前
0

The fix has been deployed, so whitespace/tabs will not matter anymore.

AWS
已回答 1 年前
0

This is an issue again; suddenly, the configuration I have above is not working. The plugin was in a degraded state (no idea why). I tried to upgrade it but it failed. I had to remove my custom configuration in order to be able to upgrade the plugin to 1.17.0. And now I try to add the above configuration, but it fails! This is absurd guys! Does it work or not?

I have no whitespaces in my JSON. I also tried YAML. None work.

UnsupportedAddonModification	Amazon EKS was unable to complete the addon operation. The configuration values provided are invalid.
babis
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南