error converting YAML to JSON: yaml: line 74: mapping values are not allowed in this context - akv2k8s

I have downloaded the akv2k8s helm chart locally and changed nothing. using default credential to install it on aks.
getting this error when installing this:
Error: UPGRADE FAILED: YAML parse error on akv2k8s/templates/env-injector-deployment.yaml: error converting YAML to JSON: yaml: line 74: mapping values are not allowed in this context
anyone else had faced this problem?

Related

coalesce.go:163: warning: skipped value for initContainers: Not a table

helm template .
coalesce.go:163: warning: skipped value for initContainers: Not a table.
Error: YAML parse error on xray/templates/xray-statefulset.yaml: error converting YAML to JSON: yaml: line 48: did not find expected key
Use --debug flag to render out invalid YAML
I am using the below helm chart
https://artifacthub.io/packages/helm/jfrog/xray/103.51.0

getting error while installing kured using fleet

the error iam getting is:
error while running post render on files:invalid cluster scoped object[name=namespaces-kured kind=ClusterRole apiversion:rbac.authorization.k8s.io/v1]found.consider using "DefaultNamespace" not "namespace" in fleet.yaml

Failed to start the VM error when starting a Dataflow SQL job

Getting the following error when I try to launch a Dataflow SQL job:
Failed to start the VM, launcher-____, used for launching because of status code: INVALID_ARGUMENT, reason: Error: Message: Invalid value for field 'resource.networkInterfaces[0].network': 'global/networks/default'. The referenced network resource cannot be found. HTTP Code: 400.
This issue just started today.
Adding the default network solved the issue.

How can I use ImageMagick to read SVG files in Elastic Beanstalk?

I'm trying to use ImageMagick to read SVG files. This works just fine locally, since I have librsvg (https://github.com/GNOME/librsvg) installed on my machine. However, the package doesn't seem to be available through yum, which is what Elastic Beanstalk uses.
So in my backend (Rails/Postgresql) I have something like:
def save_svg_as_image
file = params[:uploaded_svg]
#svg_image = MiniMagick::Image.read(file)
self.svg = #svg_image
end
Again, this works fine on local thanks to librsvg, but when testing with my EB (64bit Amazon Linux/2.11.4), I get:
MiniMagick::Invalid (`identify /tmp/mini_magick20210205-24760-bygqeh` failed with error:
identify: no decode delegate for this image format `/tmp/mini_magick20210205-24760-bygqeh' # error/constitute.c/ReadImage/544.
):
I've attempted using the following solution: Taking the code from https://gist.github.com/whyvez/1e0212a35da97aa8f1b1 and using it in a packages.config file, but I'm continually getting the following error:
Command failed on instance. Return code: 2 Output: wget: unrecognized option '--prefix=/usr'

Gradle Artifactory and space in name

I am having an artifact published with space in Artifactory. We have the POM published as well. Reference getting is:
compile group: 'com.local', name: "Artifact Name", version: '1.3'
If I get this, I got error below. If I put the Artifact%20Name then I got problem with
org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.MetaDataParseException: inconsistent module metadata found. Descriptor: com.local:Artifact Name:1.3 Errors: bad module name: expected='Artifact%20Name' found='Artifact Name'
Is there a way that gradle can just replace the space with %20 to prevent the illegal character?
... 209 more
Caused by: java.lang.IllegalArgumentException: Illegal character in path at index 81: http://artifactory:8081/artifactory/repos/com/local/Artifact Name/1.3/Artifact Name-
1.3.pom
at java.net.URI.create(URI.java:859)
at org.apache.http.client.methods.HttpGet.<init>(HttpGet.java:69)
at org.gradle.api.internal.externalresource.transport.http.HttpClientHelper.performRawGet(HttpClientHelper.java:66)
at org.gradle.api.internal.externalresource.transport.http.HttpClientHelper.performGet(HttpClientHelper.java:70)
at org.gradle.api.internal.externalresource.transport.http.HttpResourceAccessor.getResource(HttpResourceAccessor.java:46)

Resources