[ICN-418] Generate kubeconfigs for logical cloud Created: 29/Jul/20  Updated: 17/Dec/20  Resolved: 07/Aug/20

Status: Done
Project: Integrated Cloud Native NFV
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Story Priority: Medium
Reporter: Igor Duarte Cardoso Assignee: Igor Duarte Cardoso
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: DCM dev works
Sprint: ICN Sprint 23
Story Points: 3

 Comments   
Comment by Igor Duarte Cardoso [ 07/Aug/20 ]

New patchset for DCM patch: https://gerrit.onap.org/r/c/multicloud/k8s/+/110641/7

 

With this patchset, I am closing this story.

Kubeconfig will only be fully-done once signed user cert can be obtained from cluster/rsync. However, once it can be obtained, the change to the kubeconfig generation method will be trivial and thus I don't need this story to track it anymore. Story ICN-421 will track the completion of the user access to the logical cloud via a fully-generated kubeconfig.

Comment by Igor Duarte Cardoso [ 07/Aug/20 ]

New patchset for DCM patch submitted: https://gerrit.onap.org/r/c/multicloud/k8s/+/110641/6

 

This new patchset address point 1 and part of point 4 above.

Comment by Igor Duarte Cardoso [ 06/Aug/20 ]

For /kubeconfig endpoint implementation in DCM cluster reference:

 

  • Read logical cloud user private key (reads from LogicalCloudKey)
  • Read each LC/cluster's  signed cert (reads from ClusterKey)
  • Read each cluster's CA cert and IP address (still unclear where or when it comes from, but this data is known by CLM)
  • Build YAML kubeconfig based on all 1+N+2N elements above and other data like context and namespace name
Comment by Igor Duarte Cardoso [ 06/Aug/20 ]

This task actually encompasses the following tasks:

  • Generate kubeconfigs for logical cloud
    • Call CLM to obtain cluster-specific data (CA cert)
  • Create API to obtain kubeconfig
Generated at Sat Feb 10 05:59:47 UTC 2024 using Jira 9.4.5#940005-sha1:e3094934eac4fd8653cf39da58f39364fb9cc7c1.