Questions tagged [yaml]
Use this tag for questions about the YAML data serialization format only, not for questions about programs (or examples) that happen to have their configuration in a YAML format. Questions about the CSS framework also called YAML should be tagged [yaml-css] instead.
15,690
questions
0
votes
1
answer
20
views
deployment.yaml: error parsing uri: scheme must be "mongodb" or "mongodb+srv"
I am trying to run an application on my EKS cluster. The Kubernetes cluster is supposed to access an AWS EC2 instance with Mongodb installed on there. I've applied both a service.yaml file and ...
0
votes
0
answers
7
views
trying to clean code yaml in dwains dashboard
I use Dwains Dashboard in Home Assistant
and I have this code for the more page addon
# dwains_dashboard
#More_page addon view
{% if _dd_more_pages %}
{% for addon in _dd_more_pages %}
- title: {{ ...
0
votes
2
answers
34
views
Lose quotes around date when writing to YAML file
I have this script:
import json
from datetime import datetime, timedelta
import os
import ruamel.yaml
vulnerabilities = {}
expiration_date = (datetime.now() + timedelta(days=29)).strftime('%Y-%m-%d')
...
1
vote
0
answers
30
views
Make the pipeline fail if a specific sentence appears in the log
The goal of the task is to verify a build process in a GitLab CI/CD pipeline using PowerShell without saving any files on the server. Specifically, the task involves checking for configuration ...
0
votes
0
answers
4
views
Yaml error undefined reference 'yaml_emitter'
I am trying to install risk-ISA-SIM through pulp/ara git but I got an error that yaml is missing. Then I installed the libyaml-dev pack, and now I get an error undefined reference to '...
0
votes
0
answers
13
views
GitHub Dependabot auto merge pull requests
Currently I have this dependabot + github actions workflow to create pull requests and auto merge them using action. It works fine the only problem is i get two commits for every pull request in main ...
1
vote
1
answer
32
views
How to serialize into a specific format
Using YamlDotNet, how to serialize a byte[] like that [49,20,50]?
The yaml file I need is:
device:
name: device1
key: [49,20,50]
I have tried:
Defined the key as byte[], however, the ...
0
votes
1
answer
64
views
Azure DevOps Pipeline Error: No Agent Found with Version Greater Than 2.220.0
I recently started encountering an error in my Azure DevOps pipeline that previously built without any issues. The error message is as follows:
No agent found in pool Default which satisfies the ...
-1
votes
0
answers
12
views
Mapping an existing Lambda function to existing DynamoDB tables
Is there anyway to add an existing Lambda function to existing DynamoDB tables using CloudFormation? Given that all the tables have turned on stream details.
Here is my current script:
...
0
votes
1
answer
30
views
How to create ConfigMap yaml manifest for Azure Kubernetes using shell or PowerShell script?
I have requirement to create yaml file which can be used to create configmap in kubernetes.
I have 3 xml files which are need to be imported in template yaml file.
YAML Template:
apiVersion: v1
data:
...
0
votes
0
answers
26
views
How to download the latest artifact from Artifactory repository in YAML?
Need a help on this
We are expecting the yaml code to download the artifact from artifactory.
Earlier we used the nexus with direct API via GAVC to download the artifact.
We have a code for shell ...
-1
votes
1
answer
12
views
AWS CodeBuild Fails with YAML_FILE_ERROR When Running Python Script in buildspec.yml
I’m trying to run a Python script in AWS CodeBuild using a buildspec.yml file. The Python script is supposed to send an email using AWS SES. Here’s the relevant part of my buildspec.yml:
version: 0.2
...
0
votes
0
answers
18
views
Kubernetes Gitlab Runner - Gitlab Jobs using System:Anonymous account instead of specified service account
I have a Kubernetes cluster with a namespace called "gitlab-runner" which contains service account "runner-service" rolebinded to allow access to create/destroy nodes and read ...
0
votes
1
answer
44
views
Can you use "netsh http add urlacl" conditionally in an Azure pipeline YAML file?
We need to register the HTTP listeren on our build servers and want our pipeline steps to all be "green" when everything's in order. So for our code to run, we have to run the following code:...
0
votes
1
answer
28
views
How to use variables within !reference tag in gitlab-ci?
as far as I know, you can use the !reference tag for relating to some construct used in a parent template.
The Gitlab documentation gives following example:
file "config.yml"
.setup:
...