- service_spec_gen: callAPI() auto-detects proxy vs REST mode by index.cfm presence
- core/client.go: buildURL() replaces all 4 ?endpoint= harcoded sites
- build-provider.sh: -ldflags -X main.version=${VERSION} for correct binary version
- 01_generate_yamls.sh (devops + root): Python auto-detect proxy vs REST
- 02_generate_resources_and_docs_v2.sh: pass -api-endpoint to doc generators
- 04_build_and_publish_docs.sh: normalize_api_endpoint without forced /index.cfm
- docs_template_gen + v2: -api-endpoint flag, hardcoded deck-api replaced
- provider.go (both): TODO(api-gateway) comments
- profiles/test/profile.env: NUBES_API_ENDPOINT -> lk-api-gateway-test
- HISTORY: 2026-07-02_api_gateway_migration.md
24 lines
646 B
Bash
24 lines
646 B
Bash
# Stand profile: TEST
|
|
NUBES_API_ENDPOINT="https://lk-api-gateway-test.ngcloud.ru/api/v1/svc"
|
|
TOKEN_FILE="secrets/test.token"
|
|
|
|
# Release versions
|
|
RELEASE_VERSION="5.0.57"
|
|
PROVIDER_VERSION="5.0.57"
|
|
DOCS_VERSION="5.0.57"
|
|
|
|
# Docs generation — ONLY from docs_gen/<stand>/ (never from docs/)
|
|
DOCS_GEN_DIR="universal_rebuild/docs_gen/test"
|
|
|
|
# Registry/S3 settings
|
|
REGISTRY_HOST="terra.k8c.ru"
|
|
REGISTRY_HOSTNAME="terra.k8c.ru"
|
|
NAMESPACE="nubes-test"
|
|
PROVIDER_NAME="nubes"
|
|
S3_BUCKET="terraform-registry"
|
|
S3CFG_REGISTRY="secrets/.s3cfg_registry"
|
|
|
|
# Signing keys
|
|
GPG_PRIVATE_KEY_PATH="secrets/private_key.asc"
|
|
GPG_PUBLIC_KEY_PATH="secrets/public_key.asc"
|