k8s-image-swapper
k8s-image-swapper copied to clipboard
ERR parsing policy
Hello! I am getting a parse error when trying to use the following policy:
ecrOptions:
accessPolicy: |
{
"Statement": [
{
"Sid": "AllowCrossAccountPull",
"Effect": "Allow",
"Principal": {
"AWS": "*"
},
"Action": [
"ecr:GetDownloadUrlForLayer",
"ecr:BatchGetImage",
"ecr:BatchCheckLayerAvailability"
],
"Condition": {
"StringEquals": {
"aws:PrincipalOrgID": "o-XXXX"
}
}
}
],
"Version": "2008-10-17"
}
Logs:
k8s-image-swapper-576dbbb84b-4zrkd k8s-image-swapper 11:09AM ERR parsing image swap policy failed error="unknown image swap policy string: '', defaulting to exists" policy=
k8s-image-swapper-576dbbb84b-4zrkd k8s-image-swapper 11:09AM ERR parsing image copy policy failed error="unknown image copy policy string: '', defaulting to delayed" policy=
Please note that i am upgrading from 1.1.0 helm chart version to 1.8.0 and in the previous version everything was working fine.
Thanks
@stdmje Is this still an issue?
Is this snippet from the configmap or the helm chart? If it is from the helm chart values can you check if the configmap is properly propagated?