Skip to content

Profile and require item conflict #9848

@sw360cab

Description

@sw360cab

This file skaffold.yaml is called with

skaffold run -p eks-operators

apiVersion: skaffold/v4beta11
kind: Config
metadata:
  name: gocluster
requires:
  # One of many requires
  - path: ../../cluster/skaffold/traefik-skaffold.yaml
    activeProfiles: &kubeBaseProfiles
    - name: dev
      activatedBy: [net-dev]

profiles:
  - name: net-dev
    activation:
      - kubeContext: kind-live
        env: "INFRA=net"
  - name: eks-operators
    manifests:
      kustomize:
        paths:
          - ../../aws-eks/storage

deploy:
  kubectl: {}

Output is

No tags generated
Starting test...
Starting deploy...
nothing to deploy

But if I save in another file, operators-skaffold.yaml
and launch skaffold run -p eks-operators -f operators-skaffold.yaml

apiVersion: skaffold/v4beta11
kind: Config
metadata:
  name: operators-setup
profiles:
  - name: eks-operators
    manifests:
      kustomize:
        paths:
          ## AWS Storage Class + EKS Storage
          - ../../aws-eks/storage

deploy:
  kubectl: {}

It deploys as expected.

In both cases skaffold render outputs expected yaml.
What is the issue I am having?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions