Skip to content

feat(k8s): Argo lint rules + post-synth checks #104

Closed

Description

@lex00

Part of #100.

Scope

Add Argo-specific quality checks to the k8s lexicon's existing lint/rules/ and lint/post-synth/ directories (not a new package).

Declarative/imperative lint rules

  • ARGO001 — prod Application requires syncPolicy.automated.prune=false unless an explicit override annotation is present.
  • ARGO004 — ApplicationSet template must scope to a single AppProject.

Post-synth checks (cross-resource / filesystem — must run after synth)

  • ARGO002 — Application.spec.project must reference a declared AppProject.
  • ARGO003 — Application.spec.destination must reference a declared/registered cluster.
  • ARGO005 — source.path points at an existing directory (warn).

Acceptance criteria

  • Each rule/check has passing + failing fixtures in the k8s lexicon tests.
  • Registered in the k8s plugin lintRules() / postSynthChecks() exports.
  • Counts toward (does not regress) the k8s lexicon completeness tiers.

Dependencies

Depends on the CRD-sources issue (#101).

Activity

  1. changed the title [-]feat(argo): lint rules ARGO001-005[/-] [+]feat(k8s): Argo lint rules + post-synth checks[/+] on May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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