confluentinc / confluentinc/confluent-kubernetes-examples

"dataVolumeCapacity" provided for kraftcontroller, but getting error "StatefulSet.apps \"kraftcontroller\" is invalid: spec.volumeClaimTemplates[0].spec.resources[storage]: Required value"

Open
#397 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
Shell
Stars
72
Forks
201
Avg merge
10h 2m
Merged PRs (30d)
2

Description

Dear Confluent team,

Here is the manifest.

```
apiVersion: platform.confluent.io/v1beta1
kind: KRaftController
metadata:
name: kraftcontroller
namespace: confluent
spec:
dataVolumeCapacity: 2Gi
storageClass:
name: local-storage-class
image:
application: confluentinc/cp-server:8.0.0
init: confluentinc/confluent-init-container:3.0.0
listeners:
controller:
tls:
enabled: true
authentication:
type: oauth
jaasConfig:
secretRef: oauth
oauthSettings:
tokenEndpointUri: http://keycloak:8080/realms/pexa/protocol/openid-connect/token
expectedIssuer: http://keycloak:8080/realms/pexa
jwksEndpointUri: http://keycloak:8080/realms/pexa/protocol/openid-connect/certs
subClaimName: client_id
authorization:
type: rbac
superUsers:
- User:pexa # required: default user corresponding to replication listener in kafka, ow will get topic authorization error
- User:kafka
- User:ssologin
dependencies:
mdsKafkaCluster:
bootstrapEndpoint: kafka.confluent.svc.cluster.local:9073
authentication:
type: oauth
jaasConfig:
secretRef: oauth
oauthSettings:
tokenEndpointUri: http://keycloak:8080/realms/pexa/protocol/openid-connect/token
tls:
enabled: true
tls:
autoGeneratedCerts: true
replicas: 1
---
apiVersion: platform.confluent.io/v1beta1
kind: Kafka
metadata:
name: kafka
namespace: confluent
spec:
replicas: 1
image:
application: confluentinc/cp-server:8.0.0
init: confluentinc/confluent-init-container:3.0.0
dataVolumeCapacity: 10Gi
storageClass:
name: local-storage-class
tls:
autoGeneratedCerts: true
listeners:
internal:
authentication:
type: plain
jaasConfig:
secretRef: credential
tls:
enabled: true
authorization:
type: rbac
superUsers:
- User:ssologin
- User:kafka
services:
mds:
tls:
enabled: true
tokenKeyPair:
secretRef: mds-token
provider:
oauth:
configurations:
expectedIssuer: http://keycloak:8080/realms/pexa
jwksEndpointUri: http://keycloak:8080/realms/pexa/protocol/openid-connect/certs
subClaimName: client_id
dependencies:
kRaftController:
controllerListener:
tls:
enabled: true
authentication:
type: oauth
jaasConfig:
secretRef: oauth
oauthSettings:
tokenEndpointUri: http://keycloak:8080/realms/pexa/protocol/openid-connect/token
clusterRef:
name: kraftcontroller
kafkaRest:
authentication:
type: oauth
jaasConfig:
secretRef: oauth
oauthSettings:
tokenEndpointUri: http://keycloak:8080/realms/pexa/protocol/openid-connect/token
expectedIssuer: http://keycloak:8080/realms/pexa
jwksEndpointUri: http://keycloak:8080/realms/pexa/protocol/openid-connect/certs
subClaimName: client_id
---
```

directly copied from example, and only added storage class.
in operator see the below error - getting error "StatefulSet.apps \"kraftcontroller\" is invalid: spec.volumeClaimTemplates[0].spec.resources[storage]: Required value".

Please advise.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by applying the supplied KRaftController manifest and inspecting the generated StatefulSet, focusing on how dataVolumeCapacity and storageClass are translated into volumeClaimTemplates. Compare the KRaftController example with the reported validation error; done means identifying whether the example or operator handling omits the storage quantity and recording the confirmed correction.

Written by the indexing model from the issue text.

Assessment

Tech stack
kubernetes
Domain
infrastructure
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.