Skip to content

Conversation

@jay-hankins
Copy link

This pull request adds support for discovering and monitoring changes to Argo Rollout resources in a cluster.

It adds an argoRollout type to the K8S Client wrapper:

  • Underneath, it adds RolloutLister, RolloutNamespaceLister, making use of cache.Indexer to support the major use cases, to List() and get Rollouts().
  • We add top-level methods to Client to retrieve Rollouts.

Note that we hand-rolled the types to avoid bringing in a dependency on argoprojv1. This also means that we are using a dynamic client for Kubernetes, which uses type unstructured.Unstructred{} to support any generic kind of CRD.

We also add permissions:

  • in _permissions.tpl to get/list/watch aroproj.io rollouts
  • in permissions.go, to mark the resource permission as required (with graceful failure)

It adds testutil/dynamic_client.go to support creating a dynamic test-double (adding Argo Rollout and RolloutList to the schema). Because the wrapper Client is now using both a clientset (static types) and a dynamic client, the faked dynamic client is used by existing tests (e.g. container, daemonset, ..., etc.) even where they do not test Rollout functionality.

@joshiste joshiste requested review from ReuDa and joshiste August 28, 2025 06:47
{{- end }}
- name: STEADYBIT_EXTENSION_DISCOVERY_MAX_POD_COUNT
value: "{{ .Values.discovery.maxPodCount }}"
{{- if .Values.discovery.disableArgoRollouts }}
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a test to charts/steadybit-extension-kubernetes/tests/deployment_test.yaml -> manifest should match snapshot with disabled discoveries

@jay-hankins jay-hankins force-pushed the add-argo-rollouts-discovery branch 3 times, most recently from 407744f to 8c3f4e0 Compare December 23, 2025 17:33
@jay-hankins jay-hankins force-pushed the add-argo-rollouts-discovery branch from caa5222 to 49c1bb0 Compare December 23, 2025 19:32
@jay-hankins jay-hankins force-pushed the add-argo-rollouts-discovery branch from 49c1bb0 to f38fc75 Compare December 23, 2025 19:36
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