-
Notifications
You must be signed in to change notification settings - Fork 156
Closed
Labels
kind/good-first-issueDenotes an issue ready for a new contributor.Denotes an issue ready for a new contributor.
Description
Hi,
I got this issue when re-reploying a service:
func deploy --remote
...
arning: git settings are only applicable when running with --remote. Local source code will be used.deploy error: knative deployer failed to update the Knative Service:
referenced Secret "bing-apikey" is not present in namespace "agent-less"
Error: knative deployer failed to update the Knative Service:
referenced Secret "bing-apikey" is not present in namespace "agent-less"
However, the secret does exist in this namespace:
kn secret list -n agent-less
NAME TYPE
bing-apikey Opaque
I have a env using secret in the func.yaml:
run:
envs:
- name: BING_API_KEY
value: '{{ secret:bing-apikey:apiKey }}'
This issue only happens when re-reploying a function. The workaround is to delete the existing function first before deploy it:
func delete -n agent-less bing-search-tool
Removing Knative Service: bing-search-tool
Removing Knative Service 'bing-search-tool' and all dependent resources
func deploy --remote
Metadata
Metadata
Assignees
Labels
kind/good-first-issueDenotes an issue ready for a new contributor.Denotes an issue ready for a new contributor.
Type
Projects
Status
✅ Done