Merge pull request #3892 from romana/romana-networking-update

Version and validation updates for romana networking.
This commit is contained in:
Justin Santa Barbara 2017-11-22 11:25:35 -05:00 committed by GitHub
commit 1b58585c8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 17 additions and 11 deletions

View File

@ -469,9 +469,9 @@ func ValidateCluster(c *kops.Cluster, strict bool) *field.Error {
} }
} }
if kubernetesRelease.LT(semver.MustParse("1.6.0")) { if kubernetesRelease.LT(semver.MustParse("1.7.0")) {
if c.Spec.Networking != nil && c.Spec.Networking.Romana != nil { if c.Spec.Networking != nil && c.Spec.Networking.Romana != nil {
return field.Invalid(fieldSpec.Child("Networking"), "romana", "romana networking is not supported with kubernetes versions 1.5 or lower") return field.Invalid(fieldSpec.Child("Networking"), "romana", "romana networking is not supported with kubernetes versions 1.6 or lower")
} }
} }

View File

@ -137,7 +137,7 @@ spec:
effect: NoSchedule effect: NoSchedule
containers: containers:
- name: romana-daemon - name: romana-daemon
image: quay.io/romana/daemon:v2.0-preview.2 image: quay.io/romana/daemon:v2.0.0
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:
requests: requests:
@ -170,7 +170,7 @@ spec:
effect: NoSchedule effect: NoSchedule
containers: containers:
- name: romana-listener - name: romana-listener
image: quay.io/romana/listener:v2.0-preview.2 image: quay.io/romana/listener:v2.0.0
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:
requests: requests:
@ -185,6 +185,8 @@ metadata:
name: romana-agent name: romana-agent
namespace: kube-system namespace: kube-system
spec: spec:
updateStrategy:
type: RollingUpdate
template: template:
metadata: metadata:
labels: labels:
@ -200,7 +202,7 @@ spec:
effect: NoSchedule effect: NoSchedule
containers: containers:
- name: romana-agent - name: romana-agent
image: quay.io/romana/agent:v2.0-preview.2 image: quay.io/romana/agent:v2.0.0
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:
requests: requests:
@ -213,6 +215,10 @@ spec:
valueFrom: valueFrom:
fieldRef: fieldRef:
fieldPath: spec.nodeName fieldPath: spec.nodeName
- name: NODEIP
valueFrom:
fieldRef:
fieldPath: status.hostIP
args: args:
- --service-cluster-ip-range={{ .ServiceClusterIPRange }} - --service-cluster-ip-range={{ .ServiceClusterIPRange }}
securityContext: securityContext:
@ -299,7 +305,7 @@ spec:
effect: NoSchedule effect: NoSchedule
containers: containers:
- name: romana-aws - name: romana-aws
image: quay.io/romana/aws:v2.0-preview.2 image: quay.io/romana/aws:v2.0.0
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:
requests: requests:
@ -328,7 +334,7 @@ spec:
effect: NoSchedule effect: NoSchedule
containers: containers:
- name: romana-vpcrouter - name: romana-vpcrouter
image: quay.io/romana/vpcrouter-romana-plugin image: quay.io/romana/vpcrouter-romana-plugin:1.1.12
imagePullPolicy: Always imagePullPolicy: Always
resources: resources:
requests: requests:

View File

@ -598,18 +598,18 @@ func (b *BootstrapChannelBuilder) buildManifest() (*channelsapi.Addons, map[stri
if b.cluster.Spec.Networking.Romana != nil { if b.cluster.Spec.Networking.Romana != nil {
key := "networking.romana" key := "networking.romana"
version := "v2.0-preview.3" version := "v2.0.0"
{ {
location := key + "/k8s-1.6.yaml" location := key + "/k8s-1.7.yaml"
id := "k8s-1.6" id := "k8s-1.7"
addons.Spec.Addons = append(addons.Spec.Addons, &channelsapi.AddonSpec{ addons.Spec.Addons = append(addons.Spec.Addons, &channelsapi.AddonSpec{
Name: fi.String(key), Name: fi.String(key),
Version: fi.String(version), Version: fi.String(version),
Selector: networkingSelector, Selector: networkingSelector,
Manifest: fi.String(location), Manifest: fi.String(location),
KubernetesVersion: ">=1.6.0", KubernetesVersion: ">=1.7.0",
Id: id, Id: id,
}) })
manifests[key+"-"+id] = "addons/" + location manifests[key+"-"+id] = "addons/" + location