diff --git a/PROJECT b/PROJECT index 067456e..e20f2e4 100644 --- a/PROJECT +++ b/PROJECT @@ -2,7 +2,7 @@ # This file is used to track the info used to scaffold your project # and allow the plugins properly work. # More info: https://book.kubebuilder.io/reference/project-config.html -domain: agentops.io +domain: steadyinfra.com layout: - go.kubebuilder.io/v4 projectName: agentops-operator @@ -12,7 +12,7 @@ resources: crdVersion: v1 namespaced: true controller: true - domain: agentops.io + domain: steadyinfra.com group: agents kind: AgentService path: github.com/SteadyInfraTech/agentops-operator/api/v1alpha1 @@ -21,7 +21,7 @@ resources: crdVersion: v1 namespaced: true controller: true - domain: agentops.io + domain: steadyinfra.com group: agents kind: AgentPool path: github.com/SteadyInfraTech/agentops-operator/api/v1alpha1 @@ -30,7 +30,7 @@ resources: crdVersion: v1 namespaced: true controller: true - domain: agentops.io + domain: steadyinfra.com group: agents kind: AgentRuntime path: github.com/SteadyInfraTech/agentops-operator/api/v1alpha1 @@ -39,7 +39,7 @@ resources: crdVersion: v1 namespaced: true controller: true - domain: agentops.io + domain: steadyinfra.com group: agents kind: AgentSession path: github.com/SteadyInfraTech/agentops-operator/api/v1alpha1 diff --git a/README.md b/README.md index db0715c..9e882c0 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,15 @@ Pools and sessions sit on top of that for long-running, stateful agent workloads > Status: **MVP / `v1alpha1`**. APIs may change. +> **API group changed.** The group is `agents.steadyinfra.com` (it was `agents.agentops.io`), and the pool +> label is `agents.steadyinfra.com/pool`. This is an unreleased `v1alpha1`, so **there is no supported migration** +> and objects must not be restored from a backup: restoring would carry over server-generated metadata, status +> and finalizers that the new operators do not understand. To move a dev cluster, delete everything under the +> old group, **wait** until it is gone (so the old operators remove what they created, including Cloudflare +> resources for `ai-agent-edge-tunnel`), delete the old CRDs, uninstall the old operators, install this version, +> and write your objects again under `agents.steadyinfra.com/v1alpha1`: `AgentRuntime` first, and the pool label +> key renamed in both the `AgentService` labels and the `AgentPool` `spec.selector`. + ## Custom resources | Kind | Short | Purpose | @@ -34,11 +43,11 @@ AgentRuntime ──(runtimeRef)──▶ AgentService ──owns──▶ Deploy ### AgentService ```yaml -apiVersion: agents.agentops.io/v1alpha1 +apiVersion: agents.steadyinfra.com/v1alpha1 kind: AgentService metadata: name: support-agent - labels: { agentops.io/pool: support } + labels: { agents.steadyinfra.com/pool: support } spec: runtimeRef: { name: echo-runtime } # or: image: ghcr.io/acme/agent:1.2 model: diff --git a/api/v1alpha1/groupversion_info.go b/api/v1alpha1/groupversion_info.go index d436805..a90d59d 100644 --- a/api/v1alpha1/groupversion_info.go +++ b/api/v1alpha1/groupversion_info.go @@ -16,7 +16,7 @@ limitations under the License. // Package v1alpha1 contains API Schema definitions for the agents v1alpha1 API group. // +kubebuilder:object:generate=true -// +groupName=agents.agentops.io +// +groupName=agents.steadyinfra.com package v1alpha1 import ( @@ -26,7 +26,7 @@ import ( var ( // GroupVersion is group version used to register these objects. - GroupVersion = schema.GroupVersion{Group: "agents.agentops.io", Version: "v1alpha1"} + GroupVersion = schema.GroupVersion{Group: "agents.steadyinfra.com", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme. SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} diff --git a/cmd/main.go b/cmd/main.go index 8ed2873..f692950 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -189,7 +189,7 @@ func main() { WebhookServer: webhookServer, HealthProbeBindAddress: probeAddr, LeaderElection: enableLeaderElection, - LeaderElectionID: "c7a38d3b.agentops.io", + LeaderElectionID: "c7a38d3b.steadyinfra.com", // LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily // when the Manager ends. This requires the binary to immediately end when the // Manager is stopped, otherwise, this setting is unsafe. Setting this significantly diff --git a/config/crd/bases/agents.agentops.io_agentpools.yaml b/config/crd/bases/agents.steadyinfra.com_agentpools.yaml similarity index 99% rename from config/crd/bases/agents.agentops.io_agentpools.yaml rename to config/crd/bases/agents.steadyinfra.com_agentpools.yaml index 8a5e44a..93291d7 100644 --- a/config/crd/bases/agents.agentops.io_agentpools.yaml +++ b/config/crd/bases/agents.steadyinfra.com_agentpools.yaml @@ -4,9 +4,9 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.17.2 - name: agentpools.agents.agentops.io + name: agentpools.agents.steadyinfra.com spec: - group: agents.agentops.io + group: agents.steadyinfra.com names: kind: AgentPool listKind: AgentPoolList diff --git a/config/crd/bases/agents.agentops.io_agentruntimes.yaml b/config/crd/bases/agents.steadyinfra.com_agentruntimes.yaml similarity index 99% rename from config/crd/bases/agents.agentops.io_agentruntimes.yaml rename to config/crd/bases/agents.steadyinfra.com_agentruntimes.yaml index 82fe41f..f02da2a 100644 --- a/config/crd/bases/agents.agentops.io_agentruntimes.yaml +++ b/config/crd/bases/agents.steadyinfra.com_agentruntimes.yaml @@ -4,9 +4,9 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.17.2 - name: agentruntimes.agents.agentops.io + name: agentruntimes.agents.steadyinfra.com spec: - group: agents.agentops.io + group: agents.steadyinfra.com names: kind: AgentRuntime listKind: AgentRuntimeList diff --git a/config/crd/bases/agents.agentops.io_agentservices.yaml b/config/crd/bases/agents.steadyinfra.com_agentservices.yaml similarity index 99% rename from config/crd/bases/agents.agentops.io_agentservices.yaml rename to config/crd/bases/agents.steadyinfra.com_agentservices.yaml index de49eb1..9690ebb 100644 --- a/config/crd/bases/agents.agentops.io_agentservices.yaml +++ b/config/crd/bases/agents.steadyinfra.com_agentservices.yaml @@ -4,9 +4,9 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.17.2 - name: agentservices.agents.agentops.io + name: agentservices.agents.steadyinfra.com spec: - group: agents.agentops.io + group: agents.steadyinfra.com names: kind: AgentService listKind: AgentServiceList diff --git a/config/crd/bases/agents.agentops.io_agentsessions.yaml b/config/crd/bases/agents.steadyinfra.com_agentsessions.yaml similarity index 99% rename from config/crd/bases/agents.agentops.io_agentsessions.yaml rename to config/crd/bases/agents.steadyinfra.com_agentsessions.yaml index 6bb2281..f9f5046 100644 --- a/config/crd/bases/agents.agentops.io_agentsessions.yaml +++ b/config/crd/bases/agents.steadyinfra.com_agentsessions.yaml @@ -4,9 +4,9 @@ kind: CustomResourceDefinition metadata: annotations: controller-gen.kubebuilder.io/version: v0.17.2 - name: agentsessions.agents.agentops.io + name: agentsessions.agents.steadyinfra.com spec: - group: agents.agentops.io + group: agents.steadyinfra.com names: kind: AgentSession listKind: AgentSessionList diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index 2999076..5b7601b 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -2,10 +2,10 @@ # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default resources: -- bases/agents.agentops.io_agentservices.yaml -- bases/agents.agentops.io_agentpools.yaml -- bases/agents.agentops.io_agentruntimes.yaml -- bases/agents.agentops.io_agentsessions.yaml +- bases/agents.steadyinfra.com_agentservices.yaml +- bases/agents.steadyinfra.com_agentpools.yaml +- bases/agents.steadyinfra.com_agentruntimes.yaml +- bases/agents.steadyinfra.com_agentsessions.yaml # +kubebuilder:scaffold:crdkustomizeresource patches: diff --git a/config/rbac/agentpool_admin_role.yaml b/config/rbac/agentpool_admin_role.yaml index 5a28917..16be611 100644 --- a/config/rbac/agentpool_admin_role.yaml +++ b/config/rbac/agentpool_admin_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants full permissions ('*') over agents.agentops.io. +# Grants full permissions ('*') over agents.steadyinfra.com. # This role is intended for users authorized to modify roles and bindings within the cluster, # enabling them to delegate specific permissions to other users or groups as needed. @@ -14,13 +14,13 @@ metadata: name: agentpool-admin-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentpools verbs: - '*' - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentpools/status verbs: diff --git a/config/rbac/agentpool_editor_role.yaml b/config/rbac/agentpool_editor_role.yaml index 07c6ecb..9a8dd04 100644 --- a/config/rbac/agentpool_editor_role.yaml +++ b/config/rbac/agentpool_editor_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants permissions to create, update, and delete resources within the agents.agentops.io. +# Grants permissions to create, update, and delete resources within the agents.steadyinfra.com. # This role is intended for users who need to manage these resources # but should not control RBAC or manage permissions for others. @@ -14,7 +14,7 @@ metadata: name: agentpool-editor-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentpools verbs: @@ -26,7 +26,7 @@ rules: - update - watch - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentpools/status verbs: diff --git a/config/rbac/agentpool_viewer_role.yaml b/config/rbac/agentpool_viewer_role.yaml index d4732ad..ed0146a 100644 --- a/config/rbac/agentpool_viewer_role.yaml +++ b/config/rbac/agentpool_viewer_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants read-only access to agents.agentops.io resources. +# Grants read-only access to agents.steadyinfra.com resources. # This role is intended for users who need visibility into these resources # without permissions to modify them. It is ideal for monitoring purposes and limited-access viewing. @@ -14,7 +14,7 @@ metadata: name: agentpool-viewer-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentpools verbs: @@ -22,7 +22,7 @@ rules: - list - watch - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentpools/status verbs: diff --git a/config/rbac/agentruntime_admin_role.yaml b/config/rbac/agentruntime_admin_role.yaml index 7dd21b4..e403443 100644 --- a/config/rbac/agentruntime_admin_role.yaml +++ b/config/rbac/agentruntime_admin_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants full permissions ('*') over agents.agentops.io. +# Grants full permissions ('*') over agents.steadyinfra.com. # This role is intended for users authorized to modify roles and bindings within the cluster, # enabling them to delegate specific permissions to other users or groups as needed. @@ -14,13 +14,13 @@ metadata: name: agentruntime-admin-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentruntimes verbs: - '*' - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentruntimes/status verbs: diff --git a/config/rbac/agentruntime_editor_role.yaml b/config/rbac/agentruntime_editor_role.yaml index c0e8239..4aa52bd 100644 --- a/config/rbac/agentruntime_editor_role.yaml +++ b/config/rbac/agentruntime_editor_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants permissions to create, update, and delete resources within the agents.agentops.io. +# Grants permissions to create, update, and delete resources within the agents.steadyinfra.com. # This role is intended for users who need to manage these resources # but should not control RBAC or manage permissions for others. @@ -14,7 +14,7 @@ metadata: name: agentruntime-editor-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentruntimes verbs: @@ -26,7 +26,7 @@ rules: - update - watch - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentruntimes/status verbs: diff --git a/config/rbac/agentruntime_viewer_role.yaml b/config/rbac/agentruntime_viewer_role.yaml index 1fce520..5b021fd 100644 --- a/config/rbac/agentruntime_viewer_role.yaml +++ b/config/rbac/agentruntime_viewer_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants read-only access to agents.agentops.io resources. +# Grants read-only access to agents.steadyinfra.com resources. # This role is intended for users who need visibility into these resources # without permissions to modify them. It is ideal for monitoring purposes and limited-access viewing. @@ -14,7 +14,7 @@ metadata: name: agentruntime-viewer-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentruntimes verbs: @@ -22,7 +22,7 @@ rules: - list - watch - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentruntimes/status verbs: diff --git a/config/rbac/agentservice_admin_role.yaml b/config/rbac/agentservice_admin_role.yaml index 8070e01..7e5b5e4 100644 --- a/config/rbac/agentservice_admin_role.yaml +++ b/config/rbac/agentservice_admin_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants full permissions ('*') over agents.agentops.io. +# Grants full permissions ('*') over agents.steadyinfra.com. # This role is intended for users authorized to modify roles and bindings within the cluster, # enabling them to delegate specific permissions to other users or groups as needed. @@ -14,13 +14,13 @@ metadata: name: agentservice-admin-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentservices verbs: - '*' - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentservices/status verbs: diff --git a/config/rbac/agentservice_editor_role.yaml b/config/rbac/agentservice_editor_role.yaml index 5525279..747e00c 100644 --- a/config/rbac/agentservice_editor_role.yaml +++ b/config/rbac/agentservice_editor_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants permissions to create, update, and delete resources within the agents.agentops.io. +# Grants permissions to create, update, and delete resources within the agents.steadyinfra.com. # This role is intended for users who need to manage these resources # but should not control RBAC or manage permissions for others. @@ -14,7 +14,7 @@ metadata: name: agentservice-editor-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentservices verbs: @@ -26,7 +26,7 @@ rules: - update - watch - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentservices/status verbs: diff --git a/config/rbac/agentservice_viewer_role.yaml b/config/rbac/agentservice_viewer_role.yaml index e0b2421..62dae3e 100644 --- a/config/rbac/agentservice_viewer_role.yaml +++ b/config/rbac/agentservice_viewer_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants read-only access to agents.agentops.io resources. +# Grants read-only access to agents.steadyinfra.com resources. # This role is intended for users who need visibility into these resources # without permissions to modify them. It is ideal for monitoring purposes and limited-access viewing. @@ -14,7 +14,7 @@ metadata: name: agentservice-viewer-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentservices verbs: @@ -22,7 +22,7 @@ rules: - list - watch - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentservices/status verbs: diff --git a/config/rbac/agentsession_admin_role.yaml b/config/rbac/agentsession_admin_role.yaml index c096326..11783bd 100644 --- a/config/rbac/agentsession_admin_role.yaml +++ b/config/rbac/agentsession_admin_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants full permissions ('*') over agents.agentops.io. +# Grants full permissions ('*') over agents.steadyinfra.com. # This role is intended for users authorized to modify roles and bindings within the cluster, # enabling them to delegate specific permissions to other users or groups as needed. @@ -14,13 +14,13 @@ metadata: name: agentsession-admin-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentsessions verbs: - '*' - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentsessions/status verbs: diff --git a/config/rbac/agentsession_editor_role.yaml b/config/rbac/agentsession_editor_role.yaml index 9ce1d65..6856e4e 100644 --- a/config/rbac/agentsession_editor_role.yaml +++ b/config/rbac/agentsession_editor_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants permissions to create, update, and delete resources within the agents.agentops.io. +# Grants permissions to create, update, and delete resources within the agents.steadyinfra.com. # This role is intended for users who need to manage these resources # but should not control RBAC or manage permissions for others. @@ -14,7 +14,7 @@ metadata: name: agentsession-editor-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentsessions verbs: @@ -26,7 +26,7 @@ rules: - update - watch - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentsessions/status verbs: diff --git a/config/rbac/agentsession_viewer_role.yaml b/config/rbac/agentsession_viewer_role.yaml index f5ba28d..cb972d7 100644 --- a/config/rbac/agentsession_viewer_role.yaml +++ b/config/rbac/agentsession_viewer_role.yaml @@ -1,7 +1,7 @@ # This rule is not used by the project agentops-operator itself. # It is provided to allow the cluster admin to help manage permissions for users. # -# Grants read-only access to agents.agentops.io resources. +# Grants read-only access to agents.steadyinfra.com resources. # This role is intended for users who need visibility into these resources # without permissions to modify them. It is ideal for monitoring purposes and limited-access viewing. @@ -14,7 +14,7 @@ metadata: name: agentsession-viewer-role rules: - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentsessions verbs: @@ -22,7 +22,7 @@ rules: - list - watch - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentsessions/status verbs: diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 1db249a..afceef7 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -24,7 +24,7 @@ rules: - update - watch - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentpools - agentruntimes @@ -39,7 +39,7 @@ rules: - update - watch - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentpools/finalizers - agentruntimes/finalizers @@ -48,7 +48,7 @@ rules: verbs: - update - apiGroups: - - agents.agentops.io + - agents.steadyinfra.com resources: - agentpools/status - agentruntimes/status diff --git a/config/samples/agents_v1alpha1_agentpool.yaml b/config/samples/agents_v1alpha1_agentpool.yaml index 4e7734d..cd59b2c 100644 --- a/config/samples/agents_v1alpha1_agentpool.yaml +++ b/config/samples/agents_v1alpha1_agentpool.yaml @@ -1,4 +1,4 @@ -apiVersion: agents.agentops.io/v1alpha1 +apiVersion: agents.steadyinfra.com/v1alpha1 kind: AgentPool metadata: name: support @@ -7,5 +7,5 @@ metadata: spec: selector: matchLabels: - agentops.io/pool: support + agents.steadyinfra.com/pool: support maxSessionsPerReplica: 10 diff --git a/config/samples/agents_v1alpha1_agentruntime.yaml b/config/samples/agents_v1alpha1_agentruntime.yaml index 3593575..56ad14d 100644 --- a/config/samples/agents_v1alpha1_agentruntime.yaml +++ b/config/samples/agents_v1alpha1_agentruntime.yaml @@ -1,4 +1,4 @@ -apiVersion: agents.agentops.io/v1alpha1 +apiVersion: agents.steadyinfra.com/v1alpha1 kind: AgentRuntime metadata: name: echo-runtime diff --git a/config/samples/agents_v1alpha1_agentservice.yaml b/config/samples/agents_v1alpha1_agentservice.yaml index 8de7950..7be53f8 100644 --- a/config/samples/agents_v1alpha1_agentservice.yaml +++ b/config/samples/agents_v1alpha1_agentservice.yaml @@ -8,13 +8,13 @@ type: Opaque stringData: apiKey: replace-me --- -apiVersion: agents.agentops.io/v1alpha1 +apiVersion: agents.steadyinfra.com/v1alpha1 kind: AgentService metadata: name: support-agent labels: app.kubernetes.io/name: agentops-operator - agentops.io/pool: support + agents.steadyinfra.com/pool: support spec: runtimeRef: name: echo-runtime @@ -32,13 +32,13 @@ spec: maxReplicas: 5 targetCPUUtilizationPercentage: 70 --- -apiVersion: agents.agentops.io/v1alpha1 +apiVersion: agents.steadyinfra.com/v1alpha1 kind: AgentService metadata: name: billing-agent labels: app.kubernetes.io/name: agentops-operator - agentops.io/pool: support + agents.steadyinfra.com/pool: support spec: runtimeRef: name: echo-runtime diff --git a/config/samples/agents_v1alpha1_agentsession.yaml b/config/samples/agents_v1alpha1_agentsession.yaml index 382cb32..7895c93 100644 --- a/config/samples/agents_v1alpha1_agentsession.yaml +++ b/config/samples/agents_v1alpha1_agentsession.yaml @@ -1,4 +1,4 @@ -apiVersion: agents.agentops.io/v1alpha1 +apiVersion: agents.steadyinfra.com/v1alpha1 kind: AgentSession metadata: name: session-user-42 diff --git a/internal/controller/agentpool_controller.go b/internal/controller/agentpool_controller.go index 1e297c9..b36b72b 100644 --- a/internal/controller/agentpool_controller.go +++ b/internal/controller/agentpool_controller.go @@ -43,11 +43,11 @@ type AgentPoolReconciler struct { Scheme *runtime.Scheme } -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentpools,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentpools/status,verbs=get;update;patch -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentpools/finalizers,verbs=update -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentservices,verbs=get;list;watch -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentsessions,verbs=get;list;watch +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentpools,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentpools/status,verbs=get;update;patch +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentpools/finalizers,verbs=update +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentservices,verbs=get;list;watch +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentsessions,verbs=get;list;watch func (r *AgentPoolReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { pool := &agentsv1alpha1.AgentPool{} diff --git a/internal/controller/agentruntime_controller.go b/internal/controller/agentruntime_controller.go index 85d2880..edead09 100644 --- a/internal/controller/agentruntime_controller.go +++ b/internal/controller/agentruntime_controller.go @@ -42,9 +42,9 @@ type AgentRuntimeReconciler struct { Scheme *runtime.Scheme } -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentruntimes,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentruntimes/status,verbs=get;update;patch -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentruntimes/finalizers,verbs=update +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentruntimes,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentruntimes/status,verbs=get;update;patch +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentruntimes/finalizers,verbs=update func (r *AgentRuntimeReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { rt := &agentsv1alpha1.AgentRuntime{} diff --git a/internal/controller/agentservice_controller.go b/internal/controller/agentservice_controller.go index 46306f2..0f40e9d 100644 --- a/internal/controller/agentservice_controller.go +++ b/internal/controller/agentservice_controller.go @@ -64,11 +64,11 @@ type AgentServiceReconciler struct { // deploymentKind is the kind of the workload an HPA must target to scale an agent. const deploymentKind = "Deployment" -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentservices,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentservices/status,verbs=get;update;patch -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentservices/finalizers,verbs=update -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentruntimes,verbs=get;list;watch -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentsessions,verbs=get;list;watch +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentservices,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentservices/status,verbs=get;update;patch +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentservices/finalizers,verbs=update +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentruntimes,verbs=get;list;watch +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentsessions,verbs=get;list;watch // +kubebuilder:rbac:groups=apps,resources=deployments,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups="",resources=services,verbs=get;list;watch;create;update;patch;delete // +kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers,verbs=get;list;watch;create;update;patch;delete diff --git a/internal/controller/agentsession_controller.go b/internal/controller/agentsession_controller.go index de5cf3b..6a61ca5 100644 --- a/internal/controller/agentsession_controller.go +++ b/internal/controller/agentsession_controller.go @@ -60,11 +60,11 @@ type AgentSessionReconciler struct { Now func() time.Time } -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentsessions,verbs=get;list;watch;create;update;patch;delete -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentsessions/status,verbs=get;update;patch -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentsessions/finalizers,verbs=update -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentservices,verbs=get;list;watch -// +kubebuilder:rbac:groups=agents.agentops.io,resources=agentpools,verbs=get;list;watch +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentsessions,verbs=get;list;watch;create;update;patch;delete +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentsessions/status,verbs=get;update;patch +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentsessions/finalizers,verbs=update +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentservices,verbs=get;list;watch +// +kubebuilder:rbac:groups=agents.steadyinfra.com,resources=agentpools,verbs=get;list;watch func (r *AgentSessionReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) { sess := &agentsv1alpha1.AgentSession{}