Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
146 changes: 96 additions & 50 deletions go/manifest/v2beta3/service.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions go/sdl/groupBuilder_v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ func (sdl *v2) buildGroups() error {
}
}

params.AutomountServiceAccountToken = svc.Params.AutomountServiceAccountToken

msvc.Params = params
}

Expand Down
2 changes: 2 additions & 0 deletions go/sdl/groupBuilder_v2_1.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ func (sdl *v2_1) buildGroups() error {
}
}

params.AutomountServiceAccountToken = svc.Params.AutomountServiceAccountToken

msvc.Params = params
}

Expand Down
3 changes: 2 additions & 1 deletion go/sdl/v2.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ type v2Dependency struct {
}

type v2ServiceParams struct {
Storage map[string]v2ServiceStorageParams `yaml:"storage,omitempty"`
Storage map[string]v2ServiceStorageParams `yaml:"storage,omitempty"`
AutomountServiceAccountToken bool `yaml:"automountServiceAccountToken,omitempty"`
}

type v2Service struct {
Expand Down
4 changes: 4 additions & 0 deletions proto/provider/akash/manifest/v2beta3/service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ message ServiceParams {
(gogoproto.jsontag) = "credentials,omitempty",
(gogoproto.moretags) = "yaml:\"credentials,omitempty\""
];
bool automount_service_account_token = 11 [
(gogoproto.jsontag) = "automountServiceAccountToken,omitempty",
(gogoproto.moretags) = "yaml:\"automountServiceAccountToken,omitempty\""
];
}

// Credentials to fetch image from registry
Expand Down
Loading