Skip to content
Merged
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
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ helm lint helm --strict --values helm/values-sit.yaml

## Runtime Notes

- Default local endpoint: `http://localhost:8888`
- Local runtime config source is the `config-repo` repository.
- SIT and higher environments should use Git-backed configuration, not hardcoded local files.
- Default workstation endpoint: `http://localhost:8888`
- The runtime configuration source is the `config-repo` repository.
- Supported platform environments use Git-backed configuration; a workstation process is a debugging technique, not a separate environment.

## Dependency Notes

Expand Down
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ The sibling `config-repo` repository contains configuration served to client ser
```text
config-repo/
├── application.yml
├── application-local.yml
├── application-sit.yml
└── customer-service/
├── customer-service.yml
└── customer-service-local.yml
└── customer-service-sit.yml
```

- `application.yml` contains defaults shared by all client services.
Expand Down Expand Up @@ -67,7 +67,7 @@ kubectl config current-context
helm version --short
```

## Run Locally
## Run From A Workstation

Clone `config-repo` beside this repository. The default local repository URI is `file:../config-repo`:

Expand Down Expand Up @@ -116,22 +116,22 @@ Retrieve the default configuration for `customer-service`:
curl --fail http://localhost:8888/customer-service/default
```

Retrieve the local-profile configuration:
Retrieve the SIT configuration:

```bash
curl --fail http://localhost:8888/customer-service/local
curl --fail http://localhost:8888/customer-service/sit
```

The local response combines configuration from:
The SIT response combines configuration from:

```text
config-repo/customer-service/customer-service-local.yml
config-repo/application-local.yml
config-repo/customer-service/customer-service-sit.yml
config-repo/application-sit.yml
config-repo/customer-service/customer-service.yml
config-repo/application.yml
```

More specific profile and service configuration takes precedence over shared defaults. The response `version` identifies the exact `config-repo` Git commit used.
More specific profile and service configuration takes precedence over shared defaults. The response `version` identifies the exact `config-repo` Git commit used. Supported runtime profiles are `sit`, `uat`, and `prod`; `local` is not a platform environment.

## Run With Docker

Expand Down Expand Up @@ -168,7 +168,7 @@ Verify the container and stop it:

```bash
curl --fail http://localhost:8888/actuator/health
curl --fail http://localhost:8888/customer-service/local
curl --fail http://localhost:8888/customer-service/sit
docker stop digital-bank-java-config-server
test -n "$CONFIG_REPO_FIXTURE" && rm -rf "$CONFIG_REPO_FIXTURE"
unset CONFIG_REPO_FIXTURE
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spring:
repositories:
config-repo:
name: customer-service
profiles: local
profiles: sit
label: "${CONFIG_REPO_DEFAULT_LABEL:main}"

management:
Expand All @@ -35,4 +35,4 @@ management:
endpoint:
health:
probes:
enabled: true
enabled: true