Skip to content

Commit

Permalink
Merge branch 'Azure:main' into aro-5736
Browse files Browse the repository at this point in the history
  • Loading branch information
katherinelc321 authored May 15, 2024
2 parents 73bf23b + dd28057 commit 54b7b40
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 736 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/postCreate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm ci

# Install the tsp cli
# pinned to the last working version combination
npm install -g @typespec/compiler@0.55.0
npm install -g @typespec/compiler@0.56.0

# Install azure/oav for validation of openapi and swagger example generation
# https://github.com/Azure/oav
Expand Down
2 changes: 0 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ updates:
typespec:
patterns:
- '@typespec/*'
azure-tools:
patterns:
- '@azure-tools/*'
schedule:
interval: 'weekly'
2 changes: 1 addition & 1 deletion api/redhatopenshift/HcpCluster/hcpCluster-models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ model HcpOpenShiftClusterResource
@segment("hcpOpenShiftClusters")
name: string;

...ManagedServiceIdentity;
...ManagedServiceIdentityProperty;
}

// The NodePool needs to be TrackedResource for the following reasons:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2162,24 +2162,6 @@
}
}
},
"Versions": {
"type": "string",
"description": "The available API versions.",
"enum": [
"2024-06-10-preview"
],
"x-ms-enum": {
"name": "Versions",
"modelAsString": true,
"values": [
{
"name": "v2024_06_10_preview",
"value": "2024-06-10-preview",
"description": "2024-06-10-preview version"
}
]
}
},
"Visibility": {
"type": "string",
"description": "The visibility of the API server",
Expand Down
2 changes: 1 addition & 1 deletion dev-infrastructure/modules/aks-cluster-base.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ module serviceAccounts './aks-manifest.bicep' = {
apiVersion: 'v1'
kind: 'ServiceAccount'
metadata: {
name: workloadIdentities[i].value.uamiName
name: workloadIdentities[i].value.serviceAccountName
namespace: workloadIdentities[i].value.namespace
annotations: {
'azure.workload.identity/client-id': uami[i].properties.clientId
Expand Down
10 changes: 7 additions & 3 deletions dev-infrastructure/modules/aks-manifest.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ param aksClusterName string
param location string
param aksManagedIdentityId string
param manifests array
param forceUpdateTag string = guid(string(manifests))

var namespaces = [for manifest in manifests: manifest.metadata.namespace]
var namespaces = [
for manifest in filter(manifests, m => contains(m.metadata, 'namespace')): manifest.metadata.namespace
]
var uniqueNamespaces = union(namespaces, [])
var namespaceManifests = [
for i in range(0, length(uniqueNamespaces)): {
for ns in uniqueNamespaces: {
apiVersion: 'v1'
kind: 'Namespace'
metadata: {
name: uniqueNamespaces[i]
name: ns
}
}
]
Expand Down Expand Up @@ -54,6 +57,7 @@ resource deploymentScript 'Microsoft.Resources/deploymentScripts@2023-08-01' = {
// * avoid the need for a network path to the cluster
//
// right now az aks command invoke fails with `MissingAADClusterToken` when run within a deploymentscript
forceUpdateTag: forceUpdateTag
environmentVariables: [
{
name: 'AKS_CLUSTER_RG'
Expand Down
15 changes: 0 additions & 15 deletions internal/api/v20240610preview/generated_constants.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 54b7b40

Please sign in to comment.