Page MenuHomePhabricator

Fix skaffold "Error: INSTALLATION FAILED" ServiceAccount "api-defaultrole" in namespace "default" exists and cannot be imported into the current release
Closed, ResolvedPublic

Description

This error occurs when I "skaffolded" the api module because the api-defaultrole ServiceAccount exists but is not labelled as managed by helm.

...
  wikiDbProvisionVersion: mw1.43-wbs1
  wikiDbUseVersion: mw1.43-wbs1
Completed pre-deploy hooks
Helm release api not installed. Installing...
Error: INSTALLATION FAILED: Unable to continue with install: ServiceAccount "api-defaultrole" in namespace "default" exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: missing key "meta.helm.sh/release-name": must be set to "api"; annotation validation error: missing key "meta.helm.sh/release-namespace": must be set to "default"
deploying "api": install: exit status 1
make: *** [Makefile:124: skaffold-api] Error 1

Event Timeline

Tarrow renamed this task from Fix skaffold "Error: INSTALLATION FAILED" to Fix skaffold "Error: INSTALLATION FAILED" ServiceAccount "api-defaultrole" in namespace "default" exists and cannot be imported into the current release.May 6 2026, 5:12 PM
Tarrow updated the task description. (Show Details)
Tarrow moved this task from In Peer Review to Done on the Wikibase Cloud (Kanban Board) board.