Skip to content

Commit

Permalink
Continue Renaming "Armada" to "Server" (#3975)
Browse files Browse the repository at this point in the history
* Rename armada to server

Signed-off-by: Chris Martin <[email protected]>

* Reemove postgresPulsarMigration.run.xml

Signed-off-by: Chris Martin <[email protected]>

* Fix postgres migration

Signed-off-by: Chris Martin <[email protected]>

* Fix goreleaser

Signed-off-by: Chris Martin <[email protected]>

* Fix goreleaser

Signed-off-by: Chris Martin <[email protected]>

* Fix goreleaser

Signed-off-by: Chris Martin <[email protected]>

---------

Signed-off-by: Chris Martin <[email protected]>
  • Loading branch information
d80tb7 authored Sep 30, 2024
1 parent 5910a4b commit 6fbaa59
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ builds:
- env: [CGO_ENABLED=0]
id: server
binary: server
main: ./cmd/armada/main.go
main: ./cmd/server/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
goos:
- linux
Expand Down Expand Up @@ -197,7 +197,7 @@ dockers:
- scheduler
- scheduleringester
extra_files:
- config/armada/config.yaml
- config/server/config.yaml
- config/executor/config.yaml
- config/binoculars/config.yaml
- config/eventingester/config.yaml
Expand Down Expand Up @@ -244,7 +244,7 @@ dockers:
- lookoutingesterv2
- fakeexecutor
extra_files:
- config/armada/config.yaml
- config/server/config.yaml
- config/executor/config.yaml
- config/binoculars/config.yaml
- config/eventingester/config.yaml
Expand All @@ -268,7 +268,7 @@ dockers:
ids:
- server
extra_files:
- config/armada/config.yaml
- config/server/config.yaml
dockerfile: ./build/server/Dockerfile

- id: executor
Expand Down
2 changes: 1 addition & 1 deletion .run/Armada.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<toRun name="Server" type="GoApplicationRunConfiguration" />
<toRun name="Scheduler" type="GoApplicationRunConfiguration" />
<toRun name="Scheduler Ingester" type="GoApplicationRunConfiguration" />
<toRun name="postgresPulsarMigration" type="GoApplicationRunConfiguration" />
<toRun name="schedulerPostgresMigration" type="GoApplicationRunConfiguration" />
<method v="2" />
</configuration>
<configuration default="false" name="Armada (Pulsar Scheduler)" type="CompoundRunConfigurationType">
Expand Down
2 changes: 1 addition & 1 deletion .run/Server.run.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<kind value="FILE" />
<package value="github.com/armadaproject/armada" />
<directory value="$PROJECT_DIR$" />
<filePath value="$PROJECT_DIR$/cmd/armada/main.go" />
<filePath value="$PROJECT_DIR$/cmd/server/main.go" />
<method v="2" />
</configuration>
</component>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="postgresPulsarMigration" type="GoApplicationRunConfiguration" factoryName="Go Application">
<configuration default="false" name="schedulerPostgresMigration" type="GoApplicationRunConfiguration" factoryName="Go Application">
<module name="armada" />
<working_directory value="$PROJECT_DIR$" />
<parameters value="migrateDatabase" />
Expand Down
2 changes: 1 addition & 1 deletion build/bundles/armada/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada
USER armada

# Server
COPY config/armada/config.yaml /app/config/armada/config.yaml
COPY config/server/config.yaml /app/config/server/config.yaml

# Executor
COPY config/executor/config.yaml /app/config/executor/config.yaml
Expand Down
2 changes: 1 addition & 1 deletion build/server/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN addgroup -S -g 2000 armada && adduser -S -u 1000 armada -G armada
USER armada

COPY server /app/
COPY config/armada/config.yaml /app/config/armada/config.yaml
COPY config/server/config.yaml /app/config/server/config.yaml

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion cmd/armada/main.go → cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func main() {
// TODO Load relevant config in one place: don't use viper here and in LoadConfig.
var config configuration.ArmadaConfig
userSpecifiedConfigs := viper.GetStringSlice(CustomConfigLocation)
common.LoadConfig(&config, "./config/armada", userSpecifiedConfigs)
common.LoadConfig(&config, "./config/server", userSpecifiedConfigs)

log.Info("Starting...")

Expand Down
File renamed without changes.

0 comments on commit 6fbaa59

Please sign in to comment.