Skip to content

Conversation

@sgontla
Copy link
Collaborator

@sgontla sgontla commented Dec 22, 2025

Description

New CRD for KVStore KVService on K8s

Testing and Verification

  1. On make install New CRD is recognized:
sgontla@sgk8s:~/git/Operator/splunk-operator$ k get crds | grep enterprise
clustermanagers.enterprise.splunk.com       2025-12-22T18:07:21Z
clustermasters.enterprise.splunk.com        2025-12-22T18:07:21Z
indexerclusters.enterprise.splunk.com       2025-12-22T18:07:21Z
kvservices.enterprise.splunk.com            2025-12-22T18:54:12Z
licensemanagers.enterprise.splunk.com       2025-12-22T18:07:21Z
licensemasters.enterprise.splunk.com        2025-12-22T18:07:21Z
monitoringconsoles.enterprise.splunk.com    2025-12-22T18:07:21Z
searchheadclusters.enterprise.splunk.com    2025-12-22T18:07:21Z
standalones.enterprise.splunk.com           2025-12-22T18:07:21Z
  1. Applied the new KVService type cr, and noticed the trigger on the controller:
sgontla@sgk8s:~/specs$ cat kvservice.yaml
apiVersion: enterprise.splunk.com/v4
kind: KVService
metadata:
  name: kvservice-demo
spec: {}
  1. Operator logs on make run:
plunk.com", "controllerKind": "LicenseManager", "worker count": 15}
2025-12-22T19:39:43.781073542Z	INFO	Starting workers	{"controller": "clustermaster", "controllerGroup": "enterprise.splunk.com", "controllerKind": "ClusterMaster", "worker count": 15}
2025-12-22T19:39:43.781116953Z	INFO	Starting workers	{"controller": "licensemaster", "controllerGroup": "enterprise.splunk.com", "controllerKind": "LicenseMaster", "worker count": 15}
2025-12-22T19:39:43.781155874Z	INFO	Starting workers	{"controller": "clustermanager", "controllerGroup": "enterprise.splunk.com", "controllerKind": "ClusterManager", "worker count": 15}
2025-12-22T19:39:43.781212225Z	INFO	Starting workers	{"controller": "monitoringconsole", "controllerGroup": "enterprise.splunk.com", "controllerKind": "MonitoringConsole", "worker count": 15}
2025-12-22T19:39:43.781215265Z	INFO	Starting workers	{"controller": "indexercluster", "controllerGroup": "enterprise.splunk.com", "controllerKind": "IndexerCluster", "worker count": 15}
2025-12-22T19:39:43.781229065Z	INFO	Starting workers	{"controller": "standalone", "controllerGroup": "enterprise.splunk.com", "controllerKind": "Standalone", "worker count": 15}
2025-12-22T19:39:43.781181954Z	INFO	Starting workers	{"controller": "searchheadcluster", "controllerGroup": "enterprise.splunk.com", "controllerKind": "SearchHeadCluster", "worker count": 15}
2025-12-22T19:39:43.781219005Z	INFO	Starting workers	{"controller": "kvservice", "controllerGroup": "enterprise.splunk.com", "controllerKind": "KVService", "worker count": 15}
2025-12-22T19:39:43.781569314Z	INFO	start	{"controller": "kvservice", "controllerGroup": "enterprise.splunk.com", "controllerKind": "KVService", "KVService": {"name":"kvservice-demo","namespace":"default"}, "namespace": "default", "name": "kvservice-demo", "reconcileID": "d53eb296-0c28-47a9-8436-0568cc08513a", "kvservice": {"name":"kvservice-demo","namespace":"default"}, "CR version": "3196"}





2025-12-22T19:40:03.057024034Z	INFO	start	{"controller": "kvservice", "controllerGroup": "enterprise.splunk.com", "controllerKind": "KVService", "KVService": {"name":"kvservice-demo","namespace":"default"}, "namespace": "default", "name": "kvservice-demo", "reconcileID": "99044226-63b1-4264-96b4-57259b23f3c4", "kvservice": {"name":"kvservice-demo","namespace":"default"}, "CR version": "3322"}
  1. Tests passed on local run make tests:
........
--- PASS: TestRemoveUnwantedOwnerRefSs (0.00s)
=== RUN   TestMergePodUpdates
--- PASS: TestMergePodUpdates (0.00s)
=== RUN   TestMergeServiceSpecUpdates
--- PASS: TestMergeServiceSpecUpdates (0.00s)
=== RUN   TestSortStatefulSetSlices
--- PASS: TestSortStatefulSetSlices (0.00s)
=== RUN   TestHasProbeChanged
--- PASS: TestHasProbeChanged (0.00s)
PASS
coverage: 97.3% of statements
composite coverage: 85.9% of statements

Ginkgo ran 6 suites in 4m21.67406609s
Test Suite Passed

Related Issues

SPL-290970

PR Checklist

  • Code changes adhere to the project's coding standards.
  • Relevant unit and integration tests are included.
  • Documentation has been updated accordingly.
  • All tests pass locally.
  • The PR description follows the project's guidelines.

@sgontla sgontla marked this pull request as draft December 22, 2025 19:41
@sgontla sgontla changed the title Story spl 290970 kvservice crd 290970: Support for KVService CRD for KVService integration with SOK Dec 22, 2025
@sgontla sgontla self-assigned this Dec 22, 2025
@sgontla sgontla changed the title 290970: Support for KVService CRD for KVService integration with SOK SPL-290970: Support for KVService CRD for KVService integration with SOK Dec 23, 2025
@sgontla sgontla marked this pull request as ready for review December 23, 2025 17:41
@@ -0,0 +1,27 @@
# permissions for end users to edit kvservices.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of the RBAC updates should be added to the helm chart as well in https://github.com/splunk/splunk-operator/tree/main/helm-chart/splunk-operator/templates/rbac.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rlieberman-splunk , thanks for taking a look. KVService CR is is internally created and managed by the SOK. i.e Customer will not manage it. In that case, do we need them for helm charts?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes we do. When customers deploy via helm charts, the operator will need the RBAC configurations on those systems as well to create and manage the CRs.

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

Successfully merging this pull request may close these issues.

2 participants