Skip to content

feat(misconf): adapt ARM k8s clusters #9696

@nikpivkin

Description

@nikpivkin

Currently, we only adapt Kubernetes clusters for Terraform configurations. For ARM templates (Azure Resource Manager), there is currently only a placeholder function:

Azure Managed Cluster resource documentation (ARM): Microsoft Docs

Plan of action:

  • Implement an adapter for ARM Kubernetes clusters that populates the container.Container structure.
    The adapter should transform resource data according to the container model, following the conventions used by other ARM adapters in the iac/adapters/arm package.

  • Write unit tests in the adapt_test.go file, located next to the adapter implementation.
    Use a table-driven approach. The tests should include:

    • a case with an empty configuration — to verify that default values (if any) are correctly applied;
    • a case with a complete configuration — to verify that all fields are populated correctly.

Metadata

Metadata

Assignees

Labels

good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/featureCategorizes issue or PR as related to a new feature.scan/misconfigurationIssues relating to misconfiguration scanning

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions