Comments (5)
I'll solve this issue. Please assign this to me!
from okteto.
Assigned!! I don't know how trivial this one is, but let us know if you face any problem and we'll try to give you some tips
from okteto.
Assigned!! I don't know how trivial this one is, but let us know if you face any problem and we'll try to give you some tips
I'm late for this but I've done my research. Here's what I have found after debugging:
The function PersistentPreRun
is being called twice, first for the root
and then for the context
command. Everytime it is called, it is always going to be executing the okteto.SetInsecureSkipTLSVerifyPolicy(ctxOptions.InsecureSkipTlsVerify)
function.
if parent := cmd.Parent(); parent != nil {
if parent.PersistentPreRun != nil {
parent.PersistentPreRun(parent, args)
}
}
When the parent.PersistentPreRun()
function is called recursively for the first time, it changes it's value to main.main()
due to which we are facing the above issue. For every recursive call, the function okteto.SetInsecureSkipTLSVerifyPolicy(ctxOptions.InsecureSkipTlsVerify)
is called.
I think one way we can solve this is by either calling the function before the If statement OR setting up a boolean flag/count pointer.
cc: @jLopezbarb
from okteto.
The change seems requiring some refactoring in order to make the change testable and avoid any workaround. I am removing the good first issue
label because such change should be done and owned by the CLI team. Apologies agian @nitishfy and thanks for all your contributions π
from okteto.
This issue is stale because it has been open for 60 days with no activity. Comment on this issue or it will be closed in 7 days
from okteto.
Related Issues (20)
- 100000
- Add support for error hints in `okteto build` HOT 2
- Canβt add a variable with special characters using the launch environment deployment HOT 1
- Using `OKTETO_USE_STATIC_KUBETOKEN ` as an Okteto secret creates a dynamic kubetoken HOT 1
- Dev sessions get disconnected with "The server has asked for the client to provide credentials (get deployments.apps)` HOT 1
- Don't try to regenerate an expired API token HOT 1
- Can't use existing volume with new container HOT 1
- Is windows podman supported? HOT 1
- Remote okteto deploy broken when `var` has whitespace HOT 2
- Test
- Connection lost to your development container on starting debugging from PyCharm HOT 2
- Shadiibot
- running "okteto context delete" on a kubernetes context doesn't delete the context, nor the command fails HOT 4
- `okteto context list` doesn't work if no context is selected, or right after running a `context delete` of current context HOT 1
- Publish okteto to winget HOT 2
- Running `okteto up` as a daemon HOT 2
- "okteto build" reports that service doesn't exist when it's not able to parse the okteto manifest HOT 1
- Running `okteto up --deploy` fails with nil pointer dereference in GithubActions pipeline HOT 2
- envFrom secrets are not available in hybrid mode HOT 1
- Adding a template feature to okteto init
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from okteto.