-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: always store namespace in func.yaml and warn if current ns & fu…
…nc.yaml ns is different (#1118) * check namespace; add to func.yaml on first deploy; added tests and mock kubeconfig for testing * change func args because only f.Namespace is used instead of the whole struct * func comment * misspell * fix tests * warning in stderr * use context.Background * add fake kubeconfig for new test
- Loading branch information
Showing
4 changed files
with
147 additions
and
2 deletions.
There are no files selected for viewing
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
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,25 @@ | ||
apiVersion: v1 | ||
clusters: | ||
- cluster: | ||
insecure-skip-tls-verify: true | ||
server: https://example-cluster.serverless.devcluster.openshift.com:6443 | ||
name: example-cluster-serverless-devcluster-openshift-com:6443 | ||
contexts: | ||
- context: | ||
cluster: example-cluster-serverless-devcluster-openshift-com:6443 | ||
namespace: default | ||
user: kube:admin/example-cluster-serverless-devcluster-openshift-com:6443 | ||
name: default/example-cluster-serverless-devcluster-openshift-com:6443/kube:admin | ||
- context: | ||
cluster: example-cluster-serverless-devcluster-openshift-com:6443 | ||
namespace: test-ns-deploy | ||
user: kube:admin/example-cluster-serverless-devcluster-openshift-com:6443 | ||
name: test-ns-deploy/example-cluster-serverless-devcluster-openshift-com:6443/kube:admin | ||
current-context: test-ns-deploy/example-cluster-serverless-devcluster-openshift-com:6443/kube:admin | ||
kind: Config | ||
preferences: {} | ||
users: | ||
- name: kubeadmin | ||
user: | ||
token: sha256~XXXXexample-test-hash | ||
|