GoogleContainerTools / GoogleContainerTools/skaffold

[FR] Support for Skaffold sync + Jib + war

Open
#8,182 0 comments 0 reactions 0 assignees View on GitHub
area/sync build/jib java kind/feature-request priority/p2
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

### Expected behavior
Skaffold and Jib work together, on war projects, to auto-sync changed files to a deployed container so as to avoid the need to rebuild, redeploy, and restart the corresponding pod

### Actual behavior
When setting up auto-sync on a war project, deployment errors out with the following message:
_"[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.3.1:\_skaffold-sync-map (default-cli) on project web: **Skaffold sync is currently only available for 'jar' style Jib projects**, but the packaging of web is 'war'"_

### Information

- Skaffold version: v2.0.1
- Operating system: Windows 11
- Installed via: Cloud Code
- Contents of skaffold.yaml:

```yaml
apiVersion: skaffold/v3
kind: Config

activation:
- kubeContext: minikube
build:
artifacts:
- image: server-local
context: .
jib:
project: web
sync:
auto: true
manifests:
kustomize:
paths:
- k8s/overlays/local
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.