GoogleContainerTools / GoogleContainerTools/skaffold

Manifests are not deployed when reference from another config

Open
#9,782 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

Config:

```yaml
# skaffold.yaml
apiVersion: skaffold/v4beta12
kind: Config
metadata:
name: cfg
requires:
- configs: ["cfg2"]
---
apiVersion: skaffold/v4beta12
kind: Config
metadata:
name: cfg2
manifests:
rawYaml:
- skaffold-namespace.yaml
deploy:
kubectl:
```

```
# skaffold-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: test
```

Running `skaffold dev -vdebug` does not create the namespace but instead show this log line:
```
DEBU[0000] manifests with tagged images:apiVersion: v1
kind: Namespace
metadata:
name: test subtask=0 task=Render
DEBU[0000] manifests with labels apiVersion: v1
kind: Namespace
metadata:
name: test subtask=-1 task=DevLoop
```

What I'm trying to achieve is to have a namespace created before deploying releases to that custom namespace, is this not the right approach?

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.