Skip to content

Commit

Permalink
Merge pull request #206 from kunmingg/sync06
Browse files Browse the repository at this point in the history
Sync v0.6 branch to master head
  • Loading branch information
kunmingg authored Jul 11, 2019
2 parents 14b2ddb + 4bc1647 commit 2a0a78c
Show file tree
Hide file tree
Showing 22 changed files with 107 additions and 20 deletions.
11 changes: 11 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
**Which issue is resolved by this Pull Request:**
Resolves #

**Description of your changes:**


**Checklist:**
- [ ] Unit tests have been rebuilt:
1. `cd manifests/tests`
2. `make generate`
3. `make test`
1 change: 1 addition & 0 deletions common/ambassador/base/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ambassador
namespace: istio-system
spec:
replicas: 3
template:
Expand Down
1 change: 1 addition & 0 deletions common/ambassador/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ resources:
- service.yaml
commonLabels:
kustomize.component: ambassador
namespace: istio-system
images:
- name: quay.io/datawire/ambassador
newName: quay.io/datawire/ambassador
Expand Down
1 change: 1 addition & 0 deletions common/ambassador/base/service-account.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: ambassador
namespace: istio-system
2 changes: 2 additions & 0 deletions common/ambassador/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ metadata:
labels:
service: ambassador-admin
name: ambassador-admin
namespace: istio-system
spec:
ports:
- name: ambassador-admin
Expand All @@ -20,6 +21,7 @@ metadata:
labels:
service: ambassador
name: ambassador
namespace: istio-system
spec:
ports:
- name: ambassador
Expand Down
2 changes: 1 addition & 1 deletion gcp/basic-auth-ingress/base/certificate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
- domains:
- $(hostname)
http01:
ingress: envoy-ingress
ingress: $(ingressName)
commonName: $(hostname)
dnsNames:
- $(hostname)
Expand Down
26 changes: 26 additions & 0 deletions gcp/basic-auth-ingress/base/istio-mapping-svc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v1
kind: Service
metadata:
annotations:
getambassador.io/config: |-
---
apiVersion: ambassador/v0
kind: Mapping
name: istio-mapping
prefix_regex: true
prefix: /(?!whoami|kflogin).*
rewrite: ""
service: istio-ingressgateway.istio-system
precedence: 1
labels:
app: istioMappingSvc
ksonnet.io/component: basic-auth-ingress
name: istio-mapping-service
namespace: istio-system
spec:
ports:
- port: 80
targetPort: 8081
selector:
app: istioMappingSvc
type: ClusterIP
7 changes: 7 additions & 0 deletions gcp/basic-auth-ingress/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.hostname
- name: project
objref:
kind: ConfigMap
name: basic-auth-ingress-parameters
apiVersion: v1
fieldref:
fieldpath: data.project
- name: ipName
objref:
kind: ConfigMap
Expand Down
8 changes: 7 additions & 1 deletion gcp/basic-auth-ingress/base/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,15 @@ varReference:
kind: Certificate
- path: spec/secretName
kind: Certificate
- path: spec/acme/config/0/domains/0
- path: spec/acme/config/domains
kind: Certificate
- path: spec/acme/config/http01/ingress
kind: Certificate
- path: metadata/name
kind: Ingress
- path: metadata/annotations/certmanager.k8s.io\/issuer
kind: Ingress
- path: spec/project
kind: CloudEndpoint
- path: spec/targetIngress/name
kind: CloudEndpoint
5 changes: 5 additions & 0 deletions tests/ambassador-base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: ambassador
namespace: istio-system
spec:
replicas: 3
template:
Expand Down Expand Up @@ -106,6 +107,7 @@ apiVersion: v1
kind: ServiceAccount
metadata:
name: ambassador
namespace: istio-system
`)
th.writeF("/manifests/common/ambassador/base/service.yaml", `
---
Expand All @@ -115,6 +117,7 @@ metadata:
labels:
service: ambassador-admin
name: ambassador-admin
namespace: istio-system
spec:
ports:
- name: ambassador-admin
Expand All @@ -130,6 +133,7 @@ metadata:
labels:
service: ambassador
name: ambassador
namespace: istio-system
spec:
ports:
- name: ambassador
Expand Down Expand Up @@ -163,6 +167,7 @@ resources:
- service.yaml
commonLabels:
kustomize.component: ambassador
namespace: istio-system
images:
- name: quay.io/datawire/ambassador
newName: quay.io/datawire/ambassador
Expand Down
17 changes: 15 additions & 2 deletions tests/basic-auth-ingress-base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ spec:
- domains:
- $(hostname)
http01:
ingress: envoy-ingress
ingress: $(ingressName)
commonName: $(hostname)
dnsNames:
- $(hostname)
Expand Down Expand Up @@ -368,12 +368,18 @@ varReference:
kind: Certificate
- path: spec/secretName
kind: Certificate
- path: spec/acme/config/0/domains/0
- path: spec/acme/config/domains
kind: Certificate
- path: spec/acme/config/http01/ingress
kind: Certificate
- path: metadata/name
kind: Ingress
- path: metadata/annotations/certmanager.k8s.io\/issuer
kind: Ingress
- path: spec/project
kind: CloudEndpoint
- path: spec/targetIngress/name
kind: CloudEndpoint
`)
th.writeF("/manifests/gcp/basic-auth-ingress/base/params.env", `
namespace=kubeflow
Expand Down Expand Up @@ -437,6 +443,13 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.hostname
- name: project
objref:
kind: ConfigMap
name: basic-auth-ingress-parameters
apiVersion: v1
fieldref:
fieldpath: data.project
- name: ipName
objref:
kind: ConfigMap
Expand Down
3 changes: 2 additions & 1 deletion tests/iap-ingress-base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,8 @@ oauthSecretName=kubeflow-oauth
project=
adminSaSecretName=admin-gcp-sa
tlsSecretName=envoy-ingress-tls
istioNamespace=istio-system`)
istioNamespace=istio-system
`)
th.writeK("/manifests/gcp/iap-ingress/base", `
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Expand Down
6 changes: 4 additions & 2 deletions tests/minio-base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,11 @@ varReference:
- path: spec/template/spec/volumes/persistentVolumeClaim/claimName
kind: Deployment
- path: metadata/name
kind: PersistentVolumeClaim`)
kind: PersistentVolumeClaim
`)
th.writeF("/manifests/pipeline/minio/base/params.env", `
minioPvcName=`)
minioPvcName=
`)
th.writeK("/manifests/pipeline/minio/base", `
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Expand Down
9 changes: 6 additions & 3 deletions tests/minio-overlays-minioPd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ metadata:
name: $(minioPvcName)
spec:
volumeName: $(minioPvName)
storageClassName: ""`)
storageClassName: ""
`)
th.writeF("/manifests/pipeline/minio/overlays/minioPd/params.yaml", `
varReference:
- path: spec/gcePersistentDisk/pdName
Expand Down Expand Up @@ -154,9 +155,11 @@ varReference:
- path: spec/template/spec/volumes/persistentVolumeClaim/claimName
kind: Deployment
- path: metadata/name
kind: PersistentVolumeClaim`)
kind: PersistentVolumeClaim
`)
th.writeF("/manifests/pipeline/minio/base/params.env", `
minioPvcName=`)
minioPvcName=
`)
th.writeK("/manifests/pipeline/minio/base", `
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
Expand Down
6 changes: 4 additions & 2 deletions tests/mysql-base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,15 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 20Gi`)
storage: 20Gi
`)
th.writeF("/manifests/pipeline/mysql/base/params.yaml", `
varReference:
- path: spec/template/spec/volumes/persistentVolumeClaim/claimName
kind: Deployment
- path: metadata/name
kind: PersistentVolumeClaim`)
kind: PersistentVolumeClaim
`)
th.writeF("/manifests/pipeline/mysql/base/params.env", `
mysqlPvcName=
`)
Expand Down
6 changes: 4 additions & 2 deletions tests/mysql-overlays-mysqlPd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,15 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 20Gi`)
storage: 20Gi
`)
th.writeF("/manifests/pipeline/mysql/base/params.yaml", `
varReference:
- path: spec/template/spec/volumes/persistentVolumeClaim/claimName
kind: Deployment
- path: metadata/name
kind: PersistentVolumeClaim`)
kind: PersistentVolumeClaim
`)
th.writeF("/manifests/pipeline/mysql/base/params.env", `
mysqlPvcName=
`)
Expand Down
3 changes: 2 additions & 1 deletion tests/profiles-base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ metadata:
name: kfam
spec:
ports:
- port: 8081`)
- port: 8081
`)
th.writeF("/manifests/profiles/base/deployment.yaml", `
apiVersion: apps/v1
kind: Deployment
Expand Down
3 changes: 2 additions & 1 deletion tests/profiles-overlays-debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ metadata:
name: kfam
spec:
ports:
- port: 8081`)
- port: 8081
`)
th.writeF("/manifests/profiles/base/deployment.yaml", `
apiVersion: apps/v1
kind: Deployment
Expand Down
3 changes: 2 additions & 1 deletion tests/profiles-overlays-devices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,8 @@ metadata:
name: kfam
spec:
ports:
- port: 8081`)
- port: 8081
`)
th.writeF("/manifests/profiles/base/deployment.yaml", `
apiVersion: apps/v1
kind: Deployment
Expand Down
3 changes: 2 additions & 1 deletion tests/profiles-overlays-istio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ metadata:
name: kfam
spec:
ports:
- port: 8081`)
- port: 8081
`)
th.writeF("/manifests/profiles/base/deployment.yaml", `
apiVersion: apps/v1
kind: Deployment
Expand Down
2 changes: 1 addition & 1 deletion tests/workflows/app.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: 0.1.0
apiVersion: 0.3.0
environments:
releasing:
destination:
Expand Down
2 changes: 1 addition & 1 deletion tests/workflows/components/workflows.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
local srcRootDir = testDir + "/src";
// The directory containing the kubeflow/manifests repo
local srcDir = srcRootDir + "/kubeflow/manifests";
local testWorkerImage = "gcr.io/kubeflow-ci/test-worker";
local testWorkerImage = "gcr.io/kubeflow-ci/test-worker:latest";
local golangImage = "golang:1.9.4-stretch";
// TODO(jose5918) Build our own helm image
local pythonImage = "python:3.6-jessie";
Expand Down

0 comments on commit 2a0a78c

Please sign in to comment.