mirror of
https://github.com/agent-substrate/substrate.git
synced 2026-11-12 10:35:06 +08:00
This PR is large, I grouped changes to the following commits: -1d5d8f06: moves consumers off the CRD path: demos, ate-setup scripts and the e2e suites address templates by the actor_template ref. -e502cf60: Ate API changes: removes actor_template_namespace, actor_template_name from Actor, ActorAssignment and ActorSnapshot in the public API, drops the CRD conversion fallback. -8f6c1adb: atecontroller: removes the ActorTemplate CRD controller. Once this PR is submitted, existing demos that still uses CRD will stop working. Created https://github.com/agent-substrate/substrate/pull/1355 to update existing demos.
26 lines
1.3 KiB
Go
26 lines
1.3 KiB
Go
// Copyright 2026 Google LLC
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package controllers
|
|
|
|
// RBAC needed by atecontroller components outside this package, which
|
|
// controller-gen (paths="./...") does not scan:
|
|
// - internal/workersync's pod informer lists and watches worker pods.
|
|
// - internal/k8sresolver watches ateapi's EndpointSlices to dial it.
|
|
//
|
|
//+kubebuilder:rbac:groups=core,resources=pods,verbs=get;list;watch
|
|
//+kubebuilder:rbac:groups=discovery.k8s.io,resources=endpointslices,verbs=get;list;watch,namespace=ate-system
|
|
|
|
//go:generate bash ../../../../hack/run-tool.sh controller-gen rbac:headerFile=../../../../hack/boilerplate/sh.txt,roleName=ate-controller paths="./..." output:rbac:artifacts:config=../../../../manifests/ate-install/generated/
|