Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubernetes init installs *latest* instead of the actual latest version #1104

Closed
shivamkm07 opened this issue Oct 14, 2022 · 4 comments
Closed
Assignees
Labels
kind/bug Something isn't working P0 size/XS 2 days work triaged/resolved The issue has been triaged
Milestone

Comments

@shivamkm07
Copy link
Contributor

Expected Behavior

dapr init -k installs latest dapr runtime instead of the actual latest runtime version (currently 1.9.0).

Actual Behavior

dapr init -k installs actual latest dapr runtime (currently 1.9.0).

Steps to Reproduce the Problem

Release Note

RELEASE NOTE:

@shivamkm07 shivamkm07 added the kind/bug Something isn't working label Oct 14, 2022
@mukundansundar mukundansundar added P0 size/XS 2 days work triaged/resolved The issue has been triaged labels Oct 14, 2022
@mukundansundar
Copy link
Collaborator

mukundansundar commented Oct 14, 2022

This is the case when dapr init without runtime version is given ... when dapr init --runtime-version <ver> is given, it works as expected ...

$ /usr/local/bin/dapr init -k --runtime-version 1.8.5                                        
⌛  Making the jump to hyperspace...
ℹ️  Note: To install Dapr using Helm, see here: https://docs.dapr.io/getting-started/install-dapr-kubernetes/#install-with-helm-advanced

ℹ️  Container images will be pulled from Docker Hub
✅  Deploying the Dapr control plane to your cluster...
✅  Success! Dapr has been installed to namespace dapr-system. To verify, run `dapr status -k' in your terminal. To get started, go here: https://aka.ms/dapr-getting-started
$ /usr/local/bin/dapr status -k                                      
  NAME                   NAMESPACE    HEALTHY  STATUS                       REPLICAS  VERSION  AGE  CREATED              
  dapr-sentry            dapr-system  False    Running                      1         1.8.5    6s   2022-10-14 12:32.46  
  dapr-dashboard         dapr-system  True     Running                      1         0.10.0   6s   2022-10-14 12:32.46  
  dapr-sidecar-injector  dapr-system  False    Waiting (ContainerCreating)  1         1.8.5    6s   2022-10-14 12:32.46  
  dapr-placement-server  dapr-system  False    Waiting (ContainerCreating)  1         1.8.5    6s   2022-10-14 12:32.46  
  dapr-operator          dapr-system  False    Waiting (ContainerCreating)  1         1.8.5    6s   2022-10-14 12:32.46  
$ /usr/local/bin/dapr --version                       
CLI version: 1.9.0 
Runtime version: 1.8.4

@pravinpushkar
Copy link
Contributor

pravinpushkar commented Oct 14, 2022

Edit - Checked with PR

➜  cli git:(fix_1) ✗ ldapr init -k
⌛  Making the jump to hyperspace...
ℹ️  Note: To install Dapr using Helm, see here: https://docs.dapr.io/getting-started/install-dapr-kubernetes/#install-with-helm-advanced

ℹ️  Container images will be pulled from Docker Hub
✅  Deploying the Dapr control plane to your cluster...
✅  Success! Dapr has been installed to namespace dapr-system. To verify, run `dapr status -k' in your terminal. To get started, go here: https://aka.ms/dapr-getting-started
➜  cli git:(fix_1) ✗ ldapr status -k
  NAME                   NAMESPACE    HEALTHY  STATUS   REPLICAS  VERSION  AGE  CREATED
  dapr-sidecar-injector  dapr-system  True     Running  1         1.9.0    1m   2022-10-14 12:37.30
  dapr-placement-server  dapr-system  True     Running  1         1.9.0    1m   2022-10-14 12:37.30
  dapr-dashboard         dapr-system  True     Running  1         0.11.0   1m   2022-10-14 12:37.30
  dapr-sentry            dapr-system  True     Running  1         1.9.0    1m   2022-10-14 12:37.30
  dapr-operator          dapr-system  True     Running  1         1.9.0    1m   2022-10-14 12:37.30
