-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(kubernetes): Move V2-only code to clouddriver-kubernetes-v2 (#…
…4024) * refactor(kubernetes): A few minor fixes Remove a few unused variables/imports, and use parametrized types in a few places. * refactor(kubernetes): Remove SpinnakerKindMap from V1 While we've exposed the general SpinnakerKindMap in the shared KubernetesNamedAccountCredentials class, this map is only ever used for the V2 provider. Constructing the map depends on a number of classes that are V2-only, so to better factor the code, we'll just return an empty map for V1 accounts. * refactor(kubernetes): Split some shared and V2-only code KubernetesSpinnakerKindMap is only used by the V2 provider, but SpinnakerKind is needed by both. In order to support having the V1 provider use SpinnakerKind but not the KubernetesSpinnakerKindMap, move SpinnakerKind to the top level. Instead of building all the Kubernetes beans in KubernetesConfiguration, move the construction of V2-only beans to KubernetesV2Configuration. * refactor(kubernetes): Move V2-only code to clouddriver-kubernetes-v2 In order to better control the code sharing between the V1 and V2 kubernetes providers, pull all the (Java-only) code from the V2 provider into its own module. We'll also use the Java compiler instead of the Groovy compiler to compile it. In a follow-up PR, I'll move all V1-only code into clouddriver-kubernetes-v1, leaving only shared code in clouddriver-kubernetes. This will make it easier to edit code in the V2 provider without accidentally affecting the V1 provider (and vice versa).
- Loading branch information
Showing
251 changed files
with
280 additions
and
243 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
clouddriver-kubernetes-v2/clouddriver-kubernetes-v2.gradle
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,33 @@ | ||
tasks.compileGroovy.enabled = false | ||
sourceSets.main.java.srcDirs = ['src/main/java'] | ||
|
||
dependencies { | ||
implementation project(":clouddriver-kubernetes") | ||
implementation project(":clouddriver-artifacts") | ||
implementation project(":clouddriver-core") | ||
implementation project(":cats:cats-core") | ||
implementation project(":clouddriver-security") | ||
|
||
compileOnly "org.projectlombok:lombok" | ||
annotationProcessor "org.projectlombok:lombok" | ||
testAnnotationProcessor "org.projectlombok:lombok" | ||
|
||
implementation "org.codehaus.groovy:groovy-all" | ||
|
||
implementation "com.netflix.frigga:frigga" | ||
implementation "com.netflix.spinnaker.kork:kork-artifacts" | ||
implementation "com.netflix.spinnaker.kork:kork-config" | ||
implementation "com.netflix.spinnaker.moniker:moniker" | ||
implementation "io.kubernetes:client-java:5.0.0" | ||
implementation "org.springframework.boot:spring-boot-actuator" | ||
implementation "org.springframework.boot:spring-boot-starter-web" | ||
implementation 'com.jayway.jsonpath:json-path:2.3.0' | ||
implementation "com.github.ben-manes.caffeine:guava" | ||
|
||
testImplementation "cglib:cglib-nodep" | ||
testImplementation "org.objenesis:objenesis" | ||
testImplementation "org.spockframework:spock-core" | ||
testImplementation "org.spockframework:spock-spring" | ||
testImplementation "org.springframework:spring-test" | ||
testImplementation "com.netflix.spinnaker.fiat:fiat-core:$fiatVersion" | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
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
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
Oops, something went wrong.