Skip to content

prow: add tests to enforce folder-per-namespace convention for resources #2388

@spiffxp

Description

@spiffxp

Followup to #2371

Ideally this could be done with conftest

Ensure that for every resource in `infra/gcp/clusters/projects/{project}/{cluster}/resources':

  • resources/foo.yaml is cluster-scoped (no namespace)
  • resources/{namespace}/foo.yaml has namespace: {namespace}

If it turns out the existing resources don't fit this convention, refactor to make them fit

/area prow
/sig testing
/wg k8s-infra
/priority important-longterm

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/prowSetting up or working with prow in general, prow.k8s.io, prow build clusterslifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.priority/important-longtermImportant over the long term, but may not be staffed and/or may need multiple releases to complete.sig/k8s-infraCategorizes an issue or PR as relevant to SIG K8s Infra.sig/testingCategorizes an issue or PR as relevant to SIG Testing.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions