-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add most of configuration properties to application.yml. Add l…
…ogs when running on k8s
- Loading branch information
Showing
7 changed files
with
62 additions
and
18 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
...sador-advisor/src/main/kotlin/com/roche/ambassador/advisor/badges/ShieldsBadgeProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...application/src/main/kotlin/com/roche/ambassador/configuration/KubernetesConfiguration.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.roche.ambassador.configuration | ||
|
||
import com.roche.ambassador.extensions.LoggerDelegate | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnCloudPlatform | ||
import org.springframework.boot.cloud.CloudPlatform | ||
import org.springframework.context.annotation.Configuration | ||
import javax.annotation.PostConstruct | ||
|
||
@Configuration | ||
@ConditionalOnCloudPlatform(CloudPlatform.KUBERNETES) | ||
internal class KubernetesConfiguration { | ||
|
||
companion object { | ||
private val log by LoggerDelegate() | ||
} | ||
|
||
@PostConstruct | ||
fun onInit() { | ||
log.info("Discovered that Ambassador is deployed on Kubernetes. Applied Kubernetes-specific configuration") | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
ambassador-application/src/main/resources/application-open-api.yml
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters