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

[BUG] Error occurred(unknown field "spec.componentSpecs[0].enabledLogs) when creating cluster by applying the latest 1.0 yaml #8346

Closed
tianyue86 opened this issue Oct 29, 2024 · 1 comment
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@tianyue86
Copy link

Describe the bug

tianyue@192 kbcli % kbcli version
Kubernetes: v1.30.4-eks-a737599
KubeBlocks: 1.0.0-alpha.11
kbcli: 1.0.0-alpha.0

To Reproduce
Steps to reproduce the behavior:

  1. get the latest yaml on 1.0
tianyue@192 kbcli % helm template pgcluster02 kubeblocks-addons/postgresql-cluster --version 1.0.0-alpha.0
---
# Source: postgresql-cluster/templates/cluster.yaml
apiVersion: [apps.kubeblocks.io/v1](http://apps.kubeblocks.io/v1)
kind: Cluster
metadata:
  name: pgcluster02
  namespace: default
  labels: 
    helm.sh/chart: postgresql-cluster-1.0.0-alpha.0
    [app.kubernetes.io/version](http://app.kubernetes.io/version): "15.7.0"
    [app.kubernetes.io/instance](http://app.kubernetes.io/instance): pgcluster02
spec:
  terminationPolicy: Delete
  clusterDef: postgresql
  topology: standalone
  componentSpecs:
    - name: postgresql
      labels:        
        apps.kubeblocks.postgres.patroni/scope: pgcluster02-postgresql      
      replicas: 1
      enabledLogs:
        - running
      serviceAccountName:       
      disableExporter: true      
      resources:
        limits:
          cpu: "0.5"
          memory: "0.5Gi"
        requests:
          cpu: "0.5"
          memory: "0.5Gi"      
      volumeClaimTemplates:
        - name: data # ref clusterDefinition components.containers.volumeMounts.name
          spec:
            accessModes:
              - ReadWriteOnce
            resources:
              requests:
                storage: 20Gi
  1. create cluster by applying the yaml
  2. get error as below
tianyue@192 kbcli % k apply -f pgcnew.yaml
Error from server (BadRequest): error when creating "pgcnew.yaml": Cluster in version "v1" cannot be handled as a Cluster: strict decoding error: unknown field "spec.componentSpecs[0].enabledLogs"

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@tianyue86 tianyue86 added the kind/bug Something isn't working label Oct 29, 2024
@Y-Rookie
Copy link
Collaborator

fixed by: apecloud/kubeblocks-addons#1133

@github-actions github-actions bot added this to the Release 0.9.2 milestone Oct 29, 2024
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
Projects
None yet
Development

No branches or pull requests

3 participants