Skip to content

Commit

Permalink
chore: Deprecate marathon-api (#1320)
Browse files Browse the repository at this point in the history
  • Loading branch information
patriknw authored Sep 24, 2024
1 parent 8dced29 commit 6316c10
Show file tree
Hide file tree
Showing 34 changed files with 16 additions and 873 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ between releases. Breaking API changes may be introduced without notice as we re
A module may be dropped in any release without prior deprecation. The Lightbend subscription does not cover support
for the following modules.

* akka-discovery-marathon-api
* akka-discovery-aws-api
* akka-discovery-aws-api-async
* akka-discovery-marathon-api (End of Life)

License
-------
Expand Down
1 change: 1 addition & 0 deletions discovery-marathon-api/src/main/resources/reference.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ akka.discovery {
# Set the following in your application.conf if you want to use this discovery mechanism:
# method = marathon-api
# ApiMayChange
# Deprecated: Use another discovery method instead. Since 1.6.0.
marathon-api {
class = akka.discovery.marathon.MarathonApiServiceDiscovery

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package akka.discovery.marathon

import scala.collection.immutable.Seq

@deprecated("Use another discovery method instead.", "1.6.0")
object AppList {
case class App(container: Option[Container], portDefinitions: Option[Seq[PortDefinition]], tasks: Option[Seq[Task]])
case class Container(portMappings: Option[Seq[PortMapping]], docker: Option[Docker])
Expand All @@ -17,4 +18,5 @@ object AppList {

import AppList._

@deprecated("Use another discovery method instead.", "1.6.0")
case class AppList(apps: Seq[App])
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport
import spray.json._
import AppList._

@deprecated("Use another discovery method instead.", "1.6.0")
object JsonFormat extends SprayJsonSupport with DefaultJsonProtocol {
implicit val taskFormat: JsonFormat[Task] = jsonFormat2(Task.apply)
implicit val portDefinitionFormat: JsonFormat[PortDefinition] = jsonFormat2(PortDefinition.apply)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import akka.discovery.ServiceDiscovery.{ Resolved, ResolvedTarget }
import akka.event.Logging

@ApiMayChange
@deprecated("Use another discovery method instead.", "1.6.0")
object MarathonApiServiceDiscovery {

/**
Expand Down Expand Up @@ -74,6 +75,7 @@ object MarathonApiServiceDiscovery {
* Service discovery that uses the Marathon API.
*/
@ApiMayChange
@deprecated("Use another discovery method instead.", "1.6.0")
class MarathonApiServiceDiscovery(implicit system: ActorSystem) extends ServiceDiscovery {
import MarathonApiServiceDiscovery._
import system.dispatcher
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import akka.actor._
import akka.annotation.ApiMayChange

@ApiMayChange
@deprecated("Use another discovery method instead.", "1.6.0")
final class Settings(system: ExtendedActorSystem) extends Extension {
private val marathonApi = system.settings.config.getConfig("akka.discovery.marathon-api")

Expand All @@ -22,6 +23,7 @@ final class Settings(system: ExtendedActorSystem) extends Extension {
}

@ApiMayChange
@deprecated("Use another discovery method instead.", "1.6.0")
object Settings extends ExtensionId[Settings] with ExtensionIdProvider {
override def get(system: ActorSystem): Settings = super.get(system)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import scala.io.Source
import org.scalatest.matchers.should.Matchers
import org.scalatest.wordspec.AnyWordSpec

@deprecated("Use another discovery method instead.", "1.6.0")
class MarathonApiServiceDiscoverySpec extends AnyWordSpec with Matchers {
"targets" should {
"calculate the correct list of resolved targets" in {
Expand Down
2 changes: 1 addition & 1 deletion docs/src/main/paradox/bootstrap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ that your deployment is robust.

Since the target environments for this module are dynamic, that is, instances can come and go, failure needs to be
considered. The following configuration will result in your application being shut down after 30 seconds if it is unable to
join the discovered seed nodes. In this case, the orchestrator (i.e. Kubernetes or Marathon) will restart your node
join the discovered seed nodes. In this case, the orchestrator (i.e. Kubernetes) will restart your node
and the operation will (presumably) eventually succeed. You'll want to specify the following in your `application.conf` file:

@@snip [CompileOnly.scala](/integration-test/local/src/main/resources/application.conf) { #coorindated-shutdown }
Expand Down
2 changes: 0 additions & 2 deletions docs/src/main/paradox/discovery/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ Akka Discovery module in Akka.
Akka Management contains methods for:

* @ref[Kubernetes](kubernetes.md)
* @ref[Marathon](marathon.md)
* @ref[AWS](aws.md)
* @ref[Azure](azure.md)

Expand All @@ -18,7 +17,6 @@ part of the build and release process.
@@@ index

- [Kubernetes](kubernetes.md)
- [Marathon](marathon.md)
- [AWS](aws.md)
- [Azure](azure.md)
- [Consul (discontinued)](consul.md)
Expand Down
85 changes: 0 additions & 85 deletions docs/src/main/paradox/discovery/marathon.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/src/main/paradox/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Akka Management consists of multiple modules:
As well as @extref:[Akka Discovery](akka:discovery/index.html) methods for:

* @ref[Kubernetes API](discovery/kubernetes.md)
* @ref[Marathon API](discovery/marathon.md)
* @ref[AWS](discovery/aws.md)
* @ref[Azure](discovery/azure.md)

Expand Down
24 changes: 0 additions & 24 deletions integration-test/dns-api-mesos/README.md

This file was deleted.

17 changes: 0 additions & 17 deletions integration-test/dns-api-mesos/build.sbt

This file was deleted.

57 changes: 0 additions & 57 deletions integration-test/dns-api-mesos/marathon/app.bridge-mode.json

This file was deleted.

41 changes: 0 additions & 41 deletions integration-test/dns-api-mesos/marathon/app.host-mode.json

This file was deleted.

1 change: 0 additions & 1 deletion integration-test/dns-api-mesos/project/build.properties

This file was deleted.

3 changes: 0 additions & 3 deletions integration-test/dns-api-mesos/project/plugins.sbt

This file was deleted.

Loading

0 comments on commit 6316c10

Please sign in to comment.