Skip to content
This repository has been archived by the owner on Jun 28, 2023. It is now read-only.

Commit

Permalink
Introduce package detection (#2311)
Browse files Browse the repository at this point in the history
This looks up available packages to determine whether the CNI can be
resolved from a version and fqName perspective.
  • Loading branch information
joshrosso authored Oct 21, 2021
1 parent da19b33 commit 06cac78
Show file tree
Hide file tree
Showing 6 changed files with 279 additions and 70 deletions.
11 changes: 0 additions & 11 deletions cli/cmd/plugin/standalone-cluster/cluster/kind.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ nodes:
#! optional: set the protocol to one of TCP, UDP, SCTP.
#! TCP is the default
protocol: TCP
- role: worker
- role: worker
networking:
disableDefaultCNI: true`

Expand All @@ -41,15 +39,6 @@ func (kcm KindClusterManager) Create(opts *CreateOpts) (*KubernetesCluster, erro
clusterConfig := kindCluster.CreateWithKubeconfigPath(opts.KubeconfigPath)

// TODO(stmcginnis): Determine what we need to do for kind configuration
// generates the kind configuration -- TODO(joshrosso): should not exec ytt; use go lib
// command := exec.Command("ytt",
// "-f",
// "cli/cmd/plugin/standalone-cluster/hack/kind-config")
// parsedKindConfig, err := command.Output()
// if err != nil {
// fmt.Println(err.Error())
// return err
// }
parsedKindConfig := []byte(defaultKindConfig)
kindConfig := kindCluster.CreateWithRawConfig(parsedKindConfig)
err := kindProvider.Create(opts.Name, clusterConfig, kindConfig)
Expand Down
27 changes: 7 additions & 20 deletions cli/cmd/plugin/standalone-cluster/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,20 @@ module github.com/vmware-tanzu/community-edition/cli/cmd/plugin/standalone-clust
go 1.16

require (
github.com/cppforlife/go-cli-ui v0.0.0-20200506005011-4268990983cc
github.com/cppforlife/go-cli-ui v0.0.0-20200716203538-1e47f820817f
github.com/ghodss/yaml v1.0.0
github.com/k14s/imgpkg v0.6.0
github.com/k14s/ytt v0.37.0
github.com/spf13/cobra v1.2.1
github.com/vmware-tanzu/carvel-kapp-controller v0.20.0-rc.1
github.com/vmware-tanzu/carvel-vendir v0.19.0
github.com/vmware-tanzu/carvel-kapp-controller v0.28.0
github.com/vmware-tanzu/carvel-vendir v0.23.0
github.com/vmware-tanzu/tanzu-framework v1.4.0-pre-alpha-2.0.20210915174701-14fe0fdf4f0b
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
k8s.io/api v0.21.2
k8s.io/api v0.22.2
k8s.io/apiextensions-apiserver v0.21.2
k8s.io/apimachinery v0.21.2
k8s.io/client-go v1.5.2
k8s.io/klog/v2 v2.8.0
k8s.io/apimachinery v0.22.2
k8s.io/client-go v0.22.2
k8s.io/klog/v2 v2.9.0
k8s.io/kube-aggregator v0.19.2
sigs.k8s.io/kind v0.11.1
)

replace (
github.com/googleapis/gnostic => github.com/googleapis/gnostic v0.3.1 // indirect

k8s.io/api => k8s.io/api v0.17.11
k8s.io/apimachinery => k8s.io/apimachinery v0.17.11
k8s.io/client-go => k8s.io/client-go v0.17.11
k8s.io/kube-openapi => k8s.io/kube-openapi v0.0.0-20200410145947-bcb3869e6f29

sigs.k8s.io/cluster-api => github.com/vmware-tanzu/cluster-api v0.3.23-0.20210722162135-d31e78c28159
sigs.k8s.io/controller-runtime => sigs.k8s.io/controller-runtime v0.5.14
sigs.k8s.io/kind => sigs.k8s.io/kind v0.11.1
)
Loading

0 comments on commit 06cac78

Please sign in to comment.