Skip to content

Commit ef4ff52

Browse files
Add scheduling configuration support
1 parent 808806d commit ef4ff52

66 files changed

Lines changed: 1179 additions & 2444 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.agents/skills/review-crds/SKILL.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

.agents/skills/review-crds/references/api-conventions.md

Lines changed: 0 additions & 2233 deletions
This file was deleted.

.golangci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ linters:
100100
# json.Encoder.Encode in HTTP-handler write paths is fire-and-forget.
101101
- linters: [errcheck]
102102
text: 'Error return value of `\(\*encoding/json\.Encoder\)\.Encode` is not checked'
103+
# ST1019: duplicate import aliases in extproc_out.go are pending a
104+
# separate cleanup that will collide with an in-flight PR; suppress
105+
# in this file for now.
106+
- path: '^cmd/atenet/internal/app/router/extproc_out\.go$'
107+
linters: [staticcheck]
108+
text: '^ST1019'
103109

104110
issues:
105111
max-issues-per-linter: 0

cmd/ateapi/internal/sessionidentity/sessionidentity.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ import (
2727
"strings"
2828
"time"
2929

30-
"github.com/agent-substrate/substrate/cmd/ateapi/internal/k8sjwt"
31-
"github.com/agent-substrate/substrate/cmd/ateapi/internal/sessionidjwt"
30+
"github.com/agent-substrate/substrate/internal/k8sjwt"
3231
"github.com/agent-substrate/substrate/internal/localca"
3332
"github.com/agent-substrate/substrate/internal/localjwtauthority"
33+
"github.com/agent-substrate/substrate/internal/sessionidjwt"
3434
"github.com/agent-substrate/substrate/pkg/proto/ateapipb"
3535
"google.golang.org/grpc/codes"
3636
"google.golang.org/grpc/credentials"

cmd/ateapi/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import (
2525
"time"
2626

2727
"github.com/agent-substrate/substrate/cmd/ateapi/internal/controlapi"
28-
"github.com/agent-substrate/substrate/cmd/ateapi/internal/credbundle"
2928
"github.com/agent-substrate/substrate/cmd/ateapi/internal/sessionidentity"
3029
"github.com/agent-substrate/substrate/cmd/ateapi/internal/store/ateredis"
3130
"github.com/agent-substrate/substrate/internal/ateinterceptors"
31+
"github.com/agent-substrate/substrate/internal/credbundle"
3232
"github.com/agent-substrate/substrate/internal/serverboot"
3333
"github.com/agent-substrate/substrate/internal/version"
3434
"github.com/agent-substrate/substrate/pkg/client/clientset/versioned"

cmd/atecontroller/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"crypto/tls"
1818
"os"
1919

20-
"github.com/agent-substrate/substrate/cmd/atecontroller/internal/controllers"
20+
"github.com/agent-substrate/substrate/internal/controllers"
2121
clientv1alpha1 "github.com/agent-substrate/substrate/pkg/api/v1alpha1"
2222
"github.com/agent-substrate/substrate/pkg/proto/ateapipb"
2323
"github.com/spf13/pflag"

cmd/atelet/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ import (
3131

3232
"cloud.google.com/go/storage"
3333
"github.com/agent-substrate/substrate/cmd/atelet/internal/ategcs"
34-
"github.com/agent-substrate/substrate/cmd/atelet/internal/memorypullcache"
3534
"github.com/agent-substrate/substrate/internal/ateinterceptors"
3635
"github.com/agent-substrate/substrate/internal/ateompath"
36+
"github.com/agent-substrate/substrate/internal/memorypullcache"
3737
"github.com/agent-substrate/substrate/internal/proto/ateletpb"
3838
"github.com/agent-substrate/substrate/internal/proto/ateompb"
3939
"github.com/agent-substrate/substrate/internal/resources"

cmd/atelet/oci.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ import (
2727
"path/filepath"
2828
"strings"
2929

30-
"github.com/agent-substrate/substrate/cmd/atelet/internal/memorypullcache"
3130
"github.com/agent-substrate/substrate/internal/ateompath"
31+
"github.com/agent-substrate/substrate/internal/memorypullcache"
3232
"github.com/opencontainers/runtime-spec/specs-go"
3333
"go.opentelemetry.io/otel"
3434
"go.opentelemetry.io/otel/attribute"
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package internal
15+
package dns
1616

1717
import (
1818
"context"
@@ -24,12 +24,11 @@ import (
2424
"syscall"
2525
"time"
2626

27+
"github.com/agent-substrate/substrate/internal/dns"
2728
"github.com/spf13/cobra"
2829
"k8s.io/client-go/tools/clientcmd"
2930
"sigs.k8s.io/controller-runtime/pkg/client"
3031
"sigs.k8s.io/controller-runtime/pkg/client/config"
31-
32-
"github.com/agent-substrate/substrate/cmd/atenet/internal/dns"
3332
)
3433

3534
type DnsConfig struct {
@@ -39,7 +38,7 @@ type DnsConfig struct {
3938
CorefilePath string
4039
}
4140

42-
func NewDnsCmd() *cobra.Command {
41+
func NewCmd() *cobra.Command {
4342
var cfg DnsConfig
4443

4544
cmd := &cobra.Command{
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
package internal
15+
package app
1616

1717
import (
1818
"fmt"
1919
"os"
2020

21+
"github.com/agent-substrate/substrate/cmd/atenet/internal/app/dns"
22+
"github.com/agent-substrate/substrate/cmd/atenet/internal/app/router"
2123
"github.com/agent-substrate/substrate/internal/version"
2224
"github.com/spf13/cobra"
2325
)
@@ -37,6 +39,6 @@ func Execute() {
3739
}
3840

3941
func init() {
40-
rootCmd.AddCommand(NewRouterCmd())
41-
rootCmd.AddCommand(NewDnsCmd())
42+
rootCmd.AddCommand(router.NewCmd())
43+
rootCmd.AddCommand(dns.NewCmd())
4244
}

0 commit comments

Comments
 (0)