Skip to content

Commit

Permalink
chore(kubernetes): upgrade k8s client to 5.0.0 version (#3784)
Browse files Browse the repository at this point in the history
  • Loading branch information
yue9944882 authored and ezimanyi committed Jun 19, 2019
1 parent 98beae0 commit 6364762
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clouddriver-kubernetes/clouddriver-kubernetes.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ dependencies {
implementation "com.netflix.spinnaker.kork:kork-artifacts"
implementation "com.netflix.spinnaker.moniker:moniker"
implementation "io.fabric8:kubernetes-client:4.1.1"
implementation "io.kubernetes:client-java:1.0.0-beta1"
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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private static Set<Rule> outboundRules(V1NetworkPolicy policy) {
}

private static Rule fromPolicyPort(V1NetworkPolicyPort policyPort) {
String port = policyPort.getPort();
String port = policyPort.getPort().getStrValue();
return new PortRule()
.setProtocol(policyPort.getProtocol())
.setPortRanges(new TreeSet<>(Collections.singletonList(new StringPortRange(port))));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,10 @@ contexts:
cluster: test
user: test
current-context: default
clusters:
- name: test
cluster:
server: "https://foo:6443"
""",
namespaces: ["default"],
dockerRegistries: [new LinkedDockerRegistryConfiguration(accountName: "docker-account")]
Expand Down

0 comments on commit 6364762

Please sign in to comment.