-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove the scheduling to k8s job that will use an actuator endpoint
- Loading branch information
Showing
7 changed files
with
37 additions
and
120 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
{ | ||
"LOCAL": { | ||
"host": "http://local.management.vauthenticator.com:9090" | ||
"host": "http://local.management.vauthenticator.com:9090", | ||
"actuatorHost": "http://local.management.vauthenticator.com:9091" | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
src/main/kotlin/com/vauthenticator/server/job/DatabaseTtlEntryCleanJobEndPoint.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,17 @@ | ||
package com.vauthenticator.server.job | ||
|
||
import org.springframework.boot.actuate.endpoint.annotation.Endpoint | ||
import org.springframework.boot.actuate.endpoint.annotation.WriteOperation | ||
import org.springframework.http.ResponseEntity | ||
|
||
@Endpoint(id = "database-clean-up") | ||
class DatabaseTtlEntryCleanJobEndPoint( | ||
private val databaseTtlEntryCleanJob: DatabaseTtlEntryCleanJob | ||
) { | ||
|
||
@WriteOperation | ||
fun cleanUp(): ResponseEntity<Unit> { | ||
databaseTtlEntryCleanJob.execute() | ||
return ResponseEntity.noContent().build() | ||
} | ||
} |
42 changes: 0 additions & 42 deletions
42
src/main/kotlin/com/vauthenticator/server/job/LockService.kt
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
31 changes: 0 additions & 31 deletions
31
src/test/kotlin/com/vauthenticator/server/job/RedisLockServiceTest.kt
This file was deleted.
Oops, something went wrong.