github.com/khulnasoft-lab/defsec@v1.0.5-0.20230827010352-5e9f46893d95/pkg/providers/azure/container/container.go (about)

     1  package container
     2  
     3  import (
     4  	defsecTypes "github.com/khulnasoft-lab/defsec/pkg/types"
     5  )
     6  
     7  type Container struct {
     8  	KubernetesClusters []KubernetesCluster
     9  }
    10  
    11  type KubernetesCluster struct {
    12  	Metadata                    defsecTypes.Metadata
    13  	NetworkProfile              NetworkProfile
    14  	EnablePrivateCluster        defsecTypes.BoolValue
    15  	APIServerAuthorizedIPRanges []defsecTypes.StringValue
    16  	AddonProfile                AddonProfile
    17  	RoleBasedAccessControl      RoleBasedAccessControl
    18  }
    19  
    20  type RoleBasedAccessControl struct {
    21  	Metadata defsecTypes.Metadata
    22  	Enabled  defsecTypes.BoolValue
    23  }
    24  
    25  type AddonProfile struct {
    26  	Metadata defsecTypes.Metadata
    27  	OMSAgent OMSAgent
    28  }
    29  
    30  type OMSAgent struct {
    31  	Metadata defsecTypes.Metadata
    32  	Enabled  defsecTypes.BoolValue
    33  }
    34  
    35  type NetworkProfile struct {
    36  	Metadata      defsecTypes.Metadata
    37  	NetworkPolicy defsecTypes.StringValue // "", "calico", "azure"
    38  }