Skip to content
This repository has been archived by the owner on Oct 8, 2020. It is now read-only.

Commit

Permalink
refactor(spring): Bump korkVersion, refactor eureka integration (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
robzienert authored Jul 9, 2020
1 parent 75024b6 commit 49cf548
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
korkVersion=7.50.0
korkVersion=7.51.1
kotlinVersion=1.3.70
org.gradle.parallel=true
spinnakerGradleVersion=8.3.0
Expand Down
1 change: 0 additions & 1 deletion keiko-spring/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ dependencies {
api("com.netflix.spinnaker.kork:kork-core") {
exclude(module: "logback-classic")
}
api "com.netflix.eureka:eureka-client"

testImplementation project(":keiko-test-common")
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

package com.netflix.spinnaker.q.discovery

import com.netflix.appinfo.InstanceInfo.InstanceStatus.UP
import com.netflix.spinnaker.kork.eureka.RemoteStatusChangedEvent
import com.netflix.spinnaker.kork.discovery.InstanceStatus.UP
import com.netflix.spinnaker.kork.discovery.RemoteStatusChangedEvent
import com.netflix.spinnaker.q.Activator
import java.util.concurrent.atomic.AtomicBoolean
import org.slf4j.LoggerFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@

package com.netflix.spinnaker.q.discovery

import com.netflix.appinfo.InstanceInfo.InstanceStatus
import com.netflix.appinfo.InstanceInfo.InstanceStatus.OUT_OF_SERVICE
import com.netflix.appinfo.InstanceInfo.InstanceStatus.UP
import com.netflix.discovery.StatusChangeEvent
import com.netflix.spinnaker.kork.eureka.RemoteStatusChangedEvent
import com.netflix.spinnaker.kork.discovery.DiscoveryStatusChangeEvent
import com.netflix.spinnaker.kork.discovery.InstanceStatus
import com.netflix.spinnaker.kork.discovery.InstanceStatus.OUT_OF_SERVICE
import com.netflix.spinnaker.kork.discovery.InstanceStatus.UP
import com.netflix.spinnaker.kork.discovery.RemoteStatusChangedEvent
import com.netflix.spinnaker.spek.and
import org.assertj.core.api.Assertions.assertThat
import org.jetbrains.spek.api.Spek
Expand Down Expand Up @@ -66,4 +66,4 @@ private fun DiscoveryActivator.triggerEvent(from: InstanceStatus, to: InstanceSt
onApplicationEvent(event(from, to))

private fun event(from: InstanceStatus, to: InstanceStatus) =
RemoteStatusChangedEvent(StatusChangeEvent(from, to))
RemoteStatusChangedEvent(DiscoveryStatusChangeEvent(from, to))

0 comments on commit 49cf548

Please sign in to comment.