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
posta un anno fa3124 visualizzazioni
4 Risposte
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
con risposta un anno fa
0

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

Thank you! :)

babis
con risposta un anno fa
0

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

AWS
con risposta un anno fa
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
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande