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

spec.kthreesConfigSpec.serverConfig.disableCloudController decoding error #143

Open
VestigeJ opened this issue Oct 1, 2024 · 1 comment

Comments

@VestigeJ
Copy link

VestigeJ commented Oct 1, 2024

$ k apply -f k3s-cluster.yaml

awsmachinetemplate.infrastructure.cluster.x-k8s.io/justjustin-md-0 unchanged
awsmachinetemplate.infrastructure.cluster.x-k8s.io/justjustin-control-plane unchanged
cluster.cluster.x-k8s.io/justjustin unchanged
awscluster.infrastructure.cluster.x-k8s.io/justjustin configured
machinedeployment.cluster.x-k8s.io/justjustin-md-0 unchanged
kthreesconfigtemplate.bootstrap.cluster.x-k8s.io/justjustin-md-0 unchanged
Error from server (BadRequest): error when creating "k3s-cluster.yaml": KThreesControlPlane in version "v1beta1" cannot be handled as a KThreesControlPlane: strict decoding error: unknown field "spec.kthreesConfigSpec.serverConfig.disableCloudController"

$ ke kthreescontrolplane.spec.kthreesConfigSpec.serverConfig.disableCloudController

GROUP:      controlplane.cluster.x-k8s.io
KIND:       KThreesControlPlane
VERSION:    v1beta2

FIELD: disableCloudController <boolean>


DESCRIPTION:
    DisableCloudController disables k3s default cloud controller manager.
    (default: true)

$ cat k3s-cluster.yaml

---
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: KThreesControlPlane
metadata:
  name: just-a-control-plane
  namespace: aws
spec:
  infrastructureTemplate:
    apiVersion: infrastructure.cluster.x-k8s.io/v1beta2
    kind: AWSMachineTemplate
    name: just-a-control-plane
  kthreesConfigSpec:
    agentConfig:
      nodeName: "{{ ds.meta_data.local_hostname }}"
    serverConfig:
      disableCloudController: false
  replicas: 1
  version: v1.31.1+k3s1
---
@nasusoba
Copy link
Contributor

nasusoba commented Oct 29, 2024

We do not have disableCloudController for v1beta1, please try v1beta2 instead

apiVersion: controlplane.cluster.x-k8s.io/v1beta1 ----> v1beta2
kind: KThreesControlPlane

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants