Skip to content

Commit

Permalink
Fix basic auth cloud endpoint missing target namespace and appName (#243
Browse files Browse the repository at this point in the history
)

* add istio namespace for cloud endpoint

* patch appName to endpoint
  • Loading branch information
kunmingg authored and k8s-ci-robot committed Jul 26, 2019
1 parent 797c8ae commit c9ebca2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gcp/basic-auth-ingress/base/cloud-endpoint.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: ctl.isla.solutions/v1
kind: CloudEndpoint
metadata:
name: cloud-endpoint
name: $(appName)
spec:
project: $(project)
targetIngress:
Expand Down
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 @@ -35,6 +35,13 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.secretName
- name: appName
objref:
kind: ConfigMap
name: basic-auth-ingress-parameters
apiVersion: v1
fieldref:
fieldpath: data.appName
- name: namespace
objref:
kind: ConfigMap
Expand Down
1 change: 1 addition & 0 deletions gcp/basic-auth-ingress/base/params.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
appName=kubeflow
namespace=kubeflow
hostname=
project=
Expand Down
2 changes: 2 additions & 0 deletions gcp/basic-auth-ingress/base/params.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ varReference:
kind: Ingress
- path: metadata/annotations/certmanager.k8s.io\/issuer
kind: Ingress
- path: metadata/name
kind: CloudEndpoint
- path: spec/project
kind: CloudEndpoint
- path: spec/targetIngress/name
Expand Down
12 changes: 11 additions & 1 deletion tests/basic-auth-ingress-base_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ spec:
apiVersion: ctl.isla.solutions/v1
kind: CloudEndpoint
metadata:
name: cloud-endpoint
name: $(appName)
spec:
project: $(project)
targetIngress:
Expand Down Expand Up @@ -377,6 +377,8 @@ varReference:
kind: Ingress
- path: metadata/annotations/certmanager.k8s.io\/issuer
kind: Ingress
- path: metadata/name
kind: CloudEndpoint
- path: spec/project
kind: CloudEndpoint
- path: spec/targetIngress/name
Expand All @@ -385,6 +387,7 @@ varReference:
kind: CloudEndpoint
`)
th.writeF("/manifests/gcp/basic-auth-ingress/base/params.env", `
appName=kubeflow
namespace=kubeflow
hostname=
project=
Expand Down Expand Up @@ -433,6 +436,13 @@ vars:
apiVersion: v1
fieldref:
fieldpath: data.secretName
- name: appName
objref:
kind: ConfigMap
name: basic-auth-ingress-parameters
apiVersion: v1
fieldref:
fieldpath: data.appName
- name: namespace
objref:
kind: ConfigMap
Expand Down

0 comments on commit c9ebca2

Please sign in to comment.