Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
-3 votes
1 answer
51 views

GO Call a function which return a interger kubernetes [closed]

I have a pod.yaml, I want to retrieve a new annotation integer value, to make a sleep. So I used Go to fetch the integer after the name : new-anno. With this value, I want to return a function to make ...
esefe sgrgrz's user avatar
1 vote
0 answers
14 views

kubernetes: multiple reconcile instances updating the same non-kubernetes object

I have a kubernetes reconciler written in GO. The MaxConcurrentReconciles set to be greater than one. Every time the target kubernetes object gets deleted, I need to update a list(remove the id of the ...
Amol Deodhar's user avatar
1 vote
0 answers
25 views

FATA[0005] failed to create API: unable to run post-scaffold tasks of "base.go.kubebuilder.io/v3": exit status 2

I have tried with go version 1.22.5, 1.20.5,1.17, and sdk version: operator-sdk version operator-sdk version: "v1.20.0", commit: "deb3531ae20a5805b7ee30b71f13792b80bd49b1", ...
Ahtasham Ul Hassan's user avatar
1 vote
0 answers
10 views

Apache Pulsar Go Client created unexpected producer/consumer

I have a Go application which tests sending and receiving messages through Apache Pulsar and deploy them within the same Kubernetes cluster, as follows: package main import ( "context" ...
Frank Wu's user avatar
-2 votes
0 answers
21 views

Cloud provider external, nodeIp [closed]

I'm building a 1.30.3 cluster using external provider and capi. When the first control plane bootstrapped it does show Ready status but it's internal ip address is . Because of that cluster is ...
kotyara85's user avatar
  • 321
1 vote
0 answers
31 views

Comunicate to a k3s cluster from other docker container on the same network

I have a golang test that setup multiple stand alone docker containers using dockertest lib, and a k8s cluster that I setup using k3s. As part of the test, I'm creating a docker network with name &...
Avishay28's user avatar
  • 2,406
0 votes
0 answers
35 views

How to create kubernetes client with go sdk for AWS EKS with automatic token refresh

I am using the function newClientset below to create a clientset to send requests to api-server of an AWS EKS cluster. Arguments clusterCAData and clusterEndpoint are retrieved dynamically by the ...
Everton's user avatar
  • 13.4k
1 vote
0 answers
42 views

Issue with Go Application on Kubernetes: Informer Blocked on Semaphore

We are encountering an issue in our Go application running as a Kubernetes pod that uses multiple informers. Analysis of the dump file revealed that a goroutine is primarily blocked on acquiring a ...
Giri's user avatar
  • 13
1 vote
0 answers
174 views

Golang delve in Kubernetes container - "use of closed network connection"

Edit: Before you go through the entire question, note the update at the end (the pod restarts were caused by a liveness probe failing). I am not deleting the question, because: it links to a very ...
Bogd's user avatar
  • 748
4 votes
1 answer
92 views

Field conflict with kubernetes dynamic client and server-side apply

How do I correctly use the kubernetes client-go library with a dynamic client and server-side apply? I am creating and then trying to update a Kubernetes resource using the dynamic client, with ...
kai's user avatar
  • 2,080
1 vote
0 answers
38 views

Golang - K8S DeepCopyInto function failing because Secret type undefined

I have the following function, with which I'm trying to copy a secret into another namespace. My GO code fails saying that the Secret type is undefined, but it should be inherited from the core/v1 ...
Razvan's user avatar
  • 31
1 vote
1 answer
202 views

Download Helm Chart using Go

I wondered if anyone had ever successfully used the Go Helm provider. I've been in a very frustrating day trying to get my Argo-CD helm chart to download and install using the go helm provider: https:/...
Jason's user avatar
  • 617
0 votes
2 answers
78 views

How can I respond back on same gin context if response to be sent is received on some other endpoint

So, I have to handle sync call in async way. My go microservice using gin context receives request on /req endpoint, and I have to send it to some other microservice say B, after performing ...
Amrit Singh's user avatar
1 vote
1 answer
43 views

Why do I receive an incorrect result in the fake K8s client?

Below I have a really simple test and a minimal working example. In the test I am inserting 4 jobs into my fake client. I then delete all jobs that match both the labels AND the namespace. I marked ...
User12547645's user avatar
  • 8,049
0 votes
1 answer
162 views

Create infinite Reconciliation loop for a deployment with Kubebuilder

I am creating a controller that will watch a dpeloyment and its pods on a cluster. The watched deployment is not a custom resource. I have built out the controller with kubebuilder. For the purpose ...
TeeTee's user avatar
  • 117

15 30 50 per page
1
2 3 4 5
65