Skip to content

Commit 1979a61

Browse files
committed
feat: Rename Container Service to AKS
1 parent 2cb1630 commit 1979a61

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

ql/lib/codeql/bicep/Frameworks.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import frameworks.Microsoft.Cache
22
import frameworks.Microsoft.Compute
33
import frameworks.Microsoft.Containers
44
import frameworks.Microsoft.General
5-
import frameworks.Microsoft.ManagedContainers
5+
import frameworks.Microsoft.AKS
66
import frameworks.Microsoft.Network
77
import frameworks.Microsoft.Storage
88
import frameworks.Microsoft.Databases

ql/lib/codeql/bicep/frameworks/Microsoft/ManagedContainers.qll renamed to ql/lib/codeql/bicep/frameworks/Microsoft/AKS.qll

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
private import bicep
22
private 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.

0 commit comments

Comments
 (0)