File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import frameworks.Microsoft.Cache
22import frameworks.Microsoft.Compute
33import frameworks.Microsoft.Containers
44import frameworks.Microsoft.General
5- import frameworks.Microsoft.ManagedContainers
5+ import frameworks.Microsoft.AKS
66import frameworks.Microsoft.Network
77import frameworks.Microsoft.Storage
88import frameworks.Microsoft.Databases
Original file line number Diff line number Diff line change 11private import bicep
22private import codeql.bicep.Concepts
33
4- module ManagedContainers {
4+ module AKS {
55 /**
66 * Represents a Microsoft.ContainerService/managedClusters resource (AKS) in a Bicep file.
77 * See: https://learn.microsoft.com/en-us/azure/templates/microsoft.containerservice/managedclusters
@@ -75,6 +75,10 @@ module ManagedContainers {
7575 */
7676 StringLiteral getKubernetesVersion ( ) { result = this .getProperty ( "kubernetesVersion" ) }
7777
78+ string kubernetesVersion ( ) {
79+ result = this .getKubernetesVersion ( ) .getValue ( )
80+ }
81+
7882 /**
7983 * Gets the DNS prefix property.
8084 */
@@ -241,7 +245,11 @@ module ManagedContainers {
241245 /**
242246 * Gets the enablePrivateCluster property.
243247 */
244- StringLiteral getEnablePrivateCluster ( ) { result = this .getProperty ( "enablePrivateCluster" ) }
248+ Boolean getEnablePrivateCluster ( ) { result = this .getProperty ( "enablePrivateCluster" ) }
249+
250+ boolean enablePrivateCluster ( ) {
251+ result = this .getEnablePrivateCluster ( ) .getBool ( )
252+ }
245253
246254 /**
247255 * Gets the privateDnsZone property.
You can’t perform that action at this time.
0 commit comments