Quantcast
Channel: User pcampana - Stack Overflow
Browsing index pages (40 articles)

Answer by pcampana for "AttributeError: 'str' object has no attribute...

The solution than works for me was:pip3 uninstall keraspip3 uninstall tensorflowpip3 install --upgrade pip3pip3 install tensorflowpip3 install keras

View Article


Load json object from file (Jinja2)

I have a json file called values.json with different atributes:{"key1": "value1","key2": "value2","key3": "value3"}Using Jinja2, I am trying to import it and get just value1, but i don't find the way...

View Article


helm error when updating: UPGRADE FAILED: The order in patch list

I have a problem with helm deployment. It has happend after I have added a new environment variable to the deployment.When I execute: helm upgrade [RELEASE] [CHART]I get the following error:Error: The...

View Article

Answer by pcampana for Jira Xray empty Test Details with Behave or Cubumber...

It is not supported. However, it can be easily solved by using Jira api to update the issue. The only requisite is we need to create a Jira access token.After creating the test execution in Jira:curl...

View Article

Get Ready status using kubectl -o=jsonpath

I was trying to get the Ready status of pods by using -o=jsonpath.To be more clear of what I want, I would like to get the value 1/1 of the following example using -o=jsonpath.NAME READY STATUS...

View Article


How should I define ranges in ingress security group using Terraform?

I cannot find how I should define ranges using Terraform in ingress security groups. Checking the documentation fields to_port and from_port suport range port. However, I do not find how to configure...

View Article

Answer by pcampana for Selecting Array Elements with the Custom Columns...

If you want to search in a map using custom columns, you can use[?(@.Key=="Value"]An important thing if you want to use it, is that the query in the custom-columns must be insider ['] character.For...

View Article

Answer by pcampana for kubectl logs -f gets "Authorization error"

I could solve this issue by editing the aws-auth configmap. I added the clusterrole system:node in the worker role.apiVersion: v1data: mapRoles: | - rolearn: 'WORKER ROLE' username: 'NAME' groups: -...

View Article


Answer by pcampana for pod logs not stored in EKS nodes

I have found what was happening. The problem was related with the log driver. It was configured to send the logs to journald:docker inspect -f '{{.HostConfig.LogConfig.Type}}' IDjournaldI have changed...

View Article


pod logs not stored in EKS nodes

I am trying to configure a fluend to send logs to an elasticsearch. After configuring it, I could not see any pod logs in the elasticsearch.While debuging what is happening, I have seen that there are...

View Article

helm 3 .Release.time.Seconds does not exist

I am now working in the migration from helm 2 to 3.I am using the value of .Release.time.Seconds in my charts. I have seen that in helm 3 .Release.time does not exists. Trying to use now as it is...

View Article

Answer by pcampana for Does Any one got "AttributeError: 'str' object has no...

The solution than works for me was:pip3 uninstall keraspip3 uninstall tensorflowpip3 install --upgrade pip3pip3 install tensorflowpip3 install keras

View Article

Answer by pcampana for How to define start order

You can use helm hook helm.sh/hook-weight in order to define the order.As it is explained in Helm documentation:It is possible to define a weight for a hook which will help build a deterministic...

View Article


Patch kubernetes label with "/" character

I have the following code that is working fine. It adds the label example: yes in the kubernetes object:package mainimport ("fmt""encoding/json""k8s.io/apimachinery/pkg/types" eksauth...

View Article

Converting bool to *bool in go

With the following code:var example *boolexample = truelog.Print(example)I have the following error cannot convert true (untyped bool constant) to *boolI manage to solve it declaring a new variable...

View Article


Scale deployment replicas with kubernetes go client

I'm trying to scale a deployment with golang client. The problem I've found is that the golang client does not have a scale method for deployments. I don't know how I should do it. The idea that I have...

View Article

Answer by pcampana for How to display the csv file name which is read by...

When you use pandas read_csv function, you get a dataframe that does not include the file name. So the solution is storing the name of the .csv in a variable, and then print it. You can check about...

View Article


Answer by pcampana for Compute sum of digits of a given string in python

Here you have a possible solution. Now you have as a result 229 (78 + 83 + 65). The problem with your code was that you were summing all the numbers in the string, but you did not consider that number...

View Article

Answer by pcampana for Being notified for changes in namespace of a pod

In order to do it, what I would do is deploying an application that checks if there are changes. To do it, you can use kubernetes api. You just need to install curl, instead of kubectl and the rest is...

View Article

Answer by pcampana for Bash Functions | updating variables without echoing in...

You should use > /dev/null. It redirects the output to /dev/null. /dev/null accepts all output and does nothing with it.So your code whould be:freespace_function () { local function_result="$(df -m...

View Article
Browsing index pages (40 articles)


Latest Images