➜  cli git:(fix_1) ✗ ldapr upgrade -k --runtime-version 1.8.0
ℹ️  Container images will be pulled from Docker Hub
ℹ️  Dapr control plane version 1.9.0 detected in namespace dapr-system
ℹ️  Starting upgrade...
ℹ️  Downgrade detected, skipping CRDs.
✅  Dapr control plane successfully upgraded to version 1.8.0. Make sure your deployments are restarted to pick up the latest sidecar version.
➜  cli git:(fix_1) ✗ ldapr status -k
  NAME                   NAMESPACE    HEALTHY  STATUS   REPLICAS  VERSION  AGE  CREATED
  dapr-sentry            dapr-system  True     Running  1         1.8.0    16s  2022-10-14 12:39.20
  dapr-dashboard         dapr-system  True     Running  1         0.10.0   16s  2022-10-14 12:39.20
  dapr-sidecar-injector  dapr-system  True     Running  1         1.8.0    16s  2022-10-14 12:39.20
  dapr-operator          dapr-system  True     Running  1         1.8.0    16s  2022-10-14 12:39.20
  dapr-placement-server  dapr-system  True     Running  1         1.8.0    15s  2022-10-14 12:39.21

@shivamkm07
Copy link
Contributor Author

./dapr init -k

⌛  Making the jump to hyperspace...
ℹ️  Note: To install Dapr using Helm, see here: https://docs.dapr.io/getting-started/install-dapr-kubernetes/#install-with-helm-advanced

ℹ️  Container images will be pulled from Docker Hub
✅  Deploying the Dapr control plane to your cluster...
✅  Success! Dapr has been installed to namespace dapr-system. To verify, run `dapr status -k' in your terminal. To get started, go here: https://aka.ms/dapr-getting-started

./dapr status -k

  NAME                   NAMESPACE    HEALTHY  STATUS   REPLICAS  VERSION  AGE  CREATED              
  dapr-operator          dapr-system  False    Running  1         1.9.0    3s   2022-10-14 12:38.07  
  dapr-placement-server  dapr-system  False    Running  1         1.9.0    2s   2022-10-14 12:38.08  
  dapr-sentry            dapr-system  False    Running  1         1.9.0    3s   2022-10-14 12:38.07  
  dapr-sidecar-injector  dapr-system  False    Running  1         1.9.0    3s   2022-10-14 12:38.07  
  dapr-dashboard         dapr-system  True     Running  1         0.11.0   3s   2022-10-14 12:38.07  

./dapr init -k --runtime-version 1.8.5

⌛  Making the jump to hyperspace...
ℹ️  Note: To install Dapr using Helm, see here: https://docs.dapr.io/getting-started/install-dapr-kubernetes/#install-with-helm-advanced

ℹ️  Container images will be pulled from Docker Hub
✅  Deploying the Dapr control plane to your cluster...
✅  Success! Dapr has been installed to namespace dapr-system. To verify, run `dapr status -k' in your terminal. To get started, go here: https://aka.ms/dapr-getting-started

./dapr status -k

  NAME                   NAMESPACE    HEALTHY  STATUS   REPLICAS  VERSION  AGE  CREATED              
  dapr-sidecar-injector  dapr-system  True     Running  1         1.8.5    51s  2022-10-14 12:43.24  
  dapr-dashboard         dapr-system  True     Running  1         0.10.0   51s  2022-10-14 12:43.24  
  dapr-operator          dapr-system  True     Running  1         1.8.5    51s  2022-10-14 12:43.24  
  dapr-placement-server  dapr-system  True     Running  1         1.8.5    51s  2022-10-14 12:43.24  
  dapr-sentry            dapr-system  True     Running  1         1.8.5    51s  2022-10-14 12:43.24  

@shivamkm07
Copy link
Contributor Author

Closed by #1103

@mukundansundar mukundansundar added this to the v1.9 milestone Oct 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working P0 size/XS 2 days work triaged/resolved The issue has been triaged
Projects
None yet
Development

No branches or pull requests

3 participants