diff --git a/.github/workflows/buf.yaml b/.github/workflows/buf.yaml new file mode 100644 index 00000000000..7b1751fad16 --- /dev/null +++ b/.github/workflows/buf.yaml @@ -0,0 +1,15 @@ +name: Buf CI +on: + push: + pull_request: +permissions: + contents: read + pull-requests: write +jobs: + buf: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: bufbuild/buf-action@v1 + with: + input: aks-node-controller \ No newline at end of file diff --git a/.pipelines/.vsts-vhd-automation.yaml b/.pipelines/.vsts-vhd-automation.yaml index 08daf7be1a3..fd63b807b76 100644 --- a/.pipelines/.vsts-vhd-automation.yaml +++ b/.pipelines/.vsts-vhd-automation.yaml @@ -44,7 +44,7 @@ stages: echo "PR for Image Bumping, Official Branch Cutting" /bin/bash vhdbuilder/scripts/automate_version_bump.sh env: - GITHUB_PAT: $(GITHUB_PAT) + GITHUB_PAT: $(PAT-aks-node-assistant) IMAGE_VERSION: $(IMAGE_VERSION) VHD_BUILD_ID: ${{ parameters.VHD_BUILD_ID }} PR_TARGET_BRANCH: ${{ parameters.PRTargetBranch }} @@ -67,7 +67,7 @@ stages: echo "PR for Release Notes" /bin/bash vhdbuilder/scripts/automate_release_notes.sh env: - GITHUB_PAT: $(GITHUB_PAT) + GITHUB_PAT: $(PAT-aks-node-assistant) IMAGE_VERSION: $(IMAGE_VERSION) VHD_BUILD_ID: ${{ parameters.VHD_BUILD_ID }} SKIP_LATEST: $(SKIP_LATEST_RELEASE_NOTES_UPDATE) diff --git a/.pipelines/.vsts-vhd-builder-release.yaml b/.pipelines/.vsts-vhd-builder-release.yaml index 30bbac49cfc..ce2d37332e3 100644 --- a/.pipelines/.vsts-vhd-builder-release.yaml +++ b/.pipelines/.vsts-vhd-builder-release.yaml @@ -1,9 +1,6 @@ name: $(Date:yyyyMMdd)$(Rev:.r)_$(Build.SourceBranchName)_$(BuildID) trigger: none -variables: - - group: aks-vuln-to-kusto - pool: name: $(POOL_NAME) @@ -180,10 +177,9 @@ parameters: displayName: Build 2204 Minimal Gen2 Containerd type: boolean default: false - - name: dryrun - displayName: Dry run - type: boolean - default: False + +variables: + - group: aks-vuln-to-kusto stages: - stage: build @@ -194,7 +190,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]18.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -221,7 +216,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]18.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -248,7 +242,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]18.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -275,7 +268,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]18.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -302,7 +294,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]CBLMariner' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -330,7 +321,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -358,7 +348,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V3' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -384,7 +373,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]CBLMariner' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -412,7 +400,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -440,7 +427,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V3' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -466,7 +452,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]CBLMariner' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -494,7 +479,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -522,7 +506,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V3' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -548,7 +531,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]CBLMariner' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -576,7 +558,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -604,7 +585,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V3' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -630,7 +610,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]CBLMariner' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -658,7 +637,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -686,7 +664,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V3' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -712,7 +689,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]CBLMariner' echo '##vso[task.setvariable variable=OS_VERSION]V2kata' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -740,7 +716,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V2kata' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -768,7 +743,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]CBLMariner' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -796,7 +770,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -824,7 +797,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]CBLMariner' echo '##vso[task.setvariable variable=OS_VERSION]V2kata' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -852,7 +824,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]AzureLinux' echo '##vso[task.setvariable variable=OS_VERSION]V2kata' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' @@ -880,7 +851,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]18.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -907,7 +877,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]18.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -934,7 +903,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]20.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -961,7 +929,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]20.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -988,7 +955,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]22.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1016,7 +982,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]22.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1044,7 +1009,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]22.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1071,7 +1035,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]24.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1098,7 +1061,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]22.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1125,7 +1087,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]22.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1152,7 +1113,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]24.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1179,7 +1139,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]24.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1206,7 +1165,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]20.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1233,7 +1191,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]22.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1260,7 +1217,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]22.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1287,7 +1243,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]${{parameters.dryrun}}' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]22.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -1309,7 +1264,7 @@ stages: overrideBranch: ${{ parameters.overrideBranch }} artifactName: 2204-minimal-gen2-containerd - stage: e2e - condition: and(ne(variables.SKIP_E2E_TESTS, 'true'), eq('${{ parameters.dryrun }}', false)) + condition: ne(variables.SKIP_E2E_TESTS, 'true') variables: VHD_BUILD_ID: $(Build.BuildId) LOCATION: $(PACKER_BUILD_LOCATION) diff --git a/.pipelines/.vsts-vhd-builder.yaml b/.pipelines/.vsts-vhd-builder.yaml index a15da436e67..69c7fdd92a2 100644 --- a/.pipelines/.vsts-vhd-builder.yaml +++ b/.pipelines/.vsts-vhd-builder.yaml @@ -24,7 +24,7 @@ pool: name: $(POOL_NAME) variables: -- group: aks-vuln-to-kusto + - group: aks-vuln-to-kusto stages: - stage: build @@ -33,7 +33,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]False' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]22.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -56,7 +55,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]False' echo '##vso[task.setvariable variable=OS_SKU]Ubuntu' echo '##vso[task.setvariable variable=OS_VERSION]18.04' echo '##vso[task.setvariable variable=IMG_PUBLISHER]Canonical' @@ -79,7 +77,6 @@ stages: timeoutInMinutes: 180 steps: - bash: | - echo '##vso[task.setvariable variable=DRY_RUN]False' echo '##vso[task.setvariable variable=OS_SKU]CBLMariner' echo '##vso[task.setvariable variable=OS_VERSION]V2' echo '##vso[task.setvariable variable=IMG_PUBLISHER]MicrosoftCBLMariner' diff --git a/.pipelines/templates/.builder-release-template-windows.yaml b/.pipelines/templates/.builder-release-template-windows.yaml index 779ca8f4170..b33288eab9c 100644 --- a/.pipelines/templates/.builder-release-template-windows.yaml +++ b/.pipelines/templates/.builder-release-template-windows.yaml @@ -11,7 +11,7 @@ steps: else echo "This is a release build triggered from the release pipeline" - echo "$(Build.SourceBranch)" | grep -E 'windows/v[[:digit:]]{8}' + echo "$(Build.SourceBranch)" | grep -E '^refs/heads/windows/v[[:digit:]]{8}$' if (( $? != 0 )); then echo "The branch $(Build.SourceBranch) is not release branch. Please use the release branch. Release branch name format: windows/vYYYYMMDD." exit 1 diff --git a/.pipelines/templates/.builder-release-template.yaml b/.pipelines/templates/.builder-release-template.yaml index ddd74852cf4..a222174b020 100644 --- a/.pipelines/templates/.builder-release-template.yaml +++ b/.pipelines/templates/.builder-release-template.yaml @@ -160,6 +160,7 @@ steps: SYSTEM_TEAMPROJECT: $(System.TeamProject) BUILD_RUN_NUMBER: $(Build.BuildNumber) VHD_ARTIFACT_NAME: ${{ parameters.artifactName }} + DRY_RUN: $(DRY_RUN) - task: PublishPipelineArtifact@0 condition: always() @@ -212,7 +213,7 @@ steps: targetPath: 'image-bom.json' - task: CopyFiles@2 - condition: and(succeeded(), eq(variables.DRY_RUN, 'False')) + condition: succeeded() displayName: Copy Image Bom inputs: SourceFolder: '$(System.DefaultWorkingDirectory)' @@ -220,7 +221,7 @@ steps: TargetFolder: '$(Build.ArtifactStagingDirectory)' - bash: make -f packer.mk convert-sig-to-classic-storage-account-blob - condition: and(succeeded(), eq(variables.DRY_RUN, 'False')) + condition: and(succeeded(), eq(variables.GENERATE_PUBLISHING_INFO, 'True')) displayName: Convert Shared Image Gallery To VHD Blob In Classic Storage Account env: RESOURCE_GROUP_NAME: $(AZURE_RESOURCE_GROUP_NAME) @@ -229,44 +230,32 @@ steps: condition: always() displayName: Check Build Performance - - bash: make -f packer.mk generate-sas - displayName: Getting Shared Access Signature URI - condition: and(succeeded(), eq(variables.DRY_RUN, 'False')) + - bash: make -f packer.mk generate-publishing-info + displayName: Generate Publishing Info + condition: and(succeeded(), eq(variables.GENERATE_PUBLISHING_INFO, 'True')) env: RESOURCE_GROUP_NAME: $(AZURE_RESOURCE_GROUP_NAME) STORAGE_ACCT_BLOB_URL: $(CLASSIC_BLOB) OFFER_NAME: $(OS_SKU) - task: PublishPipelineArtifact@1 - condition: and(succeeded(), eq(variables.DRY_RUN, 'False')) - displayName: Publish VHD Publishing-info + condition: and(succeeded(), eq(variables.GENERATE_PUBLISHING_INFO, 'True')) + displayName: Publish Publishing Info inputs: artifactName: 'publishing-info-${{ parameters.artifactName }}' targetPath: 'vhd-publishing-info.json' - task: CopyFiles@2 - condition: and(succeeded(), eq(variables.DRY_RUN, 'False')) - displayName: Copy VHD Publishing-info + condition: and(succeeded(), eq(variables.GENERATE_PUBLISHING_INFO, 'True')) + displayName: Copy Publishing Info inputs: SourceFolder: '$(System.DefaultWorkingDirectory)' Contents: 'vhd-publishing-info.json' TargetFolder: '$(Build.ArtifactStagingDirectory)' - - task: UniversalPackages@0 - condition: and(succeeded(), eq(variables.DRY_RUN, 'False')) - displayName: Universal Publish - inputs: - command: publish - publishDirectory: 'vhd-publishing-info.json' - vstsFeedPublish: 'CloudNativeCompute/AKS-Linux-VHD-Artifacts' - vstsFeedPackagePublish: 'publishing-info-${{ parameters.artifactName }}' - packagePublishDescription: 'VHD publishing info ${{ parameters.artifactName }}' - versionOption: minor - - task: PublishPipelineArtifact@0 - # These "bulk" artifacts are the folders, per SKU, that contain all other artifacts (publishing-info, image-bom, trivy reports, etc.) - condition: and(succeeded(), eq(variables.DRY_RUN, 'False')) - displayName: Publish Bulk Artifacts + condition: succeeded() + displayName: Publish Artifacts inputs: artifactName: '${{ parameters.artifactName }}' targetPath: '$(Build.ArtifactStagingDirectory)' diff --git a/Makefile b/Makefile index 8582251c157..6119afeeb44 100644 --- a/Makefile +++ b/Makefile @@ -89,9 +89,16 @@ validate-image-version: generate-kubelet-flags: @./e2e/kubelet/generate-kubelet-flags.sh +.PHONY: lint-proto-files +lint-proto-files: + @(cd aks-node-controller && ../hack/tools/bin/buf lint) + @(cd aks-node-controller && ../hack/tools/bin/buf breaking --against '../.git#branch=dev') # TODO: change to master + .PHONY: compile-proto-files compile-proto-files: - @./hack/tools/bin/buf generate -o . --path ./pkg/proto/ --template ./pkg/proto/buf.gen.yaml + @(cd aks-node-controller && ../hack/tools/bin/buf format -w) + @(cd aks-node-controller && ../hack/tools/bin/buf generate) + $(MAKE) lint-proto-files .PHONY: generate-manifest generate-manifest: diff --git a/aks-node-controller/app.go b/aks-node-controller/app.go index 842acc5f916..28262ee801b 100644 --- a/aks-node-controller/app.go +++ b/aks-node-controller/app.go @@ -3,7 +3,6 @@ package main import ( "bytes" "context" - "encoding/json" "errors" "flag" "fmt" @@ -14,7 +13,7 @@ import ( "path/filepath" "github.com/Azure/agentbaker/aks-node-controller/parser" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" + "github.com/Azure/agentbaker/aks-node-controller/pkg/nodeconfigutils" "gopkg.in/fsnotify.v1" ) @@ -82,8 +81,7 @@ func (a *App) Provision(ctx context.Context, flags ProvisionFlags) error { return fmt.Errorf("open provision file %s: %w", flags.ProvisionConfig, err) } - config := &aksnodeconfigv1.Configuration{} - err = json.Unmarshal(inputJSON, config) + config, err := nodeconfigutils.UnmarshalConfigurationV1(inputJSON) if err != nil { return fmt.Errorf("unmarshal provision config: %w", err) } diff --git a/aks-node-controller/buf.gen.yaml b/aks-node-controller/buf.gen.yaml new file mode 100644 index 00000000000..63be690d418 --- /dev/null +++ b/aks-node-controller/buf.gen.yaml @@ -0,0 +1,11 @@ +version: v2 +clean: true +managed: + enabled: true + override: + - file_option: go_package_prefix + value: github.com/azure/agentBaker/aks-node-controller/pkg/gen +plugins: + - remote: buf.build/protocolbuffers/go:v1.35.2 + out: pkg/gen + opt: paths=source_relative diff --git a/aks-node-controller/buf.yaml b/aks-node-controller/buf.yaml new file mode 100644 index 00000000000..cb15d8cc147 --- /dev/null +++ b/aks-node-controller/buf.yaml @@ -0,0 +1,9 @@ +version: v2 +modules: + - path: proto +lint: + use: + - STANDARD +breaking: + use: + - WIRE_JSON \ No newline at end of file diff --git a/aks-node-controller/const.go b/aks-node-controller/const.go index 4d46c48d804..4dca3f907b5 100644 --- a/aks-node-controller/const.go +++ b/aks-node-controller/const.go @@ -4,7 +4,6 @@ package main // it will help us to avoid introducing any breaking changes in the future. const ( logFile = "/var/log/azure/aks-node-controller.log" - bootstrapService = "bootstrap.service" provisionJSONFilePath = "/var/log/azure/aks/provision.json" provisionCompleteFilePath = "/opt/azure/containers/provision.complete" ) diff --git a/aks-node-controller/go.mod b/aks-node-controller/go.mod index eb6a54c93d0..de2360e01bc 100644 --- a/aks-node-controller/go.mod +++ b/aks-node-controller/go.mod @@ -6,27 +6,20 @@ toolchain go1.23.0 require ( github.com/Azure/agentbaker v0.20240503.0 - github.com/Azure/go-autorest/autorest/to v0.4.0 + github.com/blang/semver v3.5.1+incompatible github.com/stretchr/testify v1.9.0 -) - -require ( - github.com/kr/text v0.2.0 // indirect - golang.org/x/sys v0.22.0 // indirect + google.golang.org/protobuf v1.34.2 + gopkg.in/fsnotify.v1 v1.4.7 ) require ( github.com/Azure/go-autorest v14.2.0+incompatible // indirect + github.com/Azure/go-autorest/autorest/to v0.4.0 // indirect github.com/Masterminds/semver/v3 v3.2.1 // indirect - github.com/blang/semver v3.5.1+incompatible // indirect - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/onsi/ginkgo v1.16.5 // indirect - github.com/onsi/gomega v1.33.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect + github.com/kr/text v0.2.0 // indirect github.com/pkg/errors v0.9.1 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect - google.golang.org/protobuf v1.33.0 // indirect - gopkg.in/fsnotify.v1 v1.4.7 + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect + golang.org/x/sys v0.23.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect -) - -replace github.com/Azure/agentbaker => ../ +) \ No newline at end of file diff --git a/aks-node-controller/go.sum b/aks-node-controller/go.sum index e9924d93eb1..95fde1bcc60 100644 --- a/aks-node-controller/go.sum +++ b/aks-node-controller/go.sum @@ -9,96 +9,32 @@ github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df/go.mod h1:h github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= -github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= -github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= -github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= -github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= -github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs= -github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= -github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= -github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= -github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= -github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= -github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= -github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk= github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= -golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= -golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= -golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= -golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= -golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= -google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= -google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= -google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= -google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= -google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM= +golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= @@ -106,8 +42,5 @@ gopkg.in/fsnotify.v1 v1.4.7 h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= -gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/pkg/proto/aksnodeconfig/v1/const.go b/aks-node-controller/helpers/const.go similarity index 63% rename from pkg/proto/aksnodeconfig/v1/const.go rename to aks-node-controller/helpers/const.go index 329d6deda65..7085b43464c 100644 --- a/pkg/proto/aksnodeconfig/v1/const.go +++ b/aks-node-controller/helpers/const.go @@ -1,4 +1,4 @@ -package aksnodeconfigv1 +package helpers const ( contractVersion = "v0" @@ -20,14 +20,3 @@ const ( AksCustomCloudName = "akscustom" AzureStackCloud = "AzureStackCloud" ) - -const ( - scriptlessBootstrapStatusCSE = "/opt/azure/containers/aks-node-controller provision-wait" - scriptlessCustomDataTemplate = `#cloud-config -write_files: -- path: /opt/azure/containers/aks-node-controller-config.json - permissions: "0755" - owner: root - content: !!binary | - %s` -) diff --git a/pkg/proto/aksnodeconfig/v1/utils.go b/aks-node-controller/helpers/utils.go similarity index 91% rename from pkg/proto/aksnodeconfig/v1/utils.go rename to aks-node-controller/helpers/utils.go index 4f465efba01..e7c61f02c61 100644 --- a/pkg/proto/aksnodeconfig/v1/utils.go +++ b/aks-node-controller/helpers/utils.go @@ -16,7 +16,7 @@ limitations under the License. // All the helper functions should be hosted by another public repo later. (e.g. agentbaker) // Helper functions in this file will be called by bootstrappers to populate nb contract payload. -package aksnodeconfigv1 +package helpers import ( "fmt" @@ -24,6 +24,7 @@ import ( "strconv" "strings" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" "github.com/Azure/agentbaker/pkg/agent" "github.com/Azure/agentbaker/pkg/agent/datamodel" "github.com/blang/semver" @@ -32,36 +33,36 @@ import ( const numInPair = 2 // GetLoadBalancerSKI returns the LoadBalancerSku enum based on the input string. -func GetLoadBalancerSKU(sku string) LoadBalancerConfig_LoadBalancerSku { +func GetLoadBalancerSKU(sku string) aksnodeconfigv1.LoadBalancerSku { if strings.EqualFold(sku, "Standard") { - return LoadBalancerConfig_STANDARD + return aksnodeconfigv1.LoadBalancerSku_LOAD_BALANCER_SKU_STANDARD } else if strings.EqualFold(sku, "Basic") { - return LoadBalancerConfig_BASIC + return aksnodeconfigv1.LoadBalancerSku_LOAD_BALANCER_SKU_BASIC } - return LoadBalancerConfig_UNSPECIFIED + return aksnodeconfigv1.LoadBalancerSku_LOAD_BALANCER_SKU_UNSPECIFIED } // GetNetworkPluginType returns the NetworkPluginType enum based on the input string. -func GetNetworkPluginType(networkPlugin string) NetworkPlugin { +func GetNetworkPluginType(networkPlugin string) aksnodeconfigv1.NetworkPlugin { if strings.EqualFold(networkPlugin, "azure") { - return NetworkPlugin_NP_AZURE + return aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_AZURE } else if strings.EqualFold(networkPlugin, "kubenet") { - return NetworkPlugin_NP_KUBENET + return aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_KUBENET } - return NetworkPlugin_NP_NONE + return aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_NONE } // GetNetworkPolicyType returns the NetworkPolicyType enum based on the input string. -func GetNetworkPolicyType(networkPolicy string) NetworkPolicy { +func GetNetworkPolicyType(networkPolicy string) aksnodeconfigv1.NetworkPolicy { if strings.EqualFold(networkPolicy, "azure") { - return NetworkPolicy_NPO_AZURE + return aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_AZURE } else if strings.EqualFold(networkPolicy, "calico") { - return NetworkPolicy_NPO_CALICO + return aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_CALICO } - return NetworkPolicy_NPO_NONE + return aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_NONE } // GetDefaultOutboundCommand returns a default outbound traffic command. diff --git a/pkg/proto/aksnodeconfig/v1/utils_test.go b/aks-node-controller/helpers/utils_test.go similarity index 89% rename from pkg/proto/aksnodeconfig/v1/utils_test.go rename to aks-node-controller/helpers/utils_test.go index 5e46ece3044..2cd80e02d80 100644 --- a/pkg/proto/aksnodeconfig/v1/utils_test.go +++ b/aks-node-controller/helpers/utils_test.go @@ -1,12 +1,13 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. -package aksnodeconfigv1 +package helpers import ( "reflect" "testing" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" "github.com/Azure/agentbaker/pkg/agent/datamodel" ) @@ -17,28 +18,28 @@ func Test_getLoadBalancerSKU(t *testing.T) { tests := []struct { name string args args - want LoadBalancerConfig_LoadBalancerSku + want aksnodeconfigv1.LoadBalancerSku }{ { name: "LoadBalancerSKU Standard", args: args{ sku: "Standard", }, - want: LoadBalancerConfig_STANDARD, + want: aksnodeconfigv1.LoadBalancerSku_LOAD_BALANCER_SKU_STANDARD, }, { name: "LoadBalancerSKU Basic", args: args{ sku: "Basic", }, - want: LoadBalancerConfig_BASIC, + want: aksnodeconfigv1.LoadBalancerSku_LOAD_BALANCER_SKU_BASIC, }, { name: "LoadBalancerSKU Unspecified", args: args{ sku: "", }, - want: LoadBalancerConfig_UNSPECIFIED, + want: aksnodeconfigv1.LoadBalancerSku_LOAD_BALANCER_SKU_UNSPECIFIED, }, } for _, tt := range tests { @@ -57,28 +58,28 @@ func Test_getNetworkPluginType(t *testing.T) { tests := []struct { name string args args - want NetworkPlugin + want aksnodeconfigv1.NetworkPlugin }{ { name: "NetworkPlugin azure", args: args{ np: "azure", }, - want: NetworkPlugin_NP_AZURE, + want: aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_AZURE, }, { name: "NetworkPlugin kubenet", args: args{ np: "kubenet", }, - want: NetworkPlugin_NP_KUBENET, + want: aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_KUBENET, }, { name: "NetworkPlugin Unspecified", args: args{ np: "", }, - want: NetworkPlugin_NP_NONE, + want: aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_NONE, }, } for _, tt := range tests { @@ -97,28 +98,28 @@ func Test_getNetworkPolicyType(t *testing.T) { tests := []struct { name string args args - want NetworkPolicy + want aksnodeconfigv1.NetworkPolicy }{ { name: "NetworkPolicy azure", args: args{ np: "azure", }, - want: NetworkPolicy_NPO_AZURE, + want: aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_AZURE, }, { name: "NetworkPolicy calico", args: args{ np: "calico", }, - want: NetworkPolicy_NPO_CALICO, + want: aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_CALICO, }, { name: "NetworkPolicy Unspecified", args: args{ np: "", }, - want: NetworkPolicy_NPO_NONE, + want: aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_NONE, }, } for _, tt := range tests { diff --git a/aks-node-controller/parser/helper.go b/aks-node-controller/parser/helper.go index 1c51bbc44b5..9b5916bc50c 100644 --- a/aks-node-controller/parser/helper.go +++ b/aks-node-controller/parser/helper.go @@ -34,8 +34,9 @@ import ( "strings" "text/template" + "github.com/Azure/agentbaker/aks-node-controller/helpers" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" "github.com/Azure/agentbaker/pkg/agent" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" ) var ( @@ -61,56 +62,56 @@ func getFuncMapForContainerdConfigTemplate() template.FuncMap { "derefBool": deref[bool], "getIsKrustlet": getIsKrustlet, "getEnsureNoDupePromiscuousBridge": getEnsureNoDupePromiscuousBridge, - "isKubernetesVersionGe": aksnodeconfigv1.IsKubernetesVersionGe, + "isKubernetesVersionGe": helpers.IsKubernetesVersionGe, "getHasDataDir": getHasDataDir, "getEnableNvidia": getEnableNvidia, } } -func getStringFromVMType(enum aksnodeconfigv1.ClusterConfig_VM) string { +func getStringFromVMType(enum aksnodeconfigv1.VmType) string { switch enum { - case aksnodeconfigv1.ClusterConfig_STANDARD: - return aksnodeconfigv1.VMTypeStandard - case aksnodeconfigv1.ClusterConfig_VMSS: - return aksnodeconfigv1.VMTypeVmss - case aksnodeconfigv1.ClusterConfig_UNSPECIFIED: + case aksnodeconfigv1.VmType_VM_TYPE_STANDARD: + return helpers.VMTypeStandard + case aksnodeconfigv1.VmType_VM_TYPE_VMSS: + return helpers.VMTypeVmss + case aksnodeconfigv1.VmType_VM_TYPE_UNSPECIFIED: return "" default: return "" } } -//nolint:exhaustive // NetworkPlugin_NP_NONE and NetworkPlugin_NP_UNSPECIFIED should both return "" +//nolint:exhaustive // NetworkPlugin_NETWORK_PLUGIN_NONE and NetworkPlugin_NETWORK_PLUGIN_UNSPECIFIED should both return "" func getStringFromNetworkPluginType(enum aksnodeconfigv1.NetworkPlugin) string { switch enum { - case aksnodeconfigv1.NetworkPlugin_NP_AZURE: - return aksnodeconfigv1.NetworkPluginAzure - case aksnodeconfigv1.NetworkPlugin_NP_KUBENET: - return aksnodeconfigv1.NetworkPluginKubenet + case aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_AZURE: + return helpers.NetworkPluginAzure + case aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_KUBENET: + return helpers.NetworkPluginKubenet default: return "" } } -//nolint:exhaustive // NetworkPolicy_NPO_NONE and NetworkPolicy_NPO_UNSPECIFIED should both return "" +//nolint:exhaustive // NetworkPolicy_NETWORK_POLICY_NONE and NetworkPolicy_NETWORK_POLICY_UNSPECIFIED should both return "" func getStringFromNetworkPolicyType(enum aksnodeconfigv1.NetworkPolicy) string { switch enum { - case aksnodeconfigv1.NetworkPolicy_NPO_AZURE: - return aksnodeconfigv1.NetworkPolicyAzure - case aksnodeconfigv1.NetworkPolicy_NPO_CALICO: - return aksnodeconfigv1.NetworkPolicyCalico + case aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_AZURE: + return helpers.NetworkPolicyAzure + case aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_CALICO: + return helpers.NetworkPolicyCalico default: return "" } } //nolint:exhaustive // Default and LoadBalancerConfig_UNSPECIFIED should both return "" -func getStringFromLoadBalancerSkuType(enum aksnodeconfigv1.LoadBalancerConfig_LoadBalancerSku) string { +func getStringFromLoadBalancerSkuType(enum aksnodeconfigv1.LoadBalancerSku) string { switch enum { - case aksnodeconfigv1.LoadBalancerConfig_BASIC: - return aksnodeconfigv1.LoadBalancerBasic - case aksnodeconfigv1.LoadBalancerConfig_STANDARD: - return aksnodeconfigv1.LoadBalancerStandard + case aksnodeconfigv1.LoadBalancerSku_LOAD_BALANCER_SKU_BASIC: + return helpers.LoadBalancerBasic + case aksnodeconfigv1.LoadBalancerSku_LOAD_BALANCER_SKU_STANDARD: + return helpers.LoadBalancerStandard default: return "" } @@ -172,29 +173,29 @@ func getCustomCACertsStatus(customCACerts []string) bool { return len(customCACerts) > 0 } -func getEnableTLSBootstrap(bootstrapConfig *aksnodeconfigv1.TLSBootstrappingConfig) bool { +func getEnableTLSBootstrap(bootstrapConfig *aksnodeconfigv1.TlsBootstrappingConfig) bool { return bootstrapConfig.GetTlsBootstrappingToken() != "" } -func getEnableSecureTLSBootstrap(bootstrapConfig *aksnodeconfigv1.TLSBootstrappingConfig) bool { +func getEnableSecureTLSBootstrap(bootstrapConfig *aksnodeconfigv1.TlsBootstrappingConfig) bool { // TODO: Change logic to default to false once Secure TLS Bootstrapping is complete return bootstrapConfig.GetEnableSecureTlsBootstrapping() } -func getTLSBootstrapToken(bootstrapConfig *aksnodeconfigv1.TLSBootstrappingConfig) string { +func getTLSBootstrapToken(bootstrapConfig *aksnodeconfigv1.TlsBootstrappingConfig) string { return bootstrapConfig.GetTlsBootstrappingToken() } -func getCustomSecureTLSBootstrapAADServerAppID(bootstrapConfig *aksnodeconfigv1.TLSBootstrappingConfig) string { +func getCustomSecureTLSBootstrapAADServerAppID(bootstrapConfig *aksnodeconfigv1.TlsBootstrappingConfig) string { return bootstrapConfig.GetCustomSecureTlsBootstrappingAppserverAppid() } func getIsKrustlet(wr aksnodeconfigv1.WorkloadRuntime) bool { - return wr == aksnodeconfigv1.WorkloadRuntime_WASM_WASI + return wr == aksnodeconfigv1.WorkloadRuntime_WORKLOAD_RUNTIME_WASM_WASI } func getEnsureNoDupePromiscuousBridge(nc *aksnodeconfigv1.NetworkConfig) bool { - return nc.GetNetworkPlugin() == aksnodeconfigv1.NetworkPlugin_NP_KUBENET && nc.GetNetworkPolicy() != aksnodeconfigv1.NetworkPolicy_NPO_CALICO + return nc.GetNetworkPlugin() == aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_KUBENET && nc.GetNetworkPolicy() != aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_CALICO } func getHasSearchDomain(csd *aksnodeconfigv1.CustomSearchDomainConfig) bool { @@ -375,16 +376,16 @@ func getSysctlContent(s *aksnodeconfigv1.SysctlConfig) string { m["kernel.threads-max"] = s.GetKernelThreadsMax() } - if s.VMMaxMapCount != nil { - m["vm.max_map_count"] = s.GetVMMaxMapCount() + if s.VmMaxMapCount != nil { + m["vm.max_map_count"] = s.GetVmMaxMapCount() } - if s.VMSwappiness != nil { - m["vm.swappiness"] = s.GetVMSwappiness() + if s.VmSwappiness != nil { + m["vm.swappiness"] = s.GetVmSwappiness() } - if s.VMVfsCachePressure != nil { - m["vm.vfs_cache_pressure"] = s.GetVMVfsCachePressure() + if s.VmVfsCachePressure != nil { + m["vm.vfs_cache_pressure"] = s.GetVmVfsCachePressure() } return base64.StdEncoding.EncodeToString([]byte(createSortedKeyValuePairs(m, "\n"))) @@ -501,22 +502,22 @@ func getGpuDriverVersion(vmSize string) string { // IsSgxEnabledSKU determines if an VM SKU has SGX driver support. func getIsSgxEnabledSKU(vmSize string) bool { switch vmSize { - case aksnodeconfigv1.VMSizeStandardDc2s, aksnodeconfigv1.VMSizeStandardDc4s: + case helpers.VMSizeStandardDc2s, helpers.VMSizeStandardDc4s: return true } return false } -func getShouldConfigureHTTPProxy(httpProxyConfig *aksnodeconfigv1.HTTPProxyConfig) bool { +func getShouldConfigureHTTPProxy(httpProxyConfig *aksnodeconfigv1.HttpProxyConfig) bool { return httpProxyConfig.GetHttpProxy() != "" || httpProxyConfig.GetHttpsProxy() != "" } -func getShouldConfigureHTTPProxyCA(httpProxyConfig *aksnodeconfigv1.HTTPProxyConfig) bool { +func getShouldConfigureHTTPProxyCA(httpProxyConfig *aksnodeconfigv1.HttpProxyConfig) bool { return httpProxyConfig.GetProxyTrustedCa() != "" } func getIsAksCustomCloud(customCloudConfig *aksnodeconfigv1.CustomCloudConfig) bool { - return strings.EqualFold(customCloudConfig.GetCustomCloudEnvName(), aksnodeconfigv1.AksCustomCloudName) + return strings.EqualFold(customCloudConfig.GetCustomCloudEnvName(), helpers.AksCustomCloudName) } /* GetCloudTargetEnv determines and returns whether the region is a sovereign cloud which @@ -532,20 +533,20 @@ func getCloudTargetEnv(v *aksnodeconfigv1.Configuration) string { case strings.HasPrefix(loc, "usgov") || strings.HasPrefix(loc, "usdod"): return "AzureUSGovernmentCloud" default: - return aksnodeconfigv1.DefaultCloudName + return helpers.DefaultCloudName } } func getTargetEnvironment(v *aksnodeconfigv1.Configuration) string { if getIsAksCustomCloud(v.GetCustomCloudConfig()) { - return aksnodeconfigv1.AksCustomCloudName + return helpers.AksCustomCloudName } return getCloudTargetEnv(v) } func getTargetCloud(v *aksnodeconfigv1.Configuration) string { if getIsAksCustomCloud(v.GetCustomCloudConfig()) { - return aksnodeconfigv1.AzureStackCloud + return helpers.AzureStackCloud } return getTargetEnvironment(v) } @@ -559,7 +560,7 @@ func getAzureEnvironmentFilepath(v *aksnodeconfigv1.Configuration) string { func getLinuxAdminUsername(username string) string { if username == "" { - return aksnodeconfigv1.DefaultLinuxUser + return helpers.DefaultLinuxUser } return username } @@ -585,15 +586,15 @@ func getServicePrincipalFileContent(authConfig *aksnodeconfigv1.AuthConfig) stri return base64.StdEncoding.EncodeToString([]byte(authConfig.GetServicePrincipalSecret())) } -func getEnableSwapConfig(v *aksnodeconfigv1.CustomLinuxOSConfig) bool { +func getEnableSwapConfig(v *aksnodeconfigv1.CustomLinuxOsConfig) bool { return v.GetEnableSwapConfig() && v.GetSwapFileSize() > 0 } -func getShouldConfigTransparentHugePage(v *aksnodeconfigv1.CustomLinuxOSConfig) bool { +func getShouldConfigTransparentHugePage(v *aksnodeconfigv1.CustomLinuxOsConfig) bool { return v.GetTransparentDefrag() != "" || v.GetTransparentHugepageSupport() != "" } -func getProxyVariables(proxyConfig *aksnodeconfigv1.HTTPProxyConfig) string { +func getProxyVariables(proxyConfig *aksnodeconfigv1.HttpProxyConfig) string { // only use https proxy, if user doesn't specify httpsProxy we autofill it with value from httpProxy. proxyVars := "" if proxyConfig.GetHttpProxy() != "" { @@ -614,7 +615,7 @@ func getHasDataDir(kubeletConfig *aksnodeconfigv1.KubeletConfig) bool { } func getHasKubeletDiskType(kubeletConfig *aksnodeconfigv1.KubeletConfig) bool { - return kubeletConfig.GetKubeletDiskType() == aksnodeconfigv1.KubeletDisk_TEMP_DISK + return kubeletConfig.GetKubeletDiskType() == aksnodeconfigv1.KubeletDisk_KUBELET_DISK_TEMP_DISK } func getInitAKSCustomCloudFilepath() string { diff --git a/aks-node-controller/parser/helper_test.go b/aks-node-controller/parser/helper_test.go index 99f4339545c..be58c6fc5fa 100644 --- a/aks-node-controller/parser/helper_test.go +++ b/aks-node-controller/parser/helper_test.go @@ -21,8 +21,8 @@ import ( "reflect" "testing" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" - "github.com/Azure/go-autorest/autorest/to" + "github.com/Azure/agentbaker/aks-node-controller/helpers" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" ) func Test_getSysctlContent(t *testing.T) { @@ -54,9 +54,9 @@ net.ipv4.tcp_retries2=8`)), name: "SysctlConfig with custom values", args: args{ s: &aksnodeconfigv1.SysctlConfig{ - NetIpv4TcpMaxSynBacklog: to.Int32Ptr(int32(9999)), - NetCoreRmemDefault: to.Int32Ptr(int32(9999)), - NetIpv4IpLocalPortRange: to.StringPtr("32768 62535"), + NetIpv4TcpMaxSynBacklog: ToPtr(int32(9999)), + NetCoreRmemDefault: ToPtr(int32(9999)), + NetIpv4IpLocalPortRange: ToPtr("32768 62535"), }, }, want: base64.StdEncoding.EncodeToString( @@ -261,7 +261,7 @@ func Test_getContainerdConfig(t *testing.T) { name: "Default Configuration", args: args{ aksnodeconfig: &aksnodeconfigv1.Configuration{ - NeedsCgroupv2: to.BoolPtr(true), + NeedsCgroupv2: ToPtr(true), }, }, want: base64.StdEncoding.EncodeToString([]byte(`version = 2 @@ -368,7 +368,7 @@ func Test_getAzureEnvironmentFilepath(t *testing.T) { args: args{ v: &aksnodeconfigv1.Configuration{ CustomCloudConfig: &aksnodeconfigv1.CustomCloudConfig{ - CustomCloudEnvName: aksnodeconfigv1.AksCustomCloudName, + CustomCloudEnvName: helpers.AksCustomCloudName, }, }, }, @@ -397,8 +397,8 @@ func Test_getEnsureNoDupePromiscuousBridge(t *testing.T) { name: "NetworkConfig with no promiscuous bridge", args: args{ nc: &aksnodeconfigv1.NetworkConfig{ - NetworkPlugin: aksnodeconfigv1.NetworkPlugin_NP_AZURE, - NetworkPolicy: aksnodeconfigv1.NetworkPolicy_NPO_AZURE, + NetworkPlugin: aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_AZURE, + NetworkPolicy: aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_AZURE, }, }, want: false, @@ -407,8 +407,8 @@ func Test_getEnsureNoDupePromiscuousBridge(t *testing.T) { name: "NetworkConfig with promiscuous bridge", args: args{ nc: &aksnodeconfigv1.NetworkConfig{ - NetworkPlugin: aksnodeconfigv1.NetworkPlugin_NP_KUBENET, - NetworkPolicy: aksnodeconfigv1.NetworkPolicy_NPO_AZURE, + NetworkPlugin: aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_KUBENET, + NetworkPolicy: aksnodeconfigv1.NetworkPolicy_NETWORK_POLICY_AZURE, }, }, want: true, @@ -642,7 +642,7 @@ func TestIsKubernetesVersionGe(t *testing.T) { } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - if got := aksnodeconfigv1.IsKubernetesVersionGe(tt.args.actualVersion, tt.args.version); got != tt.want { + if got := helpers.IsKubernetesVersionGe(tt.args.actualVersion, tt.args.version); got != tt.want { t.Errorf("IsKubernetesVersionGe() = %v, want %v", got, tt.want) } }) @@ -733,7 +733,7 @@ func Test_getPortRangeEndValue(t *testing.T) { func Test_getShouldConfigureHTTPProxy(t *testing.T) { type args struct { - httpProxyConfig *aksnodeconfigv1.HTTPProxyConfig + httpProxyConfig *aksnodeconfigv1.HttpProxyConfig } tests := []struct { name string @@ -748,14 +748,14 @@ func Test_getShouldConfigureHTTPProxy(t *testing.T) { { name: "Empty HTTPProxyConfig", args: args{ - httpProxyConfig: &aksnodeconfigv1.HTTPProxyConfig{}, + httpProxyConfig: &aksnodeconfigv1.HttpProxyConfig{}, }, want: false, }, { name: "HTTPProxyConfig with empty HttpProxy and valid HttpsProxy", args: args{ - httpProxyConfig: &aksnodeconfigv1.HTTPProxyConfig{ + httpProxyConfig: &aksnodeconfigv1.HttpProxyConfig{ HttpProxy: "", HttpsProxy: "https://fakeproxy.com:8080", }, @@ -765,7 +765,7 @@ func Test_getShouldConfigureHTTPProxy(t *testing.T) { { name: "HTTPProxyConfig with valid HttpProxy and empty HttpsProxy", args: args{ - httpProxyConfig: &aksnodeconfigv1.HTTPProxyConfig{ + httpProxyConfig: &aksnodeconfigv1.HttpProxyConfig{ HttpProxy: "http://fakeproxy.com:8080", HttpsProxy: "", }, @@ -775,7 +775,7 @@ func Test_getShouldConfigureHTTPProxy(t *testing.T) { { name: "HTTPProxyConfig with empty HttpProxy and empty HttpsProxy", args: args{ - httpProxyConfig: &aksnodeconfigv1.HTTPProxyConfig{ + httpProxyConfig: &aksnodeconfigv1.HttpProxyConfig{ HttpProxy: "", HttpsProxy: "", NoProxyEntries: []string{"fakesite1.com", "fakesite2.com"}, @@ -786,7 +786,7 @@ func Test_getShouldConfigureHTTPProxy(t *testing.T) { { name: "HTTPProxyConfig with valid HttpProxy", args: args{ - httpProxyConfig: &aksnodeconfigv1.HTTPProxyConfig{ + httpProxyConfig: &aksnodeconfigv1.HttpProxyConfig{ HttpProxy: "http://fakeproxy.com:8080", }, }, @@ -804,7 +804,7 @@ func Test_getShouldConfigureHTTPProxy(t *testing.T) { func Test_getShouldConfigureHTTPProxyCA(t *testing.T) { type args struct { - httpProxyConfig *aksnodeconfigv1.HTTPProxyConfig + httpProxyConfig *aksnodeconfigv1.HttpProxyConfig } tests := []struct { name string @@ -819,14 +819,14 @@ func Test_getShouldConfigureHTTPProxyCA(t *testing.T) { { name: "Empty HTTPProxyConfig", args: args{ - httpProxyConfig: &aksnodeconfigv1.HTTPProxyConfig{}, + httpProxyConfig: &aksnodeconfigv1.HttpProxyConfig{}, }, want: false, }, { name: "HTTPProxyConfig with empty CA", args: args{ - httpProxyConfig: &aksnodeconfigv1.HTTPProxyConfig{ + httpProxyConfig: &aksnodeconfigv1.HttpProxyConfig{ HttpProxy: "http://fakeproxy.com:8080", ProxyTrustedCa: "", }, @@ -855,7 +855,7 @@ func Test_getTargetEnvironment(t *testing.T) { { name: "Nil CustomCloudConfig", args: args{}, - want: aksnodeconfigv1.DefaultCloudName, + want: helpers.DefaultCloudName, }, { name: "Empty CustomCloudConfig", @@ -864,7 +864,7 @@ func Test_getTargetEnvironment(t *testing.T) { CustomCloudConfig: &aksnodeconfigv1.CustomCloudConfig{}, }, }, - want: aksnodeconfigv1.DefaultCloudName, + want: helpers.DefaultCloudName, }, { name: "CustomCloudConfig with empty TargetEnvironment", @@ -873,18 +873,18 @@ func Test_getTargetEnvironment(t *testing.T) { CustomCloudConfig: &aksnodeconfigv1.CustomCloudConfig{}, }, }, - want: aksnodeconfigv1.DefaultCloudName, + want: helpers.DefaultCloudName, }, { name: "CustomCloudConfig with TargetEnvironment", args: args{ v: &aksnodeconfigv1.Configuration{ CustomCloudConfig: &aksnodeconfigv1.CustomCloudConfig{ - CustomCloudEnvName: aksnodeconfigv1.AksCustomCloudName, + CustomCloudEnvName: helpers.AksCustomCloudName, }, }, }, - want: aksnodeconfigv1.AksCustomCloudName, + want: helpers.AksCustomCloudName, }, } for _, tt := range tests { @@ -908,7 +908,7 @@ func Test_getTargetCloud(t *testing.T) { { name: "Nil CustomCloudConfig", args: args{}, - want: aksnodeconfigv1.DefaultCloudName, + want: helpers.DefaultCloudName, }, { name: "Empty CustomCloudConfig", @@ -917,18 +917,18 @@ func Test_getTargetCloud(t *testing.T) { CustomCloudConfig: &aksnodeconfigv1.CustomCloudConfig{}, }, }, - want: aksnodeconfigv1.DefaultCloudName, + want: helpers.DefaultCloudName, }, { name: "CustomCloudConfig with TargetEnvironment", args: args{ v: &aksnodeconfigv1.Configuration{ CustomCloudConfig: &aksnodeconfigv1.CustomCloudConfig{ - CustomCloudEnvName: aksnodeconfigv1.AksCustomCloudName, + CustomCloudEnvName: helpers.AksCustomCloudName, }, }, }, - want: aksnodeconfigv1.AzureStackCloud, + want: helpers.AzureStackCloud, }, } for _, tt := range tests { @@ -954,7 +954,7 @@ func Test_getLinuxAdminUsername(t *testing.T) { args: args{ username: "", }, - want: aksnodeconfigv1.DefaultLinuxUser, + want: helpers.DefaultLinuxUser, }, { name: "Non-empty username", @@ -997,9 +997,9 @@ func Test_getIsSgxEnabledSKU(t *testing.T) { want: false, }, { - name: aksnodeconfigv1.VMSizeStandardDc2s, + name: helpers.VMSizeStandardDc2s, args: args{ - vmSize: aksnodeconfigv1.VMSizeStandardDc2s, + vmSize: helpers.VMSizeStandardDc2s, }, want: true, }, diff --git a/aks-node-controller/parser/parser.go b/aks-node-controller/parser/parser.go index 172d9208d52..f8100ba4d17 100644 --- a/aks-node-controller/parser/parser.go +++ b/aks-node-controller/parser/parser.go @@ -11,7 +11,7 @@ import ( "strings" "text/template" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" ) var ( diff --git a/aks-node-controller/parser/parser_test.go b/aks-node-controller/parser/parser_test.go index 1980833255d..31d9f0b1cf0 100644 --- a/aks-node-controller/parser/parser_test.go +++ b/aks-node-controller/parser/parser_test.go @@ -1,9 +1,8 @@ -package parser_test +package parser import ( "context" "encoding/base64" - "encoding/json" "fmt" "log" "os" @@ -11,10 +10,10 @@ import ( "strings" "testing" - "github.com/Azure/agentbaker/aks-node-controller/parser" + "github.com/Azure/agentbaker/aks-node-controller/helpers" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" + "github.com/Azure/agentbaker/aks-node-controller/pkg/nodeconfigutils" "github.com/Azure/agentbaker/pkg/agent/datamodel" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" - "github.com/Azure/go-autorest/autorest/to" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) @@ -22,6 +21,11 @@ import ( // test certificate. const encodedTestCert = "LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSUgvVENDQmVXZ0F3SUJBZ0lRYUJZRTMvTTA4WEhZQ25OVm1jRkJjakFOQmdrcWhraUc5dzBCQVFzRkFEQnkKTVFzd0NRWURWUVFHRXdKVlV6RU9NQXdHQTFVRUNBd0ZWR1Y0WVhNeEVEQU9CZ05WQkFjTUIwaHZkWE4wYjI0eApFVEFQQmdOVkJBb01DRk5UVENCRGIzSndNUzR3TEFZRFZRUUREQ1ZUVTB3dVkyOXRJRVZXSUZOVFRDQkpiblJsCmNtMWxaR2xoZEdVZ1EwRWdVbE5CSUZJek1CNFhEVEl3TURRd01UQXdOVGd6TTFvWERUSXhNRGN4TmpBd05UZ3oKTTFvd2diMHhDekFKQmdOVkJBWVRBbFZUTVE0d0RBWURWUVFJREFWVVpYaGhjekVRTUE0R0ExVUVCd3dIU0c5MQpjM1J2YmpFUk1BOEdBMVVFQ2d3SVUxTk1JRU52Y25BeEZqQVVCZ05WQkFVVERVNVdNakF3T0RFMk1UUXlORE14CkZEQVNCZ05WQkFNTUMzZDNkeTV6YzJ3dVkyOXRNUjB3R3dZRFZRUVBEQlJRY21sMllYUmxJRTl5WjJGdWFYcGgKZEdsdmJqRVhNQlVHQ3lzR0FRUUJnamM4QWdFQ0RBWk9aWFpoWkdFeEV6QVJCZ3NyQmdFRUFZSTNQQUlCQXhNQwpWVk13Z2dFaU1BMEdDU3FHU0liM0RRRUJBUVVBQTRJQkR3QXdnZ0VLQW9JQkFRREhoZVJrYmIxRkNjN3hSS3N0CndLMEpJR2FLWTh0N0piUzJiUTJiNllJSkRnbkh1SVlIcUJyQ1VWNzlvZWxpa2tva1JrRnZjdnBhS2luRkhEUUgKVXBXRUk2UlVFUlltU0NnM084V2k0MnVPY1YyQjVaYWJtWENrd2R4WTVFY2w1MUJiTThVbkdkb0FHYmRObWlSbQpTbVRqY3MrbGhNeGc0ZkZZNmxCcGlFVkZpR1VqR1JSKzYxUjY3THo2VTRLSmVMTmNDbTA3UXdGWUtCbXBpMDhnCmR5Z1N2UmRVdzU1Sm9wcmVkaitWR3RqVWtCNGhGVDRHUVgvZ2h0NjlSbHF6Lys4dTBkRVFraHVVdXVjcnFhbG0KU0d5NDNIUndCZkRLRndZZVdNN0NQTWQ1ZS9kTyt0MDh0OFBianpWVFR2NWhRRENzRVlJVjJUN0FGSTlTY054TQpraDcvQWdNQkFBR2pnZ05CTUlJRFBUQWZCZ05WSFNNRUdEQVdnQlMvd1ZxSC95ajZRVDM5dDAva0hhK2dZVmdwCnZUQi9CZ2dyQmdFRkJRY0JBUVJ6TUhFd1RRWUlLd1lCQlFVSE1BS0dRV2gwZEhBNkx5OTNkM2N1YzNOc0xtTnYKYlM5eVpYQnZjMmwwYjNKNUwxTlRUR052YlMxVGRXSkRRUzFGVmkxVFUwd3RVbE5CTFRRd09UWXRVak11WTNKMApNQ0FHQ0NzR0FRVUZCekFCaGhSb2RIUndPaTh2YjJOemNITXVjM05zTG1OdmJUQWZCZ05WSFJFRUdEQVdnZ3QzCmQzY3VjM05zTG1OdmJZSUhjM05zTG1OdmJUQmZCZ05WSFNBRVdEQldNQWNHQldlQkRBRUJNQTBHQ3lxRWFBR0cKOW5jQ0JRRUJNRHdHRENzR0FRUUJncWt3QVFNQkJEQXNNQ29HQ0NzR0FRVUZCd0lCRmg1b2RIUndjem92TDNkMwpkeTV6YzJ3dVkyOXRMM0psY0c5emFYUnZjbmt3SFFZRFZSMGxCQll3RkFZSUt3WUJCUVVIQXdJR0NDc0dBUVVGCkJ3TUJNRWdHQTFVZEh3UkJNRDh3UGFBN29EbUdOMmgwZEhBNkx5OWpjbXh6TG5OemJDNWpiMjB2VTFOTVkyOXQKTFZOMVlrTkJMVVZXTFZOVFRDMVNVMEV0TkRBNU5pMVNNeTVqY213d0hRWURWUjBPQkJZRUZBREFGVUlhenc1cgpaSUhhcG5SeElVbnB3K0dMTUE0R0ExVWREd0VCL3dRRUF3SUZvRENDQVgwR0Npc0dBUVFCMW5rQ0JBSUVnZ0Z0CkJJSUJhUUZuQUhjQTlseVVMOUYzTUNJVVZCZ0lNSlJXanVOTkV4a3p2OThNTHlBTHpFN3haT01BQUFGeE0waG8KYndBQUJBTUFTREJHQWlFQTZ4ZWxpTlI4R2svNjNwWWRuUy92T3gvQ2pwdEVNRXY4OVdXaDEvdXJXSUVDSVFEeQpCcmVIVTI1RHp3dWtRYVJRandXNjU1WkxrcUNueGJ4UVdSaU9lbWo5SkFCMUFKUWd2QjZPMVkxc2lITWZnb3NpCkxBM1IyazFlYkUrVVBXSGJUaTlZVGFMQ0FBQUJjVE5JYU53QUFBUURBRVl3UkFJZ0dSRTR3emFiTlJkRDhrcS8KdkZQM3RRZTJobTB4NW5YdWxvd2g0SWJ3M2xrQ0lGWWIvM2xTRHBsUzdBY1I0citYcFd0RUtTVEZXSm1OQ1JiYwpYSnVyMlJHQkFIVUE3c0NWN28xeVpBK1M0OE81RzhjU28ybHFDWHRMYWhvVU9PWkhzc3Z0eGZrQUFBRnhNMGhvCjh3QUFCQU1BUmpCRUFpQjZJdmJvV3NzM1I0SXRWd2plYmw3RDN5b0ZhWDBORGgyZFdoaGd3Q3hySHdJZ0NmcTcKb2NNQzV0KzFqaTVNNXhhTG1QQzRJK1dYM0kvQVJrV1N5aU83SVFjd0RRWUpLb1pJaHZjTkFRRUxCUUFEZ2dJQgpBQ2V1dXI0UW51anFtZ3VTckhVM21oZitjSm9kelRRTnFvNHRkZStQRDEvZUZkWUFFTHU4eEYrMEF0N3hKaVBZCmk1Ukt3aWx5UDU2diszaVkyVDlsdzdTOFRKMDQxVkxoYUlLcDE0TXpTVXpSeWVvT0FzSjdRQURNQ2xIS1VEbEgKVVUycE51bzg4WTZpZ292VDNic253Sk5pRVFOcXltU1NZaGt0dzB0YWR1b3FqcVhuMDZnc1Zpb1dUVkRYeXNkNQpxRXg0dDZzSWdJY01tMjZZSDF2SnBDUUVoS3BjMnkwN2dSa2tsQlpSdE1qVGh2NGNYeXlNWDd1VGNkVDdBSkJQCnVlaWZDb1YyNUp4WHVvOGQ1MTM5Z3dQMUJBZTdJQlZQeDJ1N0tOL1V5T1hkWm13TWYvVG1GR3dEZENmc3lIZi8KWnNCMndMSG96VFlvQVZtUTlGb1UxSkxnY1ZpdnFKK3ZObEJoSFhobHhNZE4wajgwUjlOejZFSWdsUWplSzNPOApJL2NGR20vQjgrNDJoT2xDSWQ5WmR0bmRKY1JKVmppMHdEMHF3ZXZDYWZBOWpKbEh2L2pzRStJOVV6NmNwQ3loCnN3K2xyRmR4VWdxVTU4YXhxZUs4OUZSK05vNHEwSUlPK0ppMXJKS3I5bmtTQjBCcVhvelZuRTFZQi9LTHZkSXMKdVlaSnVxYjJwS2t1K3p6VDZnVXdIVVRadkJpTk90WEw0Tnh3Yy9LVDdXek9TZDJ3UDEwUUk4REtnNHZmaU5EcwpIV21CMWM0S2ppNmdPZ0E1dVNVemFHbXEvdjRWbmNLNVVyK245TGJmbmZMYzI4SjVmdC9Hb3Rpbk15RGszaWFyCkYxMFlscWNPbWVYMXVGbUtiZGkvWG9yR2xrQ29NRjNURHg4cm1wOURCaUIvCi0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0=" //nolint:lll +// ToPtr is a generic function that takes a value and returns a pointer to it. +func ToPtr[T any](value T) *T { + return &value +} + func TestBuildCSECmd(t *testing.T) { tests := []struct { name string @@ -37,7 +41,7 @@ func TestBuildCSECmd(t *testing.T) { aksNodeConfigUpdator: func(aksNodeConfig *aksnodeconfigv1.Configuration) { aksNodeConfig.GpuConfig.GpuInstanceProfile = "MIG7g" // Skip GPU driver install - aksNodeConfig.GpuConfig.EnableNvidia = to.BoolPtr(false) + aksNodeConfig.GpuConfig.EnableNvidia = ToPtr(false) aksNodeConfig.VmSize = "Standard_ND96asr_v4" }, validator: func(cmd *exec.Cmd) { @@ -77,7 +81,7 @@ oom_score = 0 folder: "AKSUbuntu2204+SSHStatusOn", k8sVersion: "1.24.2", aksNodeConfigUpdator: func(aksNodeConfig *aksnodeconfigv1.Configuration) { - aksNodeConfig.EnableSsh = to.BoolPtr(true) + aksNodeConfig.EnableSsh = ToPtr(true) }, validator: func(cmd *exec.Cmd) { vars := environToMap(cmd.Env) @@ -104,12 +108,12 @@ oom_score = 0 folder: "AKSUbuntu2204+CustomCloud", k8sVersion: "1.24.2", aksNodeConfigUpdator: func(aksNodeConfig *aksnodeconfigv1.Configuration) { - aksNodeConfig.CustomCloudConfig.CustomCloudEnvName = aksnodeconfigv1.AksCustomCloudName + aksNodeConfig.CustomCloudConfig.CustomCloudEnvName = helpers.AksCustomCloudName }, validator: func(cmd *exec.Cmd) { vars := environToMap(cmd.Env) - assert.Equal(t, aksnodeconfigv1.AksCustomCloudName, vars["TARGET_ENVIRONMENT"]) - assert.Equal(t, aksnodeconfigv1.AzureStackCloud, vars["TARGET_CLOUD"]) + assert.Equal(t, helpers.AksCustomCloudName, vars["TARGET_ENVIRONMENT"]) + assert.Equal(t, helpers.AzureStackCloud, vars["TARGET_CLOUD"]) assert.Equal(t, "true", vars["IS_CUSTOM_CLOUD"]) }, }, @@ -118,19 +122,19 @@ oom_score = 0 folder: "AKSUbuntu2204+CustomOSConfig", k8sVersion: "1.24.2", aksNodeConfigUpdator: func(aksNodeConfig *aksnodeconfigv1.Configuration) { - aksNodeConfig.CustomLinuxOsConfig = &aksnodeconfigv1.CustomLinuxOSConfig{ + aksNodeConfig.CustomLinuxOsConfig = &aksnodeconfigv1.CustomLinuxOsConfig{ EnableSwapConfig: true, SwapFileSize: int32(1500), TransparentHugepageSupport: "never", TransparentDefrag: "defer+madvise", SysctlConfig: &aksnodeconfigv1.SysctlConfig{ - NetCoreSomaxconn: to.Int32Ptr(1638499), - NetCoreRmemDefault: to.Int32Ptr(456000), - NetCoreWmemDefault: to.Int32Ptr(89000), - NetIpv4TcpTwReuse: to.BoolPtr(true), - NetIpv4IpLocalPortRange: to.StringPtr("32768 65400"), - NetIpv4TcpMaxSynBacklog: to.Int32Ptr(1638498), - NetIpv4NeighDefaultGcThresh1: to.Int32Ptr(10001), + NetCoreSomaxconn: ToPtr[int32](1638499), + NetCoreRmemDefault: ToPtr[int32](456000), + NetCoreWmemDefault: ToPtr[int32](89000), + NetIpv4TcpTwReuse: ToPtr(true), + NetIpv4IpLocalPortRange: ToPtr("32768 65400"), + NetIpv4TcpMaxSynBacklog: ToPtr[int32](1638498), + NetIpv4NeighDefaultGcThresh1: ToPtr[int32](10001), }, } }, @@ -153,7 +157,7 @@ oom_score = 0 aksNodeConfigUpdator: func(aksNodeConfig *aksnodeconfigv1.Configuration) { aksNodeConfig.IsKata = true aksNodeConfig.EnableUnattendedUpgrade = true - aksNodeConfig.NeedsCgroupv2 = to.BoolPtr(true) + aksNodeConfig.NeedsCgroupv2 = ToPtr(true) }, validator: func(cmd *exec.Cmd) { vars := environToMap(cmd.Env) @@ -167,7 +171,7 @@ oom_score = 0 folder: "AKSUbuntu1804+Containerd+Kubenet", k8sVersion: "1.19.13", aksNodeConfigUpdator: func(aksNodeConfig *aksnodeconfigv1.Configuration) { - aksNodeConfig.NetworkConfig.NetworkPlugin = aksnodeconfigv1.GetNetworkPluginType(aksnodeconfigv1.NetworkPluginKubenet) + aksNodeConfig.NetworkConfig.NetworkPlugin = helpers.GetNetworkPluginType(helpers.NetworkPluginKubenet) }, validator: func(cmd *exec.Cmd) { vars := environToMap(cmd.Env) @@ -180,7 +184,7 @@ oom_score = 0 folder: "AKSUbuntu1804+HTTPProxy", k8sVersion: "1.18.14", aksNodeConfigUpdator: func(aksNodeConfig *aksnodeconfigv1.Configuration) { - aksNodeConfig.HttpProxyConfig = &aksnodeconfigv1.HTTPProxyConfig{ + aksNodeConfig.HttpProxyConfig = &aksnodeconfigv1.HttpProxyConfig{ HttpProxy: "http://myproxy.server.com:8080/", HttpsProxy: "https://myproxy.server.com:8080/", NoProxyEntries: []string{ @@ -287,15 +291,14 @@ oom_score = 0 "--container-log-max-size": "50M", } - aksnodeconfigv1.ValidateAndSetLinuxKubeletFlags(kubeletConfig, cs, agentPool) - aksNodeConfigBuilder := aksnodeconfigv1.NewAKSNodeConfigBuilder() + helpers.ValidateAndSetLinuxKubeletFlags(kubeletConfig, cs, agentPool) aksNodeConfig := &aksnodeconfigv1.Configuration{ LinuxAdminUsername: "azureuser", VmSize: "Standard_DS1_v2", ClusterConfig: &aksnodeconfigv1.ClusterConfig{ Location: "southcentralus", ResourceGroup: "resourceGroupName", - VmType: aksnodeconfigv1.ClusterConfig_VMSS, + VmType: aksnodeconfigv1.VmType_VM_TYPE_VMSS, ClusterNetworkConfig: &aksnodeconfigv1.ClusterNetworkConfig{ SecurityGroupName: "aks-agentpool-36873793-nsg", VnetName: "aks-vnet-07752737", @@ -315,7 +318,7 @@ oom_score = 0 NetworkConfig: &aksnodeconfigv1.NetworkConfig{ VnetCniPluginsUrl: "https://acs-mirror.azureedge.net/azure-cni/v1.1.3/binaries/azure-vnet-cni-linux-amd64-v1.1.3.tgz", }, - GpuConfig: &aksnodeconfigv1.GPUConfig{ + GpuConfig: &aksnodeconfigv1.GpuConfig{ ConfigGpuDriver: true, GpuDevicePlugin: false, }, @@ -324,21 +327,20 @@ oom_score = 0 ContainerdConfig: &aksnodeconfigv1.ContainerdConfig{ ContainerdDownloadUrlBase: "https://storage.googleapis.com/cri-containerd-release/", }, - OutboundCommand: aksnodeconfigv1.GetDefaultOutboundCommand(), + OutboundCommand: helpers.GetDefaultOutboundCommand(), KubeletConfig: &aksnodeconfigv1.KubeletConfig{ EnableKubeletConfigFile: false, - KubeletFlags: aksnodeconfigv1.GetKubeletConfigFlag(kubeletConfig, cs, agentPool, false), - KubeletNodeLabels: aksnodeconfigv1.GetKubeletNodeLabels(agentPool), + KubeletFlags: helpers.GetKubeletConfigFlag(kubeletConfig, cs, agentPool, false), + KubeletNodeLabels: helpers.GetKubeletNodeLabels(agentPool), }, + CustomCloudConfig: &aksnodeconfigv1.CustomCloudConfig{}, } - aksNodeConfigBuilder.ApplyConfiguration(aksNodeConfig) - aksNodeConfig = aksNodeConfigBuilder.GetAKSNodeConfig() if tt.aksNodeConfigUpdator != nil { tt.aksNodeConfigUpdator(aksNodeConfig) } - cseCMD, err := parser.BuildCSECmd(context.TODO(), aksNodeConfigBuilder.GetAKSNodeConfig()) + cseCMD, err := BuildCSECmd(context.TODO(), aksNodeConfig) require.NoError(t, err) generateTestDataIfRequested(t, tt.folder, cseCMD) @@ -397,17 +399,14 @@ func TestAKSNodeConfigCompatibilityFromJsonToCSECommand(t *testing.T) { assert.Equal(t, "", vars["HTTPS_PROXY"]) assert.Equal(t, "", vars["NO_PROXY"]) assert.Equal(t, "", vars["PROXY_TRUSTED_CA"]) - assert.Equal(t, aksnodeconfigv1.DefaultCloudName, vars["TARGET_ENVIRONMENT"]) + assert.Equal(t, helpers.DefaultCloudName, vars["TARGET_ENVIRONMENT"]) }, }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { - aksNodeConfigBuilder := aksnodeconfigv1.NewAKSNodeConfigBuilder() - aksNodeConfigBuilder.ApplyConfiguration(&aksnodeconfigv1.Configuration{}) - - cseCMD, err := parser.BuildCSECmd(context.TODO(), aksNodeConfigBuilder.GetAKSNodeConfig()) + cseCMD, err := BuildCSECmd(context.TODO(), &aksnodeconfigv1.Configuration{}) require.NoError(t, err) generateTestDataIfRequested(t, tt.folder, cseCMD) @@ -431,51 +430,40 @@ func environToMap(env []string) map[string]string { } func TestContractCompatibilityHandledByProtobuf(t *testing.T) { - tests := []struct { - name string - aksNodeConfigUTFilePath string - validator func(*aksnodeconfigv1.Configuration, *aksnodeconfigv1.Configuration) - }{ - { - name: "with unexpected new fields in json should be ignored", - aksNodeConfigUTFilePath: "./testdata/test_aksnodeconfig_fields_unexpected.json", - validator: func(aksNodeConfigExpected *aksnodeconfigv1.Configuration, aksNodeConfigUT *aksnodeconfigv1.Configuration) { - // The unexpected fields will natively be ignored when unmarshalling the json to the contract object. - // We use this test to ensure it. - assert.Equal(t, aksNodeConfigExpected, aksNodeConfigUT) - }, - }, - { - name: "with missing fields in json should be set with default values", - aksNodeConfigUTFilePath: "./testdata/test_aksnodeconfig_fields_missing.json", - validator: func(_ *aksnodeconfigv1.Configuration, aksNodeConfigUT *aksnodeconfigv1.Configuration) { - // if a string field is unset, it will be set to empty string by protobuf by default - assert.Equal(t, "", aksNodeConfigUT.GetLinuxAdminUsername()) + t.Run("with unexpected new fields in json should be ignored", func(t *testing.T) { + // The unexpected fields will natively be ignored when unmarshalling the json to the contract object. + // We use this test to ensure it. + assert.Equal(t, + loadAKSNodeConfig("./testdata/test_aksnodeconfig.json"), + loadAKSNodeConfig("./testdata/test_aksnodeconfig_fields_unexpected.json"), + ) + }) - // if an optional (explicit presence) bool field is unset, it will be set to nil by protobuf by default. - // Here we don't use the getter because getter is nil safe and will default to false. - assert.Nil(t, aksNodeConfigUT.IsVhd) + t.Run("with missing fields in json should be set with default values", func(t *testing.T) { + aksNodeConfigUT := loadAKSNodeConfig("./testdata/test_aksnodeconfig_fields_missing.json") + assert.Equal(t, "", aksNodeConfigUT.GetLinuxAdminUsername()) - // if an optional (explicit presence) field is unset, it will be set to nil by protobuf by default. - // Here we don't use the getter because getter is nil safe and will default to false. - assert.Nil(t, aksNodeConfigUT.ClusterConfig.LoadBalancerConfig.ExcludeMasterFromStandardLoadBalancer) + // if an optional (explicit presence) bool field is unset, it will be set to nil by protobuf by default. + // Here we don't use the getter because getter is nil safe and will default to false. + assert.Nil(t, aksNodeConfigUT.IsVhd) - // if an optional enum field is unset, it will be set to 0 (in this case LoadBalancerConfig_UNSPECIFIED) by protobuf by default. - assert.Equal(t, aksnodeconfigv1.LoadBalancerConfig_UNSPECIFIED, aksNodeConfigUT.ClusterConfig.LoadBalancerConfig.GetLoadBalancerSku()) - }, - }, - } + // if an optional (explicit presence) field is unset, it will be set to nil by protobuf by default. + // Here we don't use the getter because getter is nil safe and will default to false. + assert.Nil(t, aksNodeConfigUT.ClusterConfig.LoadBalancerConfig.ExcludeMasterFromStandardLoadBalancer) - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - aksNodeConfigExpected := getAKSNodeConfigInstance("./testdata/test_aksnodeconfig.json") - aksNodeConfigUT := getAKSNodeConfigInstance(tt.aksNodeConfigUTFilePath) + // if an optional enum field is unset, it will be set to 0 (in this case LoadBalancerConfig_UNSPECIFIED) by protobuf by default. + assert.Equal(t, aksnodeconfigv1.LoadBalancerSku_LOAD_BALANCER_SKU_UNSPECIFIED, aksNodeConfigUT.ClusterConfig.LoadBalancerConfig.GetLoadBalancerSku()) + }) - if tt.validator != nil { - tt.validator(aksNodeConfigExpected, aksNodeConfigUT) - } - }) - } + t.Run("marshal/unmarshal", func(t *testing.T) { + content, err := os.ReadFile("./testdata/test_aksnodeconfig.json") + require.NoError(t, err) + cfg, err := nodeconfigutils.UnmarshalConfigurationV1(content) + require.NoError(t, err) + marshalled, err := nodeconfigutils.MarshalConfigurationV1(cfg) + require.NoError(t, err) + assert.JSONEq(t, string(content), string(marshalled)) + }) } func getBase64DecodedValue(data []byte) (string, error) { @@ -487,18 +475,16 @@ func getBase64DecodedValue(data []byte) (string, error) { return string(decoded), nil } -func getAKSNodeConfigInstance(jsonFilePath string) *aksnodeconfigv1.Configuration { - aksNodeConfigBuilder := aksnodeconfigv1.NewAKSNodeConfigBuilder() - aksNodeConfig := aksnodeconfigv1.Configuration{} +func loadAKSNodeConfig(jsonFilePath string) *aksnodeconfigv1.Configuration { content, err := os.ReadFile(jsonFilePath) if err != nil { log.Fatal(err) } - if err = json.Unmarshal(content, &aksNodeConfig); err != nil { + cfg, err := nodeconfigutils.UnmarshalConfigurationV1(content) + if err != nil { log.Printf("Failed to unmarshal the aksnodeconfigv1 from json: %v", err) } - aksNodeConfigBuilder.ApplyConfiguration(&aksNodeConfig) - return aksNodeConfigBuilder.GetAKSNodeConfig() + return cfg } func generateTestDataIfRequested(t *testing.T, folder string, cmd *exec.Cmd) { diff --git a/aks-node-controller/parser/testdata/test_aksnodeconfig.json b/aks-node-controller/parser/testdata/test_aksnodeconfig.json index 87f61e3b860..41375d4473c 100644 --- a/aks-node-controller/parser/testdata/test_aksnodeconfig.json +++ b/aks-node-controller/parser/testdata/test_aksnodeconfig.json @@ -4,7 +4,7 @@ "enable_secure_tls_bootstrapping": false }, "cluster_config": { - "vm_type": 2, + "vm_type": "VM_TYPE_VMSS", "cluster_network_config": { "subnet": "aks-subnet" }, diff --git a/aks-node-controller/parser/testdata/test_aksnodeconfig_fields_missing.json b/aks-node-controller/parser/testdata/test_aksnodeconfig_fields_missing.json index b958961ef90..c77043ec1b9 100644 --- a/aks-node-controller/parser/testdata/test_aksnodeconfig_fields_missing.json +++ b/aks-node-controller/parser/testdata/test_aksnodeconfig_fields_missing.json @@ -1,4 +1,5 @@ { + "version": "v0", "tls_bootstrapping_config": { "enable_secure_tls_bootstrapping": false }, diff --git a/aks-node-controller/parser/testdata/test_aksnodeconfig_fields_unexpected.json b/aks-node-controller/parser/testdata/test_aksnodeconfig_fields_unexpected.json index 8155802a142..c3aabf339bc 100644 --- a/aks-node-controller/parser/testdata/test_aksnodeconfig_fields_unexpected.json +++ b/aks-node-controller/parser/testdata/test_aksnodeconfig_fields_unexpected.json @@ -1,4 +1,5 @@ { + "version": "v0", "tls_bootstrapping_config": { "enable_secure_tls_bootstrapping": false }, diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/api_server_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/api_server_config.pb.go new file mode 100644 index 00000000000..a14e0cefdc3 --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/api_server_config.pb.go @@ -0,0 +1,156 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/api_server_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ApiServerConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The certificate public key of the API server. + ApiServerPublicKey string `protobuf:"bytes,1,opt,name=api_server_public_key,json=apiServerPublicKey,proto3" json:"api_server_public_key,omitempty"` + // The name or endpoint URI of the API server. + ApiServerName string `protobuf:"bytes,2,opt,name=api_server_name,json=apiServerName,proto3" json:"api_server_name,omitempty"` +} + +func (x *ApiServerConfig) Reset() { + *x = ApiServerConfig{} + mi := &file_aksnodeconfig_v1_api_server_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ApiServerConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ApiServerConfig) ProtoMessage() {} + +func (x *ApiServerConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_api_server_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ApiServerConfig.ProtoReflect.Descriptor instead. +func (*ApiServerConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_api_server_config_proto_rawDescGZIP(), []int{0} +} + +func (x *ApiServerConfig) GetApiServerPublicKey() string { + if x != nil { + return x.ApiServerPublicKey + } + return "" +} + +func (x *ApiServerConfig) GetApiServerName() string { + if x != nil { + return x.ApiServerName + } + return "" +} + +var File_aksnodeconfig_v1_api_server_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_api_server_config_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0x6c, 0x0a, 0x0f, + 0x41, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x31, 0x0a, 0x15, 0x61, 0x70, 0x69, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x70, 0x75, + 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, + 0x61, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, + 0x65, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, 0x69, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x70, 0x69, + 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0xe7, 0x01, 0x0a, 0x14, 0x63, + 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x76, 0x31, 0x42, 0x14, 0x41, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, + 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, + 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, + 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, + 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, + 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, + 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_api_server_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_api_server_config_proto_rawDescData = file_aksnodeconfig_v1_api_server_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_api_server_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_api_server_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_api_server_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_api_server_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_api_server_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_api_server_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_api_server_config_proto_goTypes = []any{ + (*ApiServerConfig)(nil), // 0: aksnodeconfig.v1.ApiServerConfig +} +var file_aksnodeconfig_v1_api_server_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_api_server_config_proto_init() } +func file_aksnodeconfig_v1_api_server_config_proto_init() { + if File_aksnodeconfig_v1_api_server_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_api_server_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_api_server_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_api_server_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_api_server_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_api_server_config_proto = out.File + file_aksnodeconfig_v1_api_server_config_proto_rawDesc = nil + file_aksnodeconfig_v1_api_server_config_proto_goTypes = nil + file_aksnodeconfig_v1_api_server_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/auth_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/auth_config.pb.go new file mode 100644 index 00000000000..722323cea13 --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/auth_config.pb.go @@ -0,0 +1,205 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/auth_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Auth Config fields stored in azure.json used by cloud-provider-azure +type AuthConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Tenant ID + TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` + // Subscription ID + SubscriptionId string `protobuf:"bytes,2,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` + // Service Principal ID. set to aadClientId + ServicePrincipalId string `protobuf:"bytes,3,opt,name=service_principal_id,json=servicePrincipalId,proto3" json:"service_principal_id,omitempty"` + // Service Principal Secret. set to aadClientSecret + ServicePrincipalSecret string `protobuf:"bytes,4,opt,name=service_principal_secret,json=servicePrincipalSecret,proto3" json:"service_principal_secret,omitempty"` + // Assigned identity id, could be user or system assigned, depending on the type. + AssignedIdentityId string `protobuf:"bytes,5,opt,name=assigned_identity_id,json=assignedIdentityId,proto3" json:"assigned_identity_id,omitempty"` + // Specify if use managed identity extension, default to false + UseManagedIdentityExtension bool `protobuf:"varint,6,opt,name=use_managed_identity_extension,json=useManagedIdentityExtension,proto3" json:"use_managed_identity_extension,omitempty"` +} + +func (x *AuthConfig) Reset() { + *x = AuthConfig{} + mi := &file_aksnodeconfig_v1_auth_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *AuthConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AuthConfig) ProtoMessage() {} + +func (x *AuthConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_auth_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AuthConfig.ProtoReflect.Descriptor instead. +func (*AuthConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_auth_config_proto_rawDescGZIP(), []int{0} +} + +func (x *AuthConfig) GetTenantId() string { + if x != nil { + return x.TenantId + } + return "" +} + +func (x *AuthConfig) GetSubscriptionId() string { + if x != nil { + return x.SubscriptionId + } + return "" +} + +func (x *AuthConfig) GetServicePrincipalId() string { + if x != nil { + return x.ServicePrincipalId + } + return "" +} + +func (x *AuthConfig) GetServicePrincipalSecret() string { + if x != nil { + return x.ServicePrincipalSecret + } + return "" +} + +func (x *AuthConfig) GetAssignedIdentityId() string { + if x != nil { + return x.AssignedIdentityId + } + return "" +} + +func (x *AuthConfig) GetUseManagedIdentityExtension() bool { + if x != nil { + return x.UseManagedIdentityExtension + } + return false +} + +var File_aksnodeconfig_v1_auth_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_auth_config_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xb5, 0x02, 0x0a, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, + 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x75, 0x62, + 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x73, + 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, + 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x69, + 0x63, 0x65, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x38, 0x0a, + 0x18, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, + 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x16, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, + 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x30, 0x0a, 0x14, 0x61, 0x73, 0x73, 0x69, 0x67, + 0x6e, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x49, + 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x1e, 0x75, 0x73, 0x65, + 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, + 0x79, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x1b, 0x75, 0x73, 0x65, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x49, 0x64, 0x65, + 0x6e, 0x74, 0x69, 0x74, 0x79, 0x45, 0x78, 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0xe2, + 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, + 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, + 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, + 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_auth_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_auth_config_proto_rawDescData = file_aksnodeconfig_v1_auth_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_auth_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_auth_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_auth_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_auth_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_auth_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_auth_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_auth_config_proto_goTypes = []any{ + (*AuthConfig)(nil), // 0: aksnodeconfig.v1.AuthConfig +} +var file_aksnodeconfig_v1_auth_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_auth_config_proto_init() } +func file_aksnodeconfig_v1_auth_config_proto_init() { + if File_aksnodeconfig_v1_auth_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_auth_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_auth_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_auth_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_auth_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_auth_config_proto = out.File + file_aksnodeconfig_v1_auth_config_proto_rawDesc = nil + file_aksnodeconfig_v1_auth_config_proto_goTypes = nil + file_aksnodeconfig_v1_auth_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/cluster_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/cluster_config.pb.go new file mode 100644 index 00000000000..14996383f6d --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/cluster_config.pb.go @@ -0,0 +1,547 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/cluster_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type VmType int32 + +const ( + VmType_VM_TYPE_UNSPECIFIED VmType = 0 + VmType_VM_TYPE_STANDARD VmType = 1 + VmType_VM_TYPE_VMSS VmType = 2 +) + +// Enum value maps for VmType. +var ( + VmType_name = map[int32]string{ + 0: "VM_TYPE_UNSPECIFIED", + 1: "VM_TYPE_STANDARD", + 2: "VM_TYPE_VMSS", + } + VmType_value = map[string]int32{ + "VM_TYPE_UNSPECIFIED": 0, + "VM_TYPE_STANDARD": 1, + "VM_TYPE_VMSS": 2, + } +) + +func (x VmType) Enum() *VmType { + p := new(VmType) + *p = x + return p +} + +func (x VmType) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (VmType) Descriptor() protoreflect.EnumDescriptor { + return file_aksnodeconfig_v1_cluster_config_proto_enumTypes[0].Descriptor() +} + +func (VmType) Type() protoreflect.EnumType { + return &file_aksnodeconfig_v1_cluster_config_proto_enumTypes[0] +} + +func (x VmType) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use VmType.Descriptor instead. +func (VmType) EnumDescriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_cluster_config_proto_rawDescGZIP(), []int{0} +} + +type LoadBalancerSku int32 + +const ( + LoadBalancerSku_LOAD_BALANCER_SKU_UNSPECIFIED LoadBalancerSku = 0 + LoadBalancerSku_LOAD_BALANCER_SKU_BASIC LoadBalancerSku = 1 + LoadBalancerSku_LOAD_BALANCER_SKU_STANDARD LoadBalancerSku = 2 +) + +// Enum value maps for LoadBalancerSku. +var ( + LoadBalancerSku_name = map[int32]string{ + 0: "LOAD_BALANCER_SKU_UNSPECIFIED", + 1: "LOAD_BALANCER_SKU_BASIC", + 2: "LOAD_BALANCER_SKU_STANDARD", + } + LoadBalancerSku_value = map[string]int32{ + "LOAD_BALANCER_SKU_UNSPECIFIED": 0, + "LOAD_BALANCER_SKU_BASIC": 1, + "LOAD_BALANCER_SKU_STANDARD": 2, + } +) + +func (x LoadBalancerSku) Enum() *LoadBalancerSku { + p := new(LoadBalancerSku) + *p = x + return p +} + +func (x LoadBalancerSku) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (LoadBalancerSku) Descriptor() protoreflect.EnumDescriptor { + return file_aksnodeconfig_v1_cluster_config_proto_enumTypes[1].Descriptor() +} + +func (LoadBalancerSku) Type() protoreflect.EnumType { + return &file_aksnodeconfig_v1_cluster_config_proto_enumTypes[1] +} + +func (x LoadBalancerSku) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use LoadBalancerSku.Descriptor instead. +func (LoadBalancerSku) EnumDescriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_cluster_config_proto_rawDescGZIP(), []int{1} +} + +// Cluster Config fields stored in azure.json used by cloud-provider-azure +type ClusterConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Cluster network config. We assumed network mode is always "transparent" now so it's removed from the contract. + ClusterNetworkConfig *ClusterNetworkConfig `protobuf:"bytes,1,opt,name=cluster_network_config,json=clusterNetworkConfig,proto3" json:"cluster_network_config,omitempty"` + // Load balancer config + LoadBalancerConfig *LoadBalancerConfig `protobuf:"bytes,2,opt,name=load_balancer_config,json=loadBalancerConfig,proto3" json:"load_balancer_config,omitempty"` + // Rescource group name + ResourceGroup string `protobuf:"bytes,3,opt,name=resource_group,json=resourceGroup,proto3" json:"resource_group,omitempty"` + // Location + Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` + // VM type + VmType VmType `protobuf:"varint,5,opt,name=vm_type,json=vmType,proto3,enum=aksnodeconfig.v1.VmType" json:"vm_type,omitempty"` // default to standard for v1.27 and below versions and vmss for v1.28+ versions + // Primary availability set name + PrimaryAvailabilitySet string `protobuf:"bytes,6,opt,name=primary_availability_set,json=primaryAvailabilitySet,proto3" json:"primary_availability_set,omitempty"` + // Primary scale set name + PrimaryScaleSet string `protobuf:"bytes,7,opt,name=primary_scale_set,json=primaryScaleSet,proto3" json:"primary_scale_set,omitempty"` + // Specifiy if it uses instance metadata + UseInstanceMetadata bool `protobuf:"varint,8,opt,name=use_instance_metadata,json=useInstanceMetadata,proto3" json:"use_instance_metadata,omitempty"` // default to false +} + +func (x *ClusterConfig) Reset() { + *x = ClusterConfig{} + mi := &file_aksnodeconfig_v1_cluster_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ClusterConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterConfig) ProtoMessage() {} + +func (x *ClusterConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_cluster_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClusterConfig.ProtoReflect.Descriptor instead. +func (*ClusterConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_cluster_config_proto_rawDescGZIP(), []int{0} +} + +func (x *ClusterConfig) GetClusterNetworkConfig() *ClusterNetworkConfig { + if x != nil { + return x.ClusterNetworkConfig + } + return nil +} + +func (x *ClusterConfig) GetLoadBalancerConfig() *LoadBalancerConfig { + if x != nil { + return x.LoadBalancerConfig + } + return nil +} + +func (x *ClusterConfig) GetResourceGroup() string { + if x != nil { + return x.ResourceGroup + } + return "" +} + +func (x *ClusterConfig) GetLocation() string { + if x != nil { + return x.Location + } + return "" +} + +func (x *ClusterConfig) GetVmType() VmType { + if x != nil { + return x.VmType + } + return VmType_VM_TYPE_UNSPECIFIED +} + +func (x *ClusterConfig) GetPrimaryAvailabilitySet() string { + if x != nil { + return x.PrimaryAvailabilitySet + } + return "" +} + +func (x *ClusterConfig) GetPrimaryScaleSet() string { + if x != nil { + return x.PrimaryScaleSet + } + return "" +} + +func (x *ClusterConfig) GetUseInstanceMetadata() bool { + if x != nil { + return x.UseInstanceMetadata + } + return false +} + +type ClusterNetworkConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Virtual network name + VnetName string `protobuf:"bytes,1,opt,name=vnet_name,json=vnetName,proto3" json:"vnet_name,omitempty"` + // Virtual network resource group + VnetResourceGroup string `protobuf:"bytes,2,opt,name=vnet_resource_group,json=vnetResourceGroup,proto3" json:"vnet_resource_group,omitempty"` + // Subnet name + Subnet string `protobuf:"bytes,3,opt,name=subnet,proto3" json:"subnet,omitempty"` + // Network security group name + SecurityGroupName string `protobuf:"bytes,4,opt,name=security_group_name,json=securityGroupName,proto3" json:"security_group_name,omitempty"` + // Route table name + RouteTable string `protobuf:"bytes,5,opt,name=route_table,json=routeTable,proto3" json:"route_table,omitempty"` +} + +func (x *ClusterNetworkConfig) Reset() { + *x = ClusterNetworkConfig{} + mi := &file_aksnodeconfig_v1_cluster_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ClusterNetworkConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ClusterNetworkConfig) ProtoMessage() {} + +func (x *ClusterNetworkConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_cluster_config_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ClusterNetworkConfig.ProtoReflect.Descriptor instead. +func (*ClusterNetworkConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_cluster_config_proto_rawDescGZIP(), []int{1} +} + +func (x *ClusterNetworkConfig) GetVnetName() string { + if x != nil { + return x.VnetName + } + return "" +} + +func (x *ClusterNetworkConfig) GetVnetResourceGroup() string { + if x != nil { + return x.VnetResourceGroup + } + return "" +} + +func (x *ClusterNetworkConfig) GetSubnet() string { + if x != nil { + return x.Subnet + } + return "" +} + +func (x *ClusterNetworkConfig) GetSecurityGroupName() string { + if x != nil { + return x.SecurityGroupName + } + return "" +} + +func (x *ClusterNetworkConfig) GetRouteTable() string { + if x != nil { + return x.RouteTable + } + return "" +} + +type LoadBalancerConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Load balancer sku, default to basic + LoadBalancerSku LoadBalancerSku `protobuf:"varint,1,opt,name=load_balancer_sku,json=loadBalancerSku,proto3,enum=aksnodeconfig.v1.LoadBalancerSku" json:"load_balancer_sku,omitempty"` + // Specify if master node should be excluded from standard load balancer, default to true + ExcludeMasterFromStandardLoadBalancer *bool `protobuf:"varint,2,opt,name=exclude_master_from_standard_load_balancer,json=excludeMasterFromStandardLoadBalancer,proto3,oneof" json:"exclude_master_from_standard_load_balancer,omitempty"` + // Maximum number of load balancer rules, default to 148 + MaxLoadBalancerRuleCount *int32 `protobuf:"varint,3,opt,name=max_load_balancer_rule_count,json=maxLoadBalancerRuleCount,proto3,oneof" json:"max_load_balancer_rule_count,omitempty"` + // Disable outbound SNAT (Source Network Address Translation) for load balancer, default to false + DisableOutboundSnat bool `protobuf:"varint,4,opt,name=disable_outbound_snat,json=disableOutboundSnat,proto3" json:"disable_outbound_snat,omitempty"` +} + +func (x *LoadBalancerConfig) Reset() { + *x = LoadBalancerConfig{} + mi := &file_aksnodeconfig_v1_cluster_config_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *LoadBalancerConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*LoadBalancerConfig) ProtoMessage() {} + +func (x *LoadBalancerConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_cluster_config_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use LoadBalancerConfig.ProtoReflect.Descriptor instead. +func (*LoadBalancerConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_cluster_config_proto_rawDescGZIP(), []int{2} +} + +func (x *LoadBalancerConfig) GetLoadBalancerSku() LoadBalancerSku { + if x != nil { + return x.LoadBalancerSku + } + return LoadBalancerSku_LOAD_BALANCER_SKU_UNSPECIFIED +} + +func (x *LoadBalancerConfig) GetExcludeMasterFromStandardLoadBalancer() bool { + if x != nil && x.ExcludeMasterFromStandardLoadBalancer != nil { + return *x.ExcludeMasterFromStandardLoadBalancer + } + return false +} + +func (x *LoadBalancerConfig) GetMaxLoadBalancerRuleCount() int32 { + if x != nil && x.MaxLoadBalancerRuleCount != nil { + return *x.MaxLoadBalancerRuleCount + } + return 0 +} + +func (x *LoadBalancerConfig) GetDisableOutboundSnat() bool { + if x != nil { + return x.DisableOutboundSnat + } + return false +} + +var File_aksnodeconfig_v1_cluster_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_cluster_config_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xd5, 0x03, 0x0a, 0x0d, 0x43, 0x6c, + 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5c, 0x0a, 0x16, 0x63, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, + 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x52, 0x14, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, + 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x56, 0x0a, 0x14, 0x6c, 0x6f, 0x61, + 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, + 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, + 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x12, 0x6c, + 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, + 0x72, 0x63, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x31, 0x0a, 0x07, 0x76, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, + 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x18, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x56, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x52, + 0x06, 0x76, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x70, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x5f, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, + 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x70, 0x72, 0x69, 0x6d, 0x61, + 0x72, 0x79, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x65, + 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x73, 0x63, 0x61, + 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x70, 0x72, + 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x53, 0x65, 0x74, 0x12, 0x32, 0x0a, + 0x15, 0x75, 0x73, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x75, 0x73, + 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0x22, 0xcc, 0x01, 0x0a, 0x14, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, + 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09, 0x76, 0x6e, + 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x76, + 0x6e, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x76, 0x6e, 0x65, 0x74, 0x5f, + 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x76, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x62, 0x6e, 0x65, + 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x75, 0x62, 0x6e, 0x65, 0x74, 0x12, + 0x2e, 0x0a, 0x13, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, 0x6f, 0x75, + 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x73, 0x65, + 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x12, + 0x1f, 0x0a, 0x0b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x05, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, + 0x22, 0x8c, 0x03, 0x0a, 0x12, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, + 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x11, 0x6c, 0x6f, 0x61, 0x64, 0x5f, + 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x5f, 0x73, 0x6b, 0x75, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x65, 0x72, 0x53, 0x6b, 0x75, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x72, 0x53, 0x6b, 0x75, 0x12, 0x5e, 0x0a, 0x2a, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, + 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x73, 0x74, + 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x25, 0x65, 0x78, + 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x46, 0x72, 0x6f, 0x6d, 0x53, + 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x43, 0x0a, 0x1c, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x6f, + 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, + 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x18, + 0x6d, 0x61, 0x78, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x52, + 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x32, 0x0a, 0x15, 0x64, + 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x5f, + 0x73, 0x6e, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x13, 0x64, 0x69, 0x73, 0x61, + 0x62, 0x6c, 0x65, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, 0x53, 0x6e, 0x61, 0x74, 0x42, + 0x2d, 0x0a, 0x2b, 0x5f, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x74, + 0x65, 0x72, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, + 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x42, 0x1f, + 0x0a, 0x1d, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, + 0x6e, 0x63, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2a, + 0x49, 0x0a, 0x06, 0x56, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x17, 0x0a, 0x13, 0x56, 0x4d, 0x5f, + 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, + 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x56, 0x4d, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x53, 0x54, + 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c, 0x56, 0x4d, 0x5f, 0x54, + 0x59, 0x50, 0x45, 0x5f, 0x56, 0x4d, 0x53, 0x53, 0x10, 0x02, 0x2a, 0x71, 0x0a, 0x0f, 0x4c, 0x6f, + 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x53, 0x6b, 0x75, 0x12, 0x21, 0x0a, + 0x1d, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x52, 0x5f, 0x53, + 0x4b, 0x55, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, + 0x12, 0x1b, 0x0a, 0x17, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, + 0x52, 0x5f, 0x53, 0x4b, 0x55, 0x5f, 0x42, 0x41, 0x53, 0x49, 0x43, 0x10, 0x01, 0x12, 0x1e, 0x0a, + 0x1a, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x42, 0x41, 0x4c, 0x41, 0x4e, 0x43, 0x45, 0x52, 0x5f, 0x53, + 0x4b, 0x55, 0x5f, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, 0x02, 0x42, 0xe5, 0x01, + 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, + 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, + 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, + 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, + 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_cluster_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_cluster_config_proto_rawDescData = file_aksnodeconfig_v1_cluster_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_cluster_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_cluster_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_cluster_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_cluster_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_cluster_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_cluster_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_aksnodeconfig_v1_cluster_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_aksnodeconfig_v1_cluster_config_proto_goTypes = []any{ + (VmType)(0), // 0: aksnodeconfig.v1.VmType + (LoadBalancerSku)(0), // 1: aksnodeconfig.v1.LoadBalancerSku + (*ClusterConfig)(nil), // 2: aksnodeconfig.v1.ClusterConfig + (*ClusterNetworkConfig)(nil), // 3: aksnodeconfig.v1.ClusterNetworkConfig + (*LoadBalancerConfig)(nil), // 4: aksnodeconfig.v1.LoadBalancerConfig +} +var file_aksnodeconfig_v1_cluster_config_proto_depIdxs = []int32{ + 3, // 0: aksnodeconfig.v1.ClusterConfig.cluster_network_config:type_name -> aksnodeconfig.v1.ClusterNetworkConfig + 4, // 1: aksnodeconfig.v1.ClusterConfig.load_balancer_config:type_name -> aksnodeconfig.v1.LoadBalancerConfig + 0, // 2: aksnodeconfig.v1.ClusterConfig.vm_type:type_name -> aksnodeconfig.v1.VmType + 1, // 3: aksnodeconfig.v1.LoadBalancerConfig.load_balancer_sku:type_name -> aksnodeconfig.v1.LoadBalancerSku + 4, // [4:4] is the sub-list for method output_type + 4, // [4:4] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_cluster_config_proto_init() } +func file_aksnodeconfig_v1_cluster_config_proto_init() { + if File_aksnodeconfig_v1_cluster_config_proto != nil { + return + } + file_aksnodeconfig_v1_cluster_config_proto_msgTypes[2].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_cluster_config_proto_rawDesc, + NumEnums: 2, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_cluster_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_cluster_config_proto_depIdxs, + EnumInfos: file_aksnodeconfig_v1_cluster_config_proto_enumTypes, + MessageInfos: file_aksnodeconfig_v1_cluster_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_cluster_config_proto = out.File + file_aksnodeconfig_v1_cluster_config_proto_rawDesc = nil + file_aksnodeconfig_v1_cluster_config_proto_goTypes = nil + file_aksnodeconfig_v1_cluster_config_proto_depIdxs = nil +} diff --git a/pkg/proto/aksnodeconfig/v1/config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/config.pb.go similarity index 74% rename from pkg/proto/aksnodeconfig/v1/config.pb.go rename to aks-node-controller/pkg/gen/aksnodeconfig/v1/config.pb.go index 37f63aac559..f4be8e24660 100644 --- a/pkg/proto/aksnodeconfig/v1/config.pb.go +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/config.pb.go @@ -1,8 +1,8 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.35.1 +// protoc-gen-go v1.35.2 // protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/config.proto +// source: aksnodeconfig/v1/config.proto package aksnodeconfigv1 @@ -23,22 +23,22 @@ const ( type WorkloadRuntime int32 const ( - WorkloadRuntime_WR_UNSPECIFIED WorkloadRuntime = 0 - WorkloadRuntime_OCI_CONTAINER WorkloadRuntime = 1 - WorkloadRuntime_WASM_WASI WorkloadRuntime = 2 + WorkloadRuntime_WORKLOAD_RUNTIME_UNSPECIFIED WorkloadRuntime = 0 + WorkloadRuntime_WORKLOAD_RUNTIME_OCI_CONTAINER WorkloadRuntime = 1 + WorkloadRuntime_WORKLOAD_RUNTIME_WASM_WASI WorkloadRuntime = 2 ) // Enum value maps for WorkloadRuntime. var ( WorkloadRuntime_name = map[int32]string{ - 0: "WR_UNSPECIFIED", - 1: "OCI_CONTAINER", - 2: "WASM_WASI", + 0: "WORKLOAD_RUNTIME_UNSPECIFIED", + 1: "WORKLOAD_RUNTIME_OCI_CONTAINER", + 2: "WORKLOAD_RUNTIME_WASM_WASI", } WorkloadRuntime_value = map[string]int32{ - "WR_UNSPECIFIED": 0, - "OCI_CONTAINER": 1, - "WASM_WASI": 2, + "WORKLOAD_RUNTIME_UNSPECIFIED": 0, + "WORKLOAD_RUNTIME_OCI_CONTAINER": 1, + "WORKLOAD_RUNTIME_WASM_WASI": 2, } ) @@ -53,11 +53,11 @@ func (x WorkloadRuntime) String() string { } func (WorkloadRuntime) Descriptor() protoreflect.EnumDescriptor { - return file_pkg_proto_aksnodeconfig_v1_config_proto_enumTypes[0].Descriptor() + return file_aksnodeconfig_v1_config_proto_enumTypes[0].Descriptor() } func (WorkloadRuntime) Type() protoreflect.EnumType { - return &file_pkg_proto_aksnodeconfig_v1_config_proto_enumTypes[0] + return &file_aksnodeconfig_v1_config_proto_enumTypes[0] } func (x WorkloadRuntime) Number() protoreflect.EnumNumber { @@ -66,7 +66,7 @@ func (x WorkloadRuntime) Number() protoreflect.EnumNumber { // Deprecated: Use WorkloadRuntime.Descriptor instead. func (WorkloadRuntime) EnumDescriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_config_proto_rawDescGZIP(), []int{0} + return file_aksnodeconfig_v1_config_proto_rawDescGZIP(), []int{0} } type Configuration struct { @@ -85,7 +85,7 @@ type Configuration struct { // Various Kubernetes cluster level configuration ClusterConfig *ClusterConfig `protobuf:"bytes,5,opt,name=cluster_config,json=clusterConfig,proto3" json:"cluster_config,omitempty"` // TLS bootstrap config - TlsBootstrappingConfig *TLSBootstrappingConfig `protobuf:"bytes,6,opt,name=tls_bootstrapping_config,json=tlsBootstrappingConfig,proto3" json:"tls_bootstrapping_config,omitempty"` + TlsBootstrappingConfig *TlsBootstrappingConfig `protobuf:"bytes,6,opt,name=tls_bootstrapping_config,json=tlsBootstrappingConfig,proto3" json:"tls_bootstrapping_config,omitempty"` // Authentication configuration AuthConfig *AuthConfig `protobuf:"bytes,7,opt,name=auth_config,json=authConfig,proto3" json:"auth_config,omitempty"` // The CLI tool runc configuration @@ -99,11 +99,11 @@ type Configuration struct { // Custom search domain configurations CustomSearchDomainConfig *CustomSearchDomainConfig `protobuf:"bytes,12,opt,name=custom_search_domain_config,json=customSearchDomainConfig,proto3" json:"custom_search_domain_config,omitempty"` // Custom Linux OS configurations including SwapFile, SysCtl configs, etc. - CustomLinuxOsConfig *CustomLinuxOSConfig `protobuf:"bytes,13,opt,name=custom_linux_os_config,json=customLinuxOsConfig,proto3" json:"custom_linux_os_config,omitempty"` + CustomLinuxOsConfig *CustomLinuxOsConfig `protobuf:"bytes,13,opt,name=custom_linux_os_config,json=customLinuxOsConfig,proto3" json:"custom_linux_os_config,omitempty"` // HTTP/HTTPS proxy configuration for the node - HttpProxyConfig *HTTPProxyConfig `protobuf:"bytes,14,opt,name=http_proxy_config,json=httpProxyConfig,proto3" json:"http_proxy_config,omitempty"` + HttpProxyConfig *HttpProxyConfig `protobuf:"bytes,14,opt,name=http_proxy_config,json=httpProxyConfig,proto3" json:"http_proxy_config,omitempty"` // GPU configuration for the node - GpuConfig *GPUConfig `protobuf:"bytes,15,opt,name=gpu_config,json=gpuConfig,proto3" json:"gpu_config,omitempty"` + GpuConfig *GpuConfig `protobuf:"bytes,15,opt,name=gpu_config,json=gpuConfig,proto3" json:"gpu_config,omitempty"` // Network configuration for the node NetworkConfig *NetworkConfig `protobuf:"bytes,16,opt,name=network_config,json=networkConfig,proto3" json:"network_config,omitempty"` // Kubernetes certificate authority (CA) certificate, required by the node to establish TLS with the API server @@ -157,12 +157,12 @@ type Configuration struct { // Bootstrap profile container registry server URI BootstrapProfileContainerRegistryServer string `protobuf:"bytes,38,opt,name=bootstrap_profile_container_registry_server,json=bootstrapProfileContainerRegistryServer,proto3" json:"bootstrap_profile_container_registry_server,omitempty"` // IMDS restriction configuration - ImdsRestrictionConfig *IMDSRestrictionConfig `protobuf:"bytes,39,opt,name=imds_restriction_config,json=imdsRestrictionConfig,proto3" json:"imds_restriction_config,omitempty"` + ImdsRestrictionConfig *ImdsRestrictionConfig `protobuf:"bytes,39,opt,name=imds_restriction_config,json=imdsRestrictionConfig,proto3" json:"imds_restriction_config,omitempty"` } func (x *Configuration) Reset() { *x = Configuration{} - mi := &file_pkg_proto_aksnodeconfig_v1_config_proto_msgTypes[0] + mi := &file_aksnodeconfig_v1_config_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -174,7 +174,7 @@ func (x *Configuration) String() string { func (*Configuration) ProtoMessage() {} func (x *Configuration) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_config_proto_msgTypes[0] + mi := &file_aksnodeconfig_v1_config_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -187,7 +187,7 @@ func (x *Configuration) ProtoReflect() protoreflect.Message { // Deprecated: Use Configuration.ProtoReflect.Descriptor instead. func (*Configuration) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_config_proto_rawDescGZIP(), []int{0} + return file_aksnodeconfig_v1_config_proto_rawDescGZIP(), []int{0} } func (x *Configuration) GetVersion() string { @@ -225,7 +225,7 @@ func (x *Configuration) GetClusterConfig() *ClusterConfig { return nil } -func (x *Configuration) GetTlsBootstrappingConfig() *TLSBootstrappingConfig { +func (x *Configuration) GetTlsBootstrappingConfig() *TlsBootstrappingConfig { if x != nil { return x.TlsBootstrappingConfig } @@ -274,21 +274,21 @@ func (x *Configuration) GetCustomSearchDomainConfig() *CustomSearchDomainConfig return nil } -func (x *Configuration) GetCustomLinuxOsConfig() *CustomLinuxOSConfig { +func (x *Configuration) GetCustomLinuxOsConfig() *CustomLinuxOsConfig { if x != nil { return x.CustomLinuxOsConfig } return nil } -func (x *Configuration) GetHttpProxyConfig() *HTTPProxyConfig { +func (x *Configuration) GetHttpProxyConfig() *HttpProxyConfig { if x != nil { return x.HttpProxyConfig } return nil } -func (x *Configuration) GetGpuConfig() *GPUConfig { +func (x *Configuration) GetGpuConfig() *GpuConfig { if x != nil { return x.GpuConfig } @@ -390,7 +390,7 @@ func (x *Configuration) GetWorkloadRuntime() WorkloadRuntime { if x != nil { return x.WorkloadRuntime } - return WorkloadRuntime_WR_UNSPECIFIED + return WorkloadRuntime_WORKLOAD_RUNTIME_UNSPECIFIED } func (x *Configuration) GetIpv6DualStackEnabled() bool { @@ -456,70 +456,61 @@ func (x *Configuration) GetBootstrapProfileContainerRegistryServer() string { return "" } -func (x *Configuration) GetImdsRestrictionConfig() *IMDSRestrictionConfig { +func (x *Configuration) GetImdsRestrictionConfig() *ImdsRestrictionConfig { if x != nil { return x.ImdsRestrictionConfig } return nil } -var File_pkg_proto_aksnodeconfig_v1_config_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_config_proto_rawDesc = []byte{ - 0x0a, 0x27, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x1a, 0x30, 0x70, 0x6b, 0x67, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x78, - 0x79, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2a, 0x70, - 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x70, 0x75, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x34, 0x70, 0x6b, 0x67, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x6c, 0x69, 0x6e, 0x75, - 0x78, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x31, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x75, 0x62, 0x65, - 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x1a, 0x39, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, +var File_aksnodeconfig_v1_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_config_proto_rawDesc = []byte{ + 0x0a, 0x1d, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, + 0x31, 0x1a, 0x28, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x61, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, + 0x74, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x25, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, + 0x31, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x28, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x64, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x1a, 0x2a, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2d, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, - 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x64, 0x6f, 0x6d, 0x61, 0x69, - 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x31, 0x70, - 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x64, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x1a, 0x2b, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, - 0x68, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, - 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, + 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x6f, 0x73, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x61, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x5f, 0x64, 0x6f, 0x6d, 0x61, + 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, + 0x21, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, + 0x31, 0x2f, 0x67, 0x70, 0x75, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x1a, 0x28, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x69, + 0x6d, 0x64, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x29, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6b, + 0x75, 0x62, 0x65, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, - 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2f, 0x70, - 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, - 0x72, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2b, - 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6e, 0x63, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x32, 0x70, 0x6b, 0x67, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x63, 0x6c, - 0x6f, 0x75, 0x64, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x30, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x69, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x1a, 0x37, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, - 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6c, - 0x73, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x6b, 0x67, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x2e, 0x70, 0x6b, 0x67, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x36, 0x70, 0x6b, 0x67, 0x2f, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x64, 0x73, 0x72, 0x65, 0x73, 0x74, 0x72, - 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, + 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x25, + 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, + 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x22, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6e, 0x63, 0x5f, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x26, 0x61, 0x6b, 0x73, 0x6e, 0x6f, + 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x6c, 0x65, + 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x1a, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6c, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, + 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9d, 0x13, 0x0a, 0x0d, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x50, @@ -546,7 +537,7 @@ var file_pkg_proto_aksnodeconfig_v1_config_proto_rawDesc = []byte{ 0x74, 0x6c, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x54, 0x4c, 0x53, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, + 0x31, 0x2e, 0x54, 0x6c, 0x73, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x16, 0x74, 0x6c, 0x73, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3d, 0x0a, 0x0b, 0x61, 0x75, 0x74, 0x68, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, @@ -581,17 +572,17 @@ var file_pkg_proto_aksnodeconfig_v1_config_proto_rawDesc = []byte{ 0x16, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x6f, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x69, 0x6e, 0x75, 0x78, 0x4f, 0x53, 0x43, 0x6f, + 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x69, 0x6e, 0x75, 0x78, 0x4f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x13, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x69, 0x6e, 0x75, 0x78, 0x4f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4d, 0x0a, 0x11, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x54, 0x54, 0x50, 0x50, 0x72, 0x6f, 0x78, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x74, 0x74, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0f, 0x68, 0x74, 0x74, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x0a, 0x67, 0x70, 0x75, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x47, 0x50, 0x55, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, 0x67, 0x70, 0x75, 0x43, 0x6f, + 0x47, 0x70, 0x75, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x09, 0x67, 0x70, 0x75, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x46, 0x0a, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x10, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, @@ -668,85 +659,89 @@ var file_pkg_proto_aksnodeconfig_v1_config_proto_rawDesc = []byte{ 0x72, 0x76, 0x65, 0x72, 0x12, 0x5f, 0x0a, 0x17, 0x69, 0x6d, 0x64, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x27, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x4d, 0x44, 0x53, 0x52, 0x65, 0x73, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6d, 0x64, 0x73, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x15, 0x69, 0x6d, 0x64, 0x73, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x69, 0x73, 0x5f, 0x76, 0x68, 0x64, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x73, 0x68, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x6e, 0x65, 0x65, 0x64, 0x73, 0x5f, 0x63, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x76, 0x32, 0x2a, 0x47, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x75, - 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x0e, 0x57, 0x52, 0x5f, 0x55, 0x4e, 0x53, 0x50, - 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x4f, 0x43, 0x49, - 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x0d, 0x0a, 0x09, - 0x57, 0x41, 0x53, 0x4d, 0x5f, 0x57, 0x41, 0x53, 0x49, 0x10, 0x02, 0x42, 0xcc, 0x01, 0x0a, 0x14, + 0x76, 0x32, 0x2a, 0x77, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x75, + 0x6e, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x20, 0x0a, 0x1c, 0x57, 0x4f, 0x52, 0x4b, 0x4c, 0x4f, 0x41, + 0x44, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, + 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x22, 0x0a, 0x1e, 0x57, 0x4f, 0x52, 0x4b, 0x4c, + 0x4f, 0x41, 0x44, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x5f, 0x4f, 0x43, 0x49, 0x5f, + 0x43, 0x4f, 0x4e, 0x54, 0x41, 0x49, 0x4e, 0x45, 0x52, 0x10, 0x01, 0x12, 0x1e, 0x0a, 0x1a, 0x57, + 0x4f, 0x52, 0x4b, 0x4c, 0x4f, 0x41, 0x44, 0x5f, 0x52, 0x55, 0x4e, 0x54, 0x49, 0x4d, 0x45, 0x5f, + 0x57, 0x41, 0x53, 0x4d, 0x5f, 0x57, 0x41, 0x53, 0x49, 0x10, 0x02, 0x42, 0xde, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, - 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, - 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, + 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, + 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, + 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( - file_pkg_proto_aksnodeconfig_v1_config_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_config_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_config_proto_rawDesc + file_aksnodeconfig_v1_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_config_proto_rawDescData = file_aksnodeconfig_v1_config_proto_rawDesc ) -func file_pkg_proto_aksnodeconfig_v1_config_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_config_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_config_proto_rawDescData) +func file_aksnodeconfig_v1_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_config_proto_rawDescData) }) - return file_pkg_proto_aksnodeconfig_v1_config_proto_rawDescData + return file_aksnodeconfig_v1_config_proto_rawDescData } -var file_pkg_proto_aksnodeconfig_v1_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_config_proto_goTypes = []any{ +var file_aksnodeconfig_v1_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_aksnodeconfig_v1_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_config_proto_goTypes = []any{ (WorkloadRuntime)(0), // 0: aksnodeconfig.v1.WorkloadRuntime (*Configuration)(nil), // 1: aksnodeconfig.v1.Configuration (*KubeBinaryConfig)(nil), // 2: aksnodeconfig.v1.KubeBinaryConfig (*CustomCloudConfig)(nil), // 3: aksnodeconfig.v1.CustomCloudConfig (*ApiServerConfig)(nil), // 4: aksnodeconfig.v1.ApiServerConfig (*ClusterConfig)(nil), // 5: aksnodeconfig.v1.ClusterConfig - (*TLSBootstrappingConfig)(nil), // 6: aksnodeconfig.v1.TLSBootstrappingConfig + (*TlsBootstrappingConfig)(nil), // 6: aksnodeconfig.v1.TlsBootstrappingConfig (*AuthConfig)(nil), // 7: aksnodeconfig.v1.AuthConfig (*RuncConfig)(nil), // 8: aksnodeconfig.v1.RuncConfig (*ContainerdConfig)(nil), // 9: aksnodeconfig.v1.ContainerdConfig (*TeleportConfig)(nil), // 10: aksnodeconfig.v1.TeleportConfig (*KubeletConfig)(nil), // 11: aksnodeconfig.v1.KubeletConfig (*CustomSearchDomainConfig)(nil), // 12: aksnodeconfig.v1.CustomSearchDomainConfig - (*CustomLinuxOSConfig)(nil), // 13: aksnodeconfig.v1.CustomLinuxOSConfig - (*HTTPProxyConfig)(nil), // 14: aksnodeconfig.v1.HTTPProxyConfig - (*GPUConfig)(nil), // 15: aksnodeconfig.v1.GPUConfig + (*CustomLinuxOsConfig)(nil), // 13: aksnodeconfig.v1.CustomLinuxOsConfig + (*HttpProxyConfig)(nil), // 14: aksnodeconfig.v1.HttpProxyConfig + (*GpuConfig)(nil), // 15: aksnodeconfig.v1.GpuConfig (*NetworkConfig)(nil), // 16: aksnodeconfig.v1.NetworkConfig - (*IMDSRestrictionConfig)(nil), // 17: aksnodeconfig.v1.IMDSRestrictionConfig + (*ImdsRestrictionConfig)(nil), // 17: aksnodeconfig.v1.ImdsRestrictionConfig } -var file_pkg_proto_aksnodeconfig_v1_config_proto_depIdxs = []int32{ +var file_aksnodeconfig_v1_config_proto_depIdxs = []int32{ 2, // 0: aksnodeconfig.v1.Configuration.kube_binary_config:type_name -> aksnodeconfig.v1.KubeBinaryConfig 3, // 1: aksnodeconfig.v1.Configuration.custom_cloud_config:type_name -> aksnodeconfig.v1.CustomCloudConfig 4, // 2: aksnodeconfig.v1.Configuration.api_server_config:type_name -> aksnodeconfig.v1.ApiServerConfig 5, // 3: aksnodeconfig.v1.Configuration.cluster_config:type_name -> aksnodeconfig.v1.ClusterConfig - 6, // 4: aksnodeconfig.v1.Configuration.tls_bootstrapping_config:type_name -> aksnodeconfig.v1.TLSBootstrappingConfig + 6, // 4: aksnodeconfig.v1.Configuration.tls_bootstrapping_config:type_name -> aksnodeconfig.v1.TlsBootstrappingConfig 7, // 5: aksnodeconfig.v1.Configuration.auth_config:type_name -> aksnodeconfig.v1.AuthConfig 8, // 6: aksnodeconfig.v1.Configuration.runc_config:type_name -> aksnodeconfig.v1.RuncConfig 9, // 7: aksnodeconfig.v1.Configuration.containerd_config:type_name -> aksnodeconfig.v1.ContainerdConfig 10, // 8: aksnodeconfig.v1.Configuration.teleport_config:type_name -> aksnodeconfig.v1.TeleportConfig 11, // 9: aksnodeconfig.v1.Configuration.kubelet_config:type_name -> aksnodeconfig.v1.KubeletConfig 12, // 10: aksnodeconfig.v1.Configuration.custom_search_domain_config:type_name -> aksnodeconfig.v1.CustomSearchDomainConfig - 13, // 11: aksnodeconfig.v1.Configuration.custom_linux_os_config:type_name -> aksnodeconfig.v1.CustomLinuxOSConfig - 14, // 12: aksnodeconfig.v1.Configuration.http_proxy_config:type_name -> aksnodeconfig.v1.HTTPProxyConfig - 15, // 13: aksnodeconfig.v1.Configuration.gpu_config:type_name -> aksnodeconfig.v1.GPUConfig + 13, // 11: aksnodeconfig.v1.Configuration.custom_linux_os_config:type_name -> aksnodeconfig.v1.CustomLinuxOsConfig + 14, // 12: aksnodeconfig.v1.Configuration.http_proxy_config:type_name -> aksnodeconfig.v1.HttpProxyConfig + 15, // 13: aksnodeconfig.v1.Configuration.gpu_config:type_name -> aksnodeconfig.v1.GpuConfig 16, // 14: aksnodeconfig.v1.Configuration.network_config:type_name -> aksnodeconfig.v1.NetworkConfig 0, // 15: aksnodeconfig.v1.Configuration.workload_runtime:type_name -> aksnodeconfig.v1.WorkloadRuntime - 17, // 16: aksnodeconfig.v1.Configuration.imds_restriction_config:type_name -> aksnodeconfig.v1.IMDSRestrictionConfig + 17, // 16: aksnodeconfig.v1.Configuration.imds_restriction_config:type_name -> aksnodeconfig.v1.ImdsRestrictionConfig 17, // [17:17] is the sub-list for method output_type 17, // [17:17] is the sub-list for method input_type 17, // [17:17] is the sub-list for extension type_name @@ -754,45 +749,45 @@ var file_pkg_proto_aksnodeconfig_v1_config_proto_depIdxs = []int32{ 0, // [0:17] is the sub-list for field type_name } -func init() { file_pkg_proto_aksnodeconfig_v1_config_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_config_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_config_proto != nil { +func init() { file_aksnodeconfig_v1_config_proto_init() } +func file_aksnodeconfig_v1_config_proto_init() { + if File_aksnodeconfig_v1_config_proto != nil { return } - file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_authconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_init() - file_pkg_proto_aksnodeconfig_v1_config_proto_msgTypes[0].OneofWrappers = []any{} + file_aksnodeconfig_v1_api_server_config_proto_init() + file_aksnodeconfig_v1_auth_config_proto_init() + file_aksnodeconfig_v1_cluster_config_proto_init() + file_aksnodeconfig_v1_containerd_config_proto_init() + file_aksnodeconfig_v1_custom_cloud_config_proto_init() + file_aksnodeconfig_v1_custom_linux_os_config_proto_init() + file_aksnodeconfig_v1_custom_search_domain_config_proto_init() + file_aksnodeconfig_v1_gpu_config_proto_init() + file_aksnodeconfig_v1_http_proxy_config_proto_init() + file_aksnodeconfig_v1_imds_restriction_config_proto_init() + file_aksnodeconfig_v1_kube_binary_config_proto_init() + file_aksnodeconfig_v1_kubelet_config_proto_init() + file_aksnodeconfig_v1_network_config_proto_init() + file_aksnodeconfig_v1_runc_config_proto_init() + file_aksnodeconfig_v1_teleport_config_proto_init() + file_aksnodeconfig_v1_tls_bootstrapping_config_proto_init() + file_aksnodeconfig_v1_config_proto_msgTypes[0].OneofWrappers = []any{} type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_config_proto_rawDesc, + RawDescriptor: file_aksnodeconfig_v1_config_proto_rawDesc, NumEnums: 1, NumMessages: 1, NumExtensions: 0, NumServices: 0, }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_config_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_config_proto_depIdxs, - EnumInfos: file_pkg_proto_aksnodeconfig_v1_config_proto_enumTypes, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_config_proto_msgTypes, + GoTypes: file_aksnodeconfig_v1_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_config_proto_depIdxs, + EnumInfos: file_aksnodeconfig_v1_config_proto_enumTypes, + MessageInfos: file_aksnodeconfig_v1_config_proto_msgTypes, }.Build() - File_pkg_proto_aksnodeconfig_v1_config_proto = out.File - file_pkg_proto_aksnodeconfig_v1_config_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_config_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_config_proto_depIdxs = nil + File_aksnodeconfig_v1_config_proto = out.File + file_aksnodeconfig_v1_config_proto_rawDesc = nil + file_aksnodeconfig_v1_config_proto_goTypes = nil + file_aksnodeconfig_v1_config_proto_depIdxs = nil } diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/containerd_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/containerd_config.pb.go new file mode 100644 index 00000000000..1aac8cdd1dc --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/containerd_config.pb.go @@ -0,0 +1,170 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/containerd_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ContainerdConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The base URL for downloading containerd. + ContainerdDownloadUrlBase string `protobuf:"bytes,1,opt,name=containerd_download_url_base,json=containerdDownloadUrlBase,proto3" json:"containerd_download_url_base,omitempty"` + // The version of containerd to download. + ContainerdVersion string `protobuf:"bytes,2,opt,name=containerd_version,json=containerdVersion,proto3" json:"containerd_version,omitempty"` + // The URL for downloading the containerd package. + ContainerdPackageUrl string `protobuf:"bytes,3,opt,name=containerd_package_url,json=containerdPackageUrl,proto3" json:"containerd_package_url,omitempty"` +} + +func (x *ContainerdConfig) Reset() { + *x = ContainerdConfig{} + mi := &file_aksnodeconfig_v1_containerd_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ContainerdConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ContainerdConfig) ProtoMessage() {} + +func (x *ContainerdConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_containerd_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ContainerdConfig.ProtoReflect.Descriptor instead. +func (*ContainerdConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_containerd_config_proto_rawDescGZIP(), []int{0} +} + +func (x *ContainerdConfig) GetContainerdDownloadUrlBase() string { + if x != nil { + return x.ContainerdDownloadUrlBase + } + return "" +} + +func (x *ContainerdConfig) GetContainerdVersion() string { + if x != nil { + return x.ContainerdVersion + } + return "" +} + +func (x *ContainerdConfig) GetContainerdPackageUrl() string { + if x != nil { + return x.ContainerdPackageUrl + } + return "" +} + +var File_aksnodeconfig_v1_containerd_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_containerd_config_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xb8, 0x01, 0x0a, + 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x3f, 0x0a, 0x1c, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x5f, + 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x5f, 0x62, 0x61, 0x73, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, + 0x65, 0x72, 0x64, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x42, 0x61, + 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, + 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, + 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, + 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x5f, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x14, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x50, 0x61, 0x63, + 0x6b, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x42, 0xe8, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, + 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, + 0x42, 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, + 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_containerd_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_containerd_config_proto_rawDescData = file_aksnodeconfig_v1_containerd_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_containerd_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_containerd_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_containerd_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_containerd_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_containerd_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_containerd_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_containerd_config_proto_goTypes = []any{ + (*ContainerdConfig)(nil), // 0: aksnodeconfig.v1.ContainerdConfig +} +var file_aksnodeconfig_v1_containerd_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_containerd_config_proto_init() } +func file_aksnodeconfig_v1_containerd_config_proto_init() { + if File_aksnodeconfig_v1_containerd_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_containerd_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_containerd_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_containerd_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_containerd_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_containerd_config_proto = out.File + file_aksnodeconfig_v1_containerd_config_proto_rawDesc = nil + file_aksnodeconfig_v1_containerd_config_proto_goTypes = nil + file_aksnodeconfig_v1_containerd_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/custom_cloud_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/custom_cloud_config.pb.go new file mode 100644 index 00000000000..9cdb25940b9 --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/custom_cloud_config.pb.go @@ -0,0 +1,183 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/custom_cloud_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type CustomCloudConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Name of custom cloud + CustomCloudEnvName string `protobuf:"bytes,1,opt,name=custom_cloud_env_name,json=customCloudEnvName,proto3" json:"custom_cloud_env_name,omitempty"` + // RepoDepotEndpoint is the endpoint of the repo depot + RepoDepotEndpoint string `protobuf:"bytes,2,opt,name=repo_depot_endpoint,json=repoDepotEndpoint,proto3" json:"repo_depot_endpoint,omitempty"` + // Base64 encoded JSON string of custom cloud environment + CustomEnvJsonContent string `protobuf:"bytes,3,opt,name=custom_env_json_content,json=customEnvJsonContent,proto3" json:"custom_env_json_content,omitempty"` + // AKSCustomCloudContainerRegistryDNSSuffix specifies a custom cloud container registry dns suffix for credential provider + ContainerRegistryDnsSuffix string `protobuf:"bytes,4,opt,name=container_registry_dns_suffix,json=containerRegistryDnsSuffix,proto3" json:"container_registry_dns_suffix,omitempty"` +} + +func (x *CustomCloudConfig) Reset() { + *x = CustomCloudConfig{} + mi := &file_aksnodeconfig_v1_custom_cloud_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CustomCloudConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CustomCloudConfig) ProtoMessage() {} + +func (x *CustomCloudConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_custom_cloud_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CustomCloudConfig.ProtoReflect.Descriptor instead. +func (*CustomCloudConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_custom_cloud_config_proto_rawDescGZIP(), []int{0} +} + +func (x *CustomCloudConfig) GetCustomCloudEnvName() string { + if x != nil { + return x.CustomCloudEnvName + } + return "" +} + +func (x *CustomCloudConfig) GetRepoDepotEndpoint() string { + if x != nil { + return x.RepoDepotEndpoint + } + return "" +} + +func (x *CustomCloudConfig) GetCustomEnvJsonContent() string { + if x != nil { + return x.CustomEnvJsonContent + } + return "" +} + +func (x *CustomCloudConfig) GetContainerRegistryDnsSuffix() string { + if x != nil { + return x.ContainerRegistryDnsSuffix + } + return "" +} + +var File_aksnodeconfig_v1_custom_cloud_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_custom_cloud_config_proto_rawDesc = []byte{ + 0x0a, 0x2a, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xf0, + 0x01, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, 0x15, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, + 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x65, 0x6e, 0x76, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x12, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x6f, 0x75, 0x64, + 0x45, 0x6e, 0x76, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x72, 0x65, 0x70, 0x6f, 0x5f, + 0x64, 0x65, 0x70, 0x6f, 0x74, 0x5f, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, 0x70, 0x6f, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x45, + 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x35, 0x0a, 0x17, 0x63, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x5f, 0x65, 0x6e, 0x76, 0x5f, 0x6a, 0x73, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, + 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, + 0x45, 0x6e, 0x76, 0x4a, 0x73, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x41, + 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x67, 0x69, + 0x73, 0x74, 0x72, 0x79, 0x5f, 0x64, 0x6e, 0x73, 0x5f, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1a, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x44, 0x6e, 0x73, 0x53, 0x75, 0x66, 0x66, 0x69, + 0x78, 0x42, 0xe9, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, + 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x16, 0x43, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, + 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, + 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, + 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_custom_cloud_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_custom_cloud_config_proto_rawDescData = file_aksnodeconfig_v1_custom_cloud_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_custom_cloud_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_custom_cloud_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_custom_cloud_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_custom_cloud_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_custom_cloud_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_custom_cloud_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_custom_cloud_config_proto_goTypes = []any{ + (*CustomCloudConfig)(nil), // 0: aksnodeconfig.v1.CustomCloudConfig +} +var file_aksnodeconfig_v1_custom_cloud_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_custom_cloud_config_proto_init() } +func file_aksnodeconfig_v1_custom_cloud_config_proto_init() { + if File_aksnodeconfig_v1_custom_cloud_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_custom_cloud_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_custom_cloud_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_custom_cloud_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_custom_cloud_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_custom_cloud_config_proto = out.File + file_aksnodeconfig_v1_custom_cloud_config_proto_rawDesc = nil + file_aksnodeconfig_v1_custom_cloud_config_proto_goTypes = nil + file_aksnodeconfig_v1_custom_cloud_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/custom_linux_os_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/custom_linux_os_config.pb.go new file mode 100644 index 00000000000..e580e33007c --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/custom_linux_os_config.pb.go @@ -0,0 +1,695 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/custom_linux_os_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Custom Linux Node OS Config +type CustomLinuxOsConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Sysctl settings for Linux agent nodes + SysctlConfig *SysctlConfig `protobuf:"bytes,1,opt,name=sysctl_config,json=sysctlConfig,proto3" json:"sysctl_config,omitempty"` + // Ulimit settings for Linux agent nodes + UlimitConfig *UlimitConfig `protobuf:"bytes,2,opt,name=ulimit_config,json=ulimitConfig,proto3" json:"ulimit_config,omitempty"` + // Enable or disable swap configuration + EnableSwapConfig bool `protobuf:"varint,3,opt,name=enable_swap_config,json=enableSwapConfig,proto3" json:"enable_swap_config,omitempty"` + // The size in MB of a swap file that will be created on each node + SwapFileSize int32 `protobuf:"varint,4,opt,name=swap_file_size,json=swapFileSize,proto3" json:"swap_file_size,omitempty"` + // Valid values are "always", "defer", "defer+madvise", "madvise" and "never" + // If it's unset or set to empty string, it will use the default value in the VHD "always" + TransparentHugepageSupport string `protobuf:"bytes,5,opt,name=transparent_hugepage_support,json=transparentHugepageSupport,proto3" json:"transparent_hugepage_support,omitempty"` + // Valid values are "always", "madvise" and "never" + // If it's unset or set to empty string, it will use the default value in the VHD "madvise" + TransparentDefrag string `protobuf:"bytes,6,opt,name=transparent_defrag,json=transparentDefrag,proto3" json:"transparent_defrag,omitempty"` +} + +func (x *CustomLinuxOsConfig) Reset() { + *x = CustomLinuxOsConfig{} + mi := &file_aksnodeconfig_v1_custom_linux_os_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CustomLinuxOsConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CustomLinuxOsConfig) ProtoMessage() {} + +func (x *CustomLinuxOsConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_custom_linux_os_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CustomLinuxOsConfig.ProtoReflect.Descriptor instead. +func (*CustomLinuxOsConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDescGZIP(), []int{0} +} + +func (x *CustomLinuxOsConfig) GetSysctlConfig() *SysctlConfig { + if x != nil { + return x.SysctlConfig + } + return nil +} + +func (x *CustomLinuxOsConfig) GetUlimitConfig() *UlimitConfig { + if x != nil { + return x.UlimitConfig + } + return nil +} + +func (x *CustomLinuxOsConfig) GetEnableSwapConfig() bool { + if x != nil { + return x.EnableSwapConfig + } + return false +} + +func (x *CustomLinuxOsConfig) GetSwapFileSize() int32 { + if x != nil { + return x.SwapFileSize + } + return 0 +} + +func (x *CustomLinuxOsConfig) GetTransparentHugepageSupport() string { + if x != nil { + return x.TransparentHugepageSupport + } + return "" +} + +func (x *CustomLinuxOsConfig) GetTransparentDefrag() string { + if x != nil { + return x.TransparentDefrag + } + return "" +} + +type SysctlConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // using optional here to allow detecting if the field is set or not (explicit presence in proto3) + NetCoreSomaxconn *int32 `protobuf:"varint,1,opt,name=net_core_somaxconn,json=netCoreSomaxconn,proto3,oneof" json:"net_core_somaxconn,omitempty"` + NetCoreNetdevMaxBacklog *int32 `protobuf:"varint,2,opt,name=net_core_netdev_max_backlog,json=netCoreNetdevMaxBacklog,proto3,oneof" json:"net_core_netdev_max_backlog,omitempty"` + NetCoreRmemDefault *int32 `protobuf:"varint,3,opt,name=net_core_rmem_default,json=netCoreRmemDefault,proto3,oneof" json:"net_core_rmem_default,omitempty"` + NetCoreRmemMax *int32 `protobuf:"varint,4,opt,name=net_core_rmem_max,json=netCoreRmemMax,proto3,oneof" json:"net_core_rmem_max,omitempty"` + NetCoreWmemDefault *int32 `protobuf:"varint,5,opt,name=net_core_wmem_default,json=netCoreWmemDefault,proto3,oneof" json:"net_core_wmem_default,omitempty"` + NetCoreWmemMax *int32 `protobuf:"varint,6,opt,name=net_core_wmem_max,json=netCoreWmemMax,proto3,oneof" json:"net_core_wmem_max,omitempty"` + NetCoreOptmemMax *int32 `protobuf:"varint,7,opt,name=net_core_optmem_max,json=netCoreOptmemMax,proto3,oneof" json:"net_core_optmem_max,omitempty"` + NetIpv4TcpMaxSynBacklog *int32 `protobuf:"varint,8,opt,name=net_ipv4_tcp_max_syn_backlog,json=netIpv4TcpMaxSynBacklog,proto3,oneof" json:"net_ipv4_tcp_max_syn_backlog,omitempty"` + NetIpv4TcpMaxTwBuckets *int32 `protobuf:"varint,9,opt,name=net_ipv4_tcp_max_tw_buckets,json=netIpv4TcpMaxTwBuckets,proto3,oneof" json:"net_ipv4_tcp_max_tw_buckets,omitempty"` + NetIpv4TcpFinTimeout *int32 `protobuf:"varint,10,opt,name=net_ipv4_tcp_fin_timeout,json=netIpv4TcpFinTimeout,proto3,oneof" json:"net_ipv4_tcp_fin_timeout,omitempty"` + NetIpv4TcpKeepaliveTime *int32 `protobuf:"varint,11,opt,name=net_ipv4_tcp_keepalive_time,json=netIpv4TcpKeepaliveTime,proto3,oneof" json:"net_ipv4_tcp_keepalive_time,omitempty"` + NetIpv4TcpKeepaliveProbes *int32 `protobuf:"varint,12,opt,name=net_ipv4_tcp_keepalive_probes,json=netIpv4TcpKeepaliveProbes,proto3,oneof" json:"net_ipv4_tcp_keepalive_probes,omitempty"` + NetIpv4TcpkeepaliveIntvl *int32 `protobuf:"varint,13,opt,name=net_ipv4_tcpkeepalive_intvl,json=netIpv4TcpkeepaliveIntvl,proto3,oneof" json:"net_ipv4_tcpkeepalive_intvl,omitempty"` + NetIpv4TcpTwReuse *bool `protobuf:"varint,14,opt,name=net_ipv4_tcp_tw_reuse,json=netIpv4TcpTwReuse,proto3,oneof" json:"net_ipv4_tcp_tw_reuse,omitempty"` + NetIpv4IpLocalPortRange *string `protobuf:"bytes,15,opt,name=net_ipv4_ip_local_port_range,json=netIpv4IpLocalPortRange,proto3,oneof" json:"net_ipv4_ip_local_port_range,omitempty"` + NetIpv4NeighDefaultGcThresh1 *int32 `protobuf:"varint,16,opt,name=net_ipv4_neigh_default_gc_thresh1,json=netIpv4NeighDefaultGcThresh1,proto3,oneof" json:"net_ipv4_neigh_default_gc_thresh1,omitempty"` + NetIpv4NeighDefaultGcThresh2 *int32 `protobuf:"varint,17,opt,name=net_ipv4_neigh_default_gc_thresh2,json=netIpv4NeighDefaultGcThresh2,proto3,oneof" json:"net_ipv4_neigh_default_gc_thresh2,omitempty"` + NetIpv4NeighDefaultGcThresh3 *int32 `protobuf:"varint,18,opt,name=net_ipv4_neigh_default_gc_thresh3,json=netIpv4NeighDefaultGcThresh3,proto3,oneof" json:"net_ipv4_neigh_default_gc_thresh3,omitempty"` + NetNetfilterNfConntrackMax *int32 `protobuf:"varint,19,opt,name=net_netfilter_nf_conntrack_max,json=netNetfilterNfConntrackMax,proto3,oneof" json:"net_netfilter_nf_conntrack_max,omitempty"` + NetNetfilterNfConntrackBuckets *int32 `protobuf:"varint,20,opt,name=net_netfilter_nf_conntrack_buckets,json=netNetfilterNfConntrackBuckets,proto3,oneof" json:"net_netfilter_nf_conntrack_buckets,omitempty"` + FsInotifyMaxUserWatches *int32 `protobuf:"varint,21,opt,name=fs_inotify_max_user_watches,json=fsInotifyMaxUserWatches,proto3,oneof" json:"fs_inotify_max_user_watches,omitempty"` + FsFileMax *int32 `protobuf:"varint,22,opt,name=fs_file_max,json=fsFileMax,proto3,oneof" json:"fs_file_max,omitempty"` + FsAioMaxNr *int32 `protobuf:"varint,23,opt,name=fs_aio_max_nr,json=fsAioMaxNr,proto3,oneof" json:"fs_aio_max_nr,omitempty"` + FsNrOpen *int32 `protobuf:"varint,24,opt,name=fs_nr_open,json=fsNrOpen,proto3,oneof" json:"fs_nr_open,omitempty"` + KernelThreadsMax *int32 `protobuf:"varint,25,opt,name=kernel_threads_max,json=kernelThreadsMax,proto3,oneof" json:"kernel_threads_max,omitempty"` + VmMaxMapCount *int32 `protobuf:"varint,26,opt,name=vm_max_map_count,json=vmMaxMapCount,proto3,oneof" json:"vm_max_map_count,omitempty"` + VmSwappiness *int32 `protobuf:"varint,27,opt,name=vm_swappiness,json=vmSwappiness,proto3,oneof" json:"vm_swappiness,omitempty"` + VmVfsCachePressure *int32 `protobuf:"varint,28,opt,name=vm_vfs_cache_pressure,json=vmVfsCachePressure,proto3,oneof" json:"vm_vfs_cache_pressure,omitempty"` +} + +func (x *SysctlConfig) Reset() { + *x = SysctlConfig{} + mi := &file_aksnodeconfig_v1_custom_linux_os_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *SysctlConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SysctlConfig) ProtoMessage() {} + +func (x *SysctlConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_custom_linux_os_config_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SysctlConfig.ProtoReflect.Descriptor instead. +func (*SysctlConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDescGZIP(), []int{1} +} + +func (x *SysctlConfig) GetNetCoreSomaxconn() int32 { + if x != nil && x.NetCoreSomaxconn != nil { + return *x.NetCoreSomaxconn + } + return 0 +} + +func (x *SysctlConfig) GetNetCoreNetdevMaxBacklog() int32 { + if x != nil && x.NetCoreNetdevMaxBacklog != nil { + return *x.NetCoreNetdevMaxBacklog + } + return 0 +} + +func (x *SysctlConfig) GetNetCoreRmemDefault() int32 { + if x != nil && x.NetCoreRmemDefault != nil { + return *x.NetCoreRmemDefault + } + return 0 +} + +func (x *SysctlConfig) GetNetCoreRmemMax() int32 { + if x != nil && x.NetCoreRmemMax != nil { + return *x.NetCoreRmemMax + } + return 0 +} + +func (x *SysctlConfig) GetNetCoreWmemDefault() int32 { + if x != nil && x.NetCoreWmemDefault != nil { + return *x.NetCoreWmemDefault + } + return 0 +} + +func (x *SysctlConfig) GetNetCoreWmemMax() int32 { + if x != nil && x.NetCoreWmemMax != nil { + return *x.NetCoreWmemMax + } + return 0 +} + +func (x *SysctlConfig) GetNetCoreOptmemMax() int32 { + if x != nil && x.NetCoreOptmemMax != nil { + return *x.NetCoreOptmemMax + } + return 0 +} + +func (x *SysctlConfig) GetNetIpv4TcpMaxSynBacklog() int32 { + if x != nil && x.NetIpv4TcpMaxSynBacklog != nil { + return *x.NetIpv4TcpMaxSynBacklog + } + return 0 +} + +func (x *SysctlConfig) GetNetIpv4TcpMaxTwBuckets() int32 { + if x != nil && x.NetIpv4TcpMaxTwBuckets != nil { + return *x.NetIpv4TcpMaxTwBuckets + } + return 0 +} + +func (x *SysctlConfig) GetNetIpv4TcpFinTimeout() int32 { + if x != nil && x.NetIpv4TcpFinTimeout != nil { + return *x.NetIpv4TcpFinTimeout + } + return 0 +} + +func (x *SysctlConfig) GetNetIpv4TcpKeepaliveTime() int32 { + if x != nil && x.NetIpv4TcpKeepaliveTime != nil { + return *x.NetIpv4TcpKeepaliveTime + } + return 0 +} + +func (x *SysctlConfig) GetNetIpv4TcpKeepaliveProbes() int32 { + if x != nil && x.NetIpv4TcpKeepaliveProbes != nil { + return *x.NetIpv4TcpKeepaliveProbes + } + return 0 +} + +func (x *SysctlConfig) GetNetIpv4TcpkeepaliveIntvl() int32 { + if x != nil && x.NetIpv4TcpkeepaliveIntvl != nil { + return *x.NetIpv4TcpkeepaliveIntvl + } + return 0 +} + +func (x *SysctlConfig) GetNetIpv4TcpTwReuse() bool { + if x != nil && x.NetIpv4TcpTwReuse != nil { + return *x.NetIpv4TcpTwReuse + } + return false +} + +func (x *SysctlConfig) GetNetIpv4IpLocalPortRange() string { + if x != nil && x.NetIpv4IpLocalPortRange != nil { + return *x.NetIpv4IpLocalPortRange + } + return "" +} + +func (x *SysctlConfig) GetNetIpv4NeighDefaultGcThresh1() int32 { + if x != nil && x.NetIpv4NeighDefaultGcThresh1 != nil { + return *x.NetIpv4NeighDefaultGcThresh1 + } + return 0 +} + +func (x *SysctlConfig) GetNetIpv4NeighDefaultGcThresh2() int32 { + if x != nil && x.NetIpv4NeighDefaultGcThresh2 != nil { + return *x.NetIpv4NeighDefaultGcThresh2 + } + return 0 +} + +func (x *SysctlConfig) GetNetIpv4NeighDefaultGcThresh3() int32 { + if x != nil && x.NetIpv4NeighDefaultGcThresh3 != nil { + return *x.NetIpv4NeighDefaultGcThresh3 + } + return 0 +} + +func (x *SysctlConfig) GetNetNetfilterNfConntrackMax() int32 { + if x != nil && x.NetNetfilterNfConntrackMax != nil { + return *x.NetNetfilterNfConntrackMax + } + return 0 +} + +func (x *SysctlConfig) GetNetNetfilterNfConntrackBuckets() int32 { + if x != nil && x.NetNetfilterNfConntrackBuckets != nil { + return *x.NetNetfilterNfConntrackBuckets + } + return 0 +} + +func (x *SysctlConfig) GetFsInotifyMaxUserWatches() int32 { + if x != nil && x.FsInotifyMaxUserWatches != nil { + return *x.FsInotifyMaxUserWatches + } + return 0 +} + +func (x *SysctlConfig) GetFsFileMax() int32 { + if x != nil && x.FsFileMax != nil { + return *x.FsFileMax + } + return 0 +} + +func (x *SysctlConfig) GetFsAioMaxNr() int32 { + if x != nil && x.FsAioMaxNr != nil { + return *x.FsAioMaxNr + } + return 0 +} + +func (x *SysctlConfig) GetFsNrOpen() int32 { + if x != nil && x.FsNrOpen != nil { + return *x.FsNrOpen + } + return 0 +} + +func (x *SysctlConfig) GetKernelThreadsMax() int32 { + if x != nil && x.KernelThreadsMax != nil { + return *x.KernelThreadsMax + } + return 0 +} + +func (x *SysctlConfig) GetVmMaxMapCount() int32 { + if x != nil && x.VmMaxMapCount != nil { + return *x.VmMaxMapCount + } + return 0 +} + +func (x *SysctlConfig) GetVmSwappiness() int32 { + if x != nil && x.VmSwappiness != nil { + return *x.VmSwappiness + } + return 0 +} + +func (x *SysctlConfig) GetVmVfsCachePressure() int32 { + if x != nil && x.VmVfsCachePressure != nil { + return *x.VmVfsCachePressure + } + return 0 +} + +type UlimitConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // using optional here to allow detecting if the field is set or not (explicit presence in proto3) + NoFile *string `protobuf:"bytes,1,opt,name=no_file,json=noFile,proto3,oneof" json:"no_file,omitempty"` + MaxLockedMemory *string `protobuf:"bytes,2,opt,name=max_locked_memory,json=maxLockedMemory,proto3,oneof" json:"max_locked_memory,omitempty"` +} + +func (x *UlimitConfig) Reset() { + *x = UlimitConfig{} + mi := &file_aksnodeconfig_v1_custom_linux_os_config_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *UlimitConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*UlimitConfig) ProtoMessage() {} + +func (x *UlimitConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_custom_linux_os_config_proto_msgTypes[2] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use UlimitConfig.ProtoReflect.Descriptor instead. +func (*UlimitConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDescGZIP(), []int{2} +} + +func (x *UlimitConfig) GetNoFile() string { + if x != nil && x.NoFile != nil { + return *x.NoFile + } + return "" +} + +func (x *UlimitConfig) GetMaxLockedMemory() string { + if x != nil && x.MaxLockedMemory != nil { + return *x.MaxLockedMemory + } + return "" +} + +var File_aksnodeconfig_v1_custom_linux_os_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDesc = []byte{ + 0x0a, 0x2d, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, + 0x6f, 0x73, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, + 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, + 0x31, 0x22, 0xe4, 0x02, 0x0a, 0x13, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x69, 0x6e, 0x75, + 0x78, 0x4f, 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0d, 0x73, 0x79, 0x73, + 0x63, 0x74, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1e, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x52, 0x0c, 0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, + 0x0a, 0x0d, 0x75, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x75, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x77, + 0x61, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x10, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x77, 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, + 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x73, 0x77, 0x61, 0x70, 0x46, + 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x40, 0x0a, 0x1c, 0x74, 0x72, 0x61, 0x6e, 0x73, + 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x75, 0x67, 0x65, 0x70, 0x61, 0x67, 0x65, 0x5f, + 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1a, 0x74, + 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x48, 0x75, 0x67, 0x65, 0x70, 0x61, + 0x67, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x2d, 0x0a, 0x12, 0x74, 0x72, 0x61, + 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x64, 0x65, 0x66, 0x72, 0x61, 0x67, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, + 0x6e, 0x74, 0x44, 0x65, 0x66, 0x72, 0x61, 0x67, 0x22, 0x9d, 0x13, 0x0a, 0x0c, 0x53, 0x79, 0x73, + 0x63, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, 0x12, 0x6e, 0x65, 0x74, + 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x73, 0x6f, 0x6d, 0x61, 0x78, 0x63, 0x6f, 0x6e, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x10, 0x6e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, + 0x53, 0x6f, 0x6d, 0x61, 0x78, 0x63, 0x6f, 0x6e, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x41, 0x0a, 0x1b, + 0x6e, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x6e, 0x65, 0x74, 0x64, 0x65, 0x76, 0x5f, + 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x05, 0x48, 0x01, 0x52, 0x17, 0x6e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x4e, 0x65, 0x74, 0x64, + 0x65, 0x76, 0x4d, 0x61, 0x78, 0x42, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x88, 0x01, 0x01, 0x12, + 0x36, 0x0a, 0x15, 0x6e, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x6d, 0x65, 0x6d, + 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x02, + 0x52, 0x12, 0x6e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x52, 0x6d, 0x65, 0x6d, 0x44, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2e, 0x0a, 0x11, 0x6e, 0x65, 0x74, 0x5f, 0x63, + 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x6d, 0x65, 0x6d, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x05, 0x48, 0x03, 0x52, 0x0e, 0x6e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x52, 0x6d, 0x65, + 0x6d, 0x4d, 0x61, 0x78, 0x88, 0x01, 0x01, 0x12, 0x36, 0x0a, 0x15, 0x6e, 0x65, 0x74, 0x5f, 0x63, + 0x6f, 0x72, 0x65, 0x5f, 0x77, 0x6d, 0x65, 0x6d, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, + 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x48, 0x04, 0x52, 0x12, 0x6e, 0x65, 0x74, 0x43, 0x6f, 0x72, + 0x65, 0x57, 0x6d, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x88, 0x01, 0x01, 0x12, + 0x2e, 0x0a, 0x11, 0x6e, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x77, 0x6d, 0x65, 0x6d, + 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x48, 0x05, 0x52, 0x0e, 0x6e, 0x65, + 0x74, 0x43, 0x6f, 0x72, 0x65, 0x57, 0x6d, 0x65, 0x6d, 0x4d, 0x61, 0x78, 0x88, 0x01, 0x01, 0x12, + 0x32, 0x0a, 0x13, 0x6e, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x6f, 0x70, 0x74, 0x6d, + 0x65, 0x6d, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x48, 0x06, 0x52, 0x10, + 0x6e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x4f, 0x70, 0x74, 0x6d, 0x65, 0x6d, 0x4d, 0x61, 0x78, + 0x88, 0x01, 0x01, 0x12, 0x42, 0x0a, 0x1c, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, + 0x74, 0x63, 0x70, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x79, 0x6e, 0x5f, 0x62, 0x61, 0x63, 0x6b, + 0x6c, 0x6f, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x48, 0x07, 0x52, 0x17, 0x6e, 0x65, 0x74, + 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x4d, 0x61, 0x78, 0x53, 0x79, 0x6e, 0x42, 0x61, 0x63, + 0x6b, 0x6c, 0x6f, 0x67, 0x88, 0x01, 0x01, 0x12, 0x40, 0x0a, 0x1b, 0x6e, 0x65, 0x74, 0x5f, 0x69, + 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x74, 0x77, 0x5f, 0x62, + 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, 0x48, 0x08, 0x52, 0x16, + 0x6e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x4d, 0x61, 0x78, 0x54, 0x77, 0x42, + 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x88, 0x01, 0x01, 0x12, 0x3b, 0x0a, 0x18, 0x6e, 0x65, 0x74, + 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x66, 0x69, 0x6e, 0x5f, 0x74, 0x69, + 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x48, 0x09, 0x52, 0x14, 0x6e, + 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x46, 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x88, 0x01, 0x01, 0x12, 0x41, 0x0a, 0x1b, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x70, + 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x48, 0x0a, 0x52, 0x17, 0x6e, + 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, + 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x45, 0x0a, 0x1d, 0x6e, 0x65, 0x74, + 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, + 0x69, 0x76, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, + 0x48, 0x0b, 0x52, 0x19, 0x6e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x4b, 0x65, + 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x88, 0x01, 0x01, + 0x12, 0x42, 0x0a, 0x1b, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, + 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x76, 0x6c, 0x18, + 0x0d, 0x20, 0x01, 0x28, 0x05, 0x48, 0x0c, 0x52, 0x18, 0x6e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, + 0x54, 0x63, 0x70, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x76, + 0x6c, 0x88, 0x01, 0x01, 0x12, 0x35, 0x0a, 0x15, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, + 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x74, 0x77, 0x5f, 0x72, 0x65, 0x75, 0x73, 0x65, 0x18, 0x0e, 0x20, + 0x01, 0x28, 0x08, 0x48, 0x0d, 0x52, 0x11, 0x6e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, + 0x70, 0x54, 0x77, 0x52, 0x65, 0x75, 0x73, 0x65, 0x88, 0x01, 0x01, 0x12, 0x42, 0x0a, 0x1c, 0x6e, + 0x65, 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x69, 0x70, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, + 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x0e, 0x52, 0x17, 0x6e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x49, 0x70, 0x4c, 0x6f, + 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, + 0x4c, 0x0a, 0x21, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x6e, 0x65, 0x69, 0x67, + 0x68, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x67, 0x63, 0x5f, 0x74, 0x68, 0x72, + 0x65, 0x73, 0x68, 0x31, 0x18, 0x10, 0x20, 0x01, 0x28, 0x05, 0x48, 0x0f, 0x52, 0x1c, 0x6e, 0x65, + 0x74, 0x49, 0x70, 0x76, 0x34, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, + 0x74, 0x47, 0x63, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x31, 0x88, 0x01, 0x01, 0x12, 0x4c, 0x0a, + 0x21, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x6e, 0x65, 0x69, 0x67, 0x68, 0x5f, + 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x67, 0x63, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, + 0x68, 0x32, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x48, 0x10, 0x52, 0x1c, 0x6e, 0x65, 0x74, 0x49, + 0x70, 0x76, 0x34, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, + 0x63, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x32, 0x88, 0x01, 0x01, 0x12, 0x4c, 0x0a, 0x21, 0x6e, + 0x65, 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x6e, 0x65, 0x69, 0x67, 0x68, 0x5f, 0x64, 0x65, + 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x67, 0x63, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x33, + 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x48, 0x11, 0x52, 0x1c, 0x6e, 0x65, 0x74, 0x49, 0x70, 0x76, + 0x34, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, 0x63, 0x54, + 0x68, 0x72, 0x65, 0x73, 0x68, 0x33, 0x88, 0x01, 0x01, 0x12, 0x47, 0x0a, 0x1e, 0x6e, 0x65, 0x74, + 0x5f, 0x6e, 0x65, 0x74, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x66, 0x5f, 0x63, 0x6f, + 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x13, 0x20, 0x01, 0x28, + 0x05, 0x48, 0x12, 0x52, 0x1a, 0x6e, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x66, 0x69, 0x6c, 0x74, 0x65, + 0x72, 0x4e, 0x66, 0x43, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x4d, 0x61, 0x78, 0x88, + 0x01, 0x01, 0x12, 0x4f, 0x0a, 0x22, 0x6e, 0x65, 0x74, 0x5f, 0x6e, 0x65, 0x74, 0x66, 0x69, 0x6c, + 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x66, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, + 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x48, 0x13, + 0x52, 0x1e, 0x6e, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4e, 0x66, + 0x43, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, + 0x88, 0x01, 0x01, 0x12, 0x41, 0x0a, 0x1b, 0x66, 0x73, 0x5f, 0x69, 0x6e, 0x6f, 0x74, 0x69, 0x66, + 0x79, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x77, 0x61, 0x74, 0x63, 0x68, + 0x65, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x48, 0x14, 0x52, 0x17, 0x66, 0x73, 0x49, 0x6e, + 0x6f, 0x74, 0x69, 0x66, 0x79, 0x4d, 0x61, 0x78, 0x55, 0x73, 0x65, 0x72, 0x57, 0x61, 0x74, 0x63, + 0x68, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x23, 0x0a, 0x0b, 0x66, 0x73, 0x5f, 0x66, 0x69, 0x6c, + 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x16, 0x20, 0x01, 0x28, 0x05, 0x48, 0x15, 0x52, 0x09, 0x66, + 0x73, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x61, 0x78, 0x88, 0x01, 0x01, 0x12, 0x26, 0x0a, 0x0d, 0x66, + 0x73, 0x5f, 0x61, 0x69, 0x6f, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x72, 0x18, 0x17, 0x20, 0x01, + 0x28, 0x05, 0x48, 0x16, 0x52, 0x0a, 0x66, 0x73, 0x41, 0x69, 0x6f, 0x4d, 0x61, 0x78, 0x4e, 0x72, + 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x0a, 0x66, 0x73, 0x5f, 0x6e, 0x72, 0x5f, 0x6f, 0x70, 0x65, + 0x6e, 0x18, 0x18, 0x20, 0x01, 0x28, 0x05, 0x48, 0x17, 0x52, 0x08, 0x66, 0x73, 0x4e, 0x72, 0x4f, + 0x70, 0x65, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, 0x12, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, + 0x5f, 0x74, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x5f, 0x6d, 0x61, 0x78, 0x18, 0x19, 0x20, 0x01, + 0x28, 0x05, 0x48, 0x18, 0x52, 0x10, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x54, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x73, 0x4d, 0x61, 0x78, 0x88, 0x01, 0x01, 0x12, 0x2c, 0x0a, 0x10, 0x76, 0x6d, 0x5f, + 0x6d, 0x61, 0x78, 0x5f, 0x6d, 0x61, 0x70, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x1a, 0x20, + 0x01, 0x28, 0x05, 0x48, 0x19, 0x52, 0x0d, 0x76, 0x6d, 0x4d, 0x61, 0x78, 0x4d, 0x61, 0x70, 0x43, + 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x12, 0x28, 0x0a, 0x0d, 0x76, 0x6d, 0x5f, 0x73, 0x77, + 0x61, 0x70, 0x70, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x18, 0x1b, 0x20, 0x01, 0x28, 0x05, 0x48, 0x1a, + 0x52, 0x0c, 0x76, 0x6d, 0x53, 0x77, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x88, 0x01, + 0x01, 0x12, 0x36, 0x0a, 0x15, 0x76, 0x6d, 0x5f, 0x76, 0x66, 0x73, 0x5f, 0x63, 0x61, 0x63, 0x68, + 0x65, 0x5f, 0x70, 0x72, 0x65, 0x73, 0x73, 0x75, 0x72, 0x65, 0x18, 0x1c, 0x20, 0x01, 0x28, 0x05, + 0x48, 0x1b, 0x52, 0x12, 0x76, 0x6d, 0x56, 0x66, 0x73, 0x43, 0x61, 0x63, 0x68, 0x65, 0x50, 0x72, + 0x65, 0x73, 0x73, 0x75, 0x72, 0x65, 0x88, 0x01, 0x01, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x6e, 0x65, + 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x73, 0x6f, 0x6d, 0x61, 0x78, 0x63, 0x6f, 0x6e, 0x6e, + 0x42, 0x1e, 0x0a, 0x1c, 0x5f, 0x6e, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x6e, 0x65, + 0x74, 0x64, 0x65, 0x76, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, + 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x6e, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x6d, + 0x65, 0x6d, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x6e, + 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x72, 0x6d, 0x65, 0x6d, 0x5f, 0x6d, 0x61, 0x78, + 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x6e, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x77, 0x6d, + 0x65, 0x6d, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x6e, + 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x77, 0x6d, 0x65, 0x6d, 0x5f, 0x6d, 0x61, 0x78, + 0x42, 0x16, 0x0a, 0x14, 0x5f, 0x6e, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x72, 0x65, 0x5f, 0x6f, 0x70, + 0x74, 0x6d, 0x65, 0x6d, 0x5f, 0x6d, 0x61, 0x78, 0x42, 0x1f, 0x0a, 0x1d, 0x5f, 0x6e, 0x65, 0x74, + 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x73, 0x79, + 0x6e, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x42, 0x1e, 0x0a, 0x1c, 0x5f, 0x6e, 0x65, + 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x74, + 0x77, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x6e, 0x65, + 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x66, 0x69, 0x6e, 0x5f, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 0x1e, 0x0a, 0x1c, 0x5f, 0x6e, 0x65, 0x74, 0x5f, 0x69, + 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, + 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x42, 0x20, 0x0a, 0x1e, 0x5f, 0x6e, 0x65, 0x74, 0x5f, 0x69, + 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, + 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x42, 0x1e, 0x0a, 0x1c, 0x5f, 0x6e, 0x65, 0x74, + 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, + 0x76, 0x65, 0x5f, 0x69, 0x6e, 0x74, 0x76, 0x6c, 0x42, 0x18, 0x0a, 0x16, 0x5f, 0x6e, 0x65, 0x74, + 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x74, 0x63, 0x70, 0x5f, 0x74, 0x77, 0x5f, 0x72, 0x65, 0x75, + 0x73, 0x65, 0x42, 0x1f, 0x0a, 0x1d, 0x5f, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, + 0x69, 0x70, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x72, 0x61, + 0x6e, 0x67, 0x65, 0x42, 0x24, 0x0a, 0x22, 0x5f, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, + 0x5f, 0x6e, 0x65, 0x69, 0x67, 0x68, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x67, + 0x63, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x31, 0x42, 0x24, 0x0a, 0x22, 0x5f, 0x6e, 0x65, + 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x6e, 0x65, 0x69, 0x67, 0x68, 0x5f, 0x64, 0x65, 0x66, + 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x67, 0x63, 0x5f, 0x74, 0x68, 0x72, 0x65, 0x73, 0x68, 0x32, 0x42, + 0x24, 0x0a, 0x22, 0x5f, 0x6e, 0x65, 0x74, 0x5f, 0x69, 0x70, 0x76, 0x34, 0x5f, 0x6e, 0x65, 0x69, + 0x67, 0x68, 0x5f, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x5f, 0x67, 0x63, 0x5f, 0x74, 0x68, + 0x72, 0x65, 0x73, 0x68, 0x33, 0x42, 0x21, 0x0a, 0x1f, 0x5f, 0x6e, 0x65, 0x74, 0x5f, 0x6e, 0x65, + 0x74, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x66, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x74, + 0x72, 0x61, 0x63, 0x6b, 0x5f, 0x6d, 0x61, 0x78, 0x42, 0x25, 0x0a, 0x23, 0x5f, 0x6e, 0x65, 0x74, + 0x5f, 0x6e, 0x65, 0x74, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x5f, 0x6e, 0x66, 0x5f, 0x63, 0x6f, + 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x5f, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x42, + 0x1e, 0x0a, 0x1c, 0x5f, 0x66, 0x73, 0x5f, 0x69, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x5f, 0x6d, + 0x61, 0x78, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x77, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, + 0x0e, 0x0a, 0x0c, 0x5f, 0x66, 0x73, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x6d, 0x61, 0x78, 0x42, + 0x10, 0x0a, 0x0e, 0x5f, 0x66, 0x73, 0x5f, 0x61, 0x69, 0x6f, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x6e, + 0x72, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x66, 0x73, 0x5f, 0x6e, 0x72, 0x5f, 0x6f, 0x70, 0x65, 0x6e, + 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x6b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x5f, 0x74, 0x68, 0x72, 0x65, + 0x61, 0x64, 0x73, 0x5f, 0x6d, 0x61, 0x78, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x76, 0x6d, 0x5f, 0x6d, + 0x61, 0x78, 0x5f, 0x6d, 0x61, 0x70, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x10, 0x0a, 0x0e, + 0x5f, 0x76, 0x6d, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x42, 0x18, + 0x0a, 0x16, 0x5f, 0x76, 0x6d, 0x5f, 0x76, 0x66, 0x73, 0x5f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x5f, + 0x70, 0x72, 0x65, 0x73, 0x73, 0x75, 0x72, 0x65, 0x22, 0x7f, 0x0a, 0x0c, 0x55, 0x6c, 0x69, 0x6d, + 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1c, 0x0a, 0x07, 0x6e, 0x6f, 0x5f, 0x66, + 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x6e, 0x6f, 0x46, + 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x11, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x6f, + 0x63, 0x6b, 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x48, 0x01, 0x52, 0x0f, 0x6d, 0x61, 0x78, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x4d, 0x65, + 0x6d, 0x6f, 0x72, 0x79, 0x88, 0x01, 0x01, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x6e, 0x6f, 0x5f, 0x66, + 0x69, 0x6c, 0x65, 0x42, 0x14, 0x0a, 0x12, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, + 0x65, 0x64, 0x5f, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0xeb, 0x01, 0x0a, 0x14, 0x63, 0x6f, + 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, + 0x76, 0x31, 0x42, 0x18, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4c, 0x69, 0x6e, 0x75, 0x78, 0x4f, + 0x73, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, + 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, + 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, + 0x6e, 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, + 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, + 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDescData = file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_custom_linux_os_config_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_aksnodeconfig_v1_custom_linux_os_config_proto_goTypes = []any{ + (*CustomLinuxOsConfig)(nil), // 0: aksnodeconfig.v1.CustomLinuxOsConfig + (*SysctlConfig)(nil), // 1: aksnodeconfig.v1.SysctlConfig + (*UlimitConfig)(nil), // 2: aksnodeconfig.v1.UlimitConfig +} +var file_aksnodeconfig_v1_custom_linux_os_config_proto_depIdxs = []int32{ + 1, // 0: aksnodeconfig.v1.CustomLinuxOsConfig.sysctl_config:type_name -> aksnodeconfig.v1.SysctlConfig + 2, // 1: aksnodeconfig.v1.CustomLinuxOsConfig.ulimit_config:type_name -> aksnodeconfig.v1.UlimitConfig + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_custom_linux_os_config_proto_init() } +func file_aksnodeconfig_v1_custom_linux_os_config_proto_init() { + if File_aksnodeconfig_v1_custom_linux_os_config_proto != nil { + return + } + file_aksnodeconfig_v1_custom_linux_os_config_proto_msgTypes[1].OneofWrappers = []any{} + file_aksnodeconfig_v1_custom_linux_os_config_proto_msgTypes[2].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_custom_linux_os_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_custom_linux_os_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_custom_linux_os_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_custom_linux_os_config_proto = out.File + file_aksnodeconfig_v1_custom_linux_os_config_proto_rawDesc = nil + file_aksnodeconfig_v1_custom_linux_os_config_proto_goTypes = nil + file_aksnodeconfig_v1_custom_linux_os_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/custom_search_domain_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/custom_search_domain_config.pb.go new file mode 100644 index 00000000000..9c9dbf69dc0 --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/custom_search_domain_config.pb.go @@ -0,0 +1,168 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/custom_search_domain_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type CustomSearchDomainConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The name of the custom search domain. + DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` + // The user name for the custom search domain. + RealmUser string `protobuf:"bytes,2,opt,name=realm_user,json=realmUser,proto3" json:"realm_user,omitempty"` + // The password for the custom search domain. + RealmPassword string `protobuf:"bytes,3,opt,name=realm_password,json=realmPassword,proto3" json:"realm_password,omitempty"` +} + +func (x *CustomSearchDomainConfig) Reset() { + *x = CustomSearchDomainConfig{} + mi := &file_aksnodeconfig_v1_custom_search_domain_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *CustomSearchDomainConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CustomSearchDomainConfig) ProtoMessage() {} + +func (x *CustomSearchDomainConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_custom_search_domain_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CustomSearchDomainConfig.ProtoReflect.Descriptor instead. +func (*CustomSearchDomainConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDescGZIP(), []int{0} +} + +func (x *CustomSearchDomainConfig) GetDomainName() string { + if x != nil { + return x.DomainName + } + return "" +} + +func (x *CustomSearchDomainConfig) GetRealmUser() string { + if x != nil { + return x.RealmUser + } + return "" +} + +func (x *CustomSearchDomainConfig) GetRealmPassword() string { + if x != nil { + return x.RealmPassword + } + return "" +} + +var File_aksnodeconfig_v1_custom_search_domain_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDesc = []byte{ + 0x0a, 0x32, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, + 0x5f, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0x81, 0x01, 0x0a, 0x18, 0x43, 0x75, 0x73, 0x74, 0x6f, + 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, + 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x5f, 0x75, 0x73, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x55, + 0x73, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x5f, 0x70, 0x61, 0x73, + 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x61, + 0x6c, 0x6d, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x42, 0xf0, 0x01, 0x0a, 0x14, 0x63, + 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x76, 0x31, 0x42, 0x1d, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, + 0x68, 0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, + 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, + 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, + 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDescData = file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_custom_search_domain_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_custom_search_domain_config_proto_goTypes = []any{ + (*CustomSearchDomainConfig)(nil), // 0: aksnodeconfig.v1.CustomSearchDomainConfig +} +var file_aksnodeconfig_v1_custom_search_domain_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_custom_search_domain_config_proto_init() } +func file_aksnodeconfig_v1_custom_search_domain_config_proto_init() { + if File_aksnodeconfig_v1_custom_search_domain_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_custom_search_domain_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_custom_search_domain_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_custom_search_domain_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_custom_search_domain_config_proto = out.File + file_aksnodeconfig_v1_custom_search_domain_config_proto_rawDesc = nil + file_aksnodeconfig_v1_custom_search_domain_config_proto_goTypes = nil + file_aksnodeconfig_v1_custom_search_domain_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/gpu_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/gpu_config.pb.go new file mode 100644 index 00000000000..f92f26c87a2 --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/gpu_config.pb.go @@ -0,0 +1,182 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/gpu_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type GpuConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Specifies whether any nvidia configurations should be applied for GPU nodes. False when vm size is not a GPU node or driver install is skipped and no GPU configuration is needed. + // Making optional so that default will be set to IsNvidiaEnabledSku(vmSize) instead of false + EnableNvidia *bool `protobuf:"varint,1,opt,name=enable_nvidia,json=enableNvidia,proto3,oneof" json:"enable_nvidia,omitempty"` + // Specifies whether bootstrap process should install and configure the GPU driver when necessary. Configuration includes appropriate set up of components like the fabric manager where applicable. + ConfigGpuDriver bool `protobuf:"varint,2,opt,name=config_gpu_driver,json=configGpuDriver,proto3" json:"config_gpu_driver,omitempty"` + // Specifies whether special config is needed for MIG GPUs that use GPU dedicated VHDs and enable the device plugin (for all GPU dedicated VHDs) + GpuDevicePlugin bool `protobuf:"varint,3,opt,name=gpu_device_plugin,json=gpuDevicePlugin,proto3" json:"gpu_device_plugin,omitempty"` + // Represents the GPU instance profile. + GpuInstanceProfile string `protobuf:"bytes,4,opt,name=gpu_instance_profile,json=gpuInstanceProfile,proto3" json:"gpu_instance_profile,omitempty"` +} + +func (x *GpuConfig) Reset() { + *x = GpuConfig{} + mi := &file_aksnodeconfig_v1_gpu_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *GpuConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GpuConfig) ProtoMessage() {} + +func (x *GpuConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_gpu_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GpuConfig.ProtoReflect.Descriptor instead. +func (*GpuConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_gpu_config_proto_rawDescGZIP(), []int{0} +} + +func (x *GpuConfig) GetEnableNvidia() bool { + if x != nil && x.EnableNvidia != nil { + return *x.EnableNvidia + } + return false +} + +func (x *GpuConfig) GetConfigGpuDriver() bool { + if x != nil { + return x.ConfigGpuDriver + } + return false +} + +func (x *GpuConfig) GetGpuDevicePlugin() bool { + if x != nil { + return x.GpuDevicePlugin + } + return false +} + +func (x *GpuConfig) GetGpuInstanceProfile() string { + if x != nil { + return x.GpuInstanceProfile + } + return "" +} + +var File_aksnodeconfig_v1_gpu_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_gpu_config_proto_rawDesc = []byte{ + 0x0a, 0x21, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x67, 0x70, 0x75, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xd1, 0x01, 0x0a, 0x09, 0x47, 0x70, 0x75, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x12, 0x28, 0x0a, 0x0d, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x76, + 0x69, 0x64, 0x69, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, 0x65, 0x6e, + 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x76, 0x69, 0x64, 0x69, 0x61, 0x88, 0x01, 0x01, 0x12, 0x2a, 0x0a, + 0x11, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x67, 0x70, 0x75, 0x5f, 0x64, 0x72, 0x69, 0x76, + 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x47, 0x70, 0x75, 0x44, 0x72, 0x69, 0x76, 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x70, 0x75, + 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x67, 0x70, 0x75, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x30, 0x0a, 0x14, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x6e, 0x73, + 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x12, 0x67, 0x70, 0x75, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, + 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x6e, 0x76, 0x69, 0x64, 0x69, 0x61, 0x42, 0xe1, 0x01, 0x0a, 0x14, 0x63, 0x6f, + 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, + 0x76, 0x31, 0x42, 0x0e, 0x47, 0x70, 0x75, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, + 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, + 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, + 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, + 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, + 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, + 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, + 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_gpu_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_gpu_config_proto_rawDescData = file_aksnodeconfig_v1_gpu_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_gpu_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_gpu_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_gpu_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_gpu_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_gpu_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_gpu_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_gpu_config_proto_goTypes = []any{ + (*GpuConfig)(nil), // 0: aksnodeconfig.v1.GpuConfig +} +var file_aksnodeconfig_v1_gpu_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_gpu_config_proto_init() } +func file_aksnodeconfig_v1_gpu_config_proto_init() { + if File_aksnodeconfig_v1_gpu_config_proto != nil { + return + } + file_aksnodeconfig_v1_gpu_config_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_gpu_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_gpu_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_gpu_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_gpu_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_gpu_config_proto = out.File + file_aksnodeconfig_v1_gpu_config_proto_rawDesc = nil + file_aksnodeconfig_v1_gpu_config_proto_goTypes = nil + file_aksnodeconfig_v1_gpu_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/http_proxy_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/http_proxy_config.pb.go new file mode 100644 index 00000000000..9279958fe3e --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/http_proxy_config.pb.go @@ -0,0 +1,178 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/http_proxy_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type HttpProxyConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Proxy endpoint/URL using HTTP through which the traffic should be routed for making HTTP connections outside the cluster + HttpProxy string `protobuf:"bytes,1,opt,name=http_proxy,json=httpProxy,proto3" json:"http_proxy,omitempty"` + // Proxy endpoint/URL using HTTPS through which the traffic should be routed for making HTTPS connections outside the cluster + HttpsProxy string `protobuf:"bytes,2,opt,name=https_proxy,json=httpsProxy,proto3" json:"https_proxy,omitempty"` + // A list of entries including IPs, domains, or other network CIDRs that should not be accessed through the proxy + NoProxyEntries []string `protobuf:"bytes,3,rep,name=no_proxy_entries,json=noProxyEntries,proto3" json:"no_proxy_entries,omitempty"` + // Custom CA certificate that should be trusted by the proxy + ProxyTrustedCa string `protobuf:"bytes,4,opt,name=proxy_trusted_ca,json=proxyTrustedCa,proto3" json:"proxy_trusted_ca,omitempty"` +} + +func (x *HttpProxyConfig) Reset() { + *x = HttpProxyConfig{} + mi := &file_aksnodeconfig_v1_http_proxy_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *HttpProxyConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*HttpProxyConfig) ProtoMessage() {} + +func (x *HttpProxyConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_http_proxy_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use HttpProxyConfig.ProtoReflect.Descriptor instead. +func (*HttpProxyConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_http_proxy_config_proto_rawDescGZIP(), []int{0} +} + +func (x *HttpProxyConfig) GetHttpProxy() string { + if x != nil { + return x.HttpProxy + } + return "" +} + +func (x *HttpProxyConfig) GetHttpsProxy() string { + if x != nil { + return x.HttpsProxy + } + return "" +} + +func (x *HttpProxyConfig) GetNoProxyEntries() []string { + if x != nil { + return x.NoProxyEntries + } + return nil +} + +func (x *HttpProxyConfig) GetProxyTrustedCa() string { + if x != nil { + return x.ProxyTrustedCa + } + return "" +} + +var File_aksnodeconfig_v1_http_proxy_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_http_proxy_config_proto_rawDesc = []byte{ + 0x0a, 0x28, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xa5, 0x01, 0x0a, + 0x0f, 0x48, 0x74, 0x74, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x74, 0x74, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, + 0x1f, 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x73, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x74, 0x74, 0x70, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, + 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x6f, 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x74, + 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0e, 0x6e, 0x6f, 0x50, 0x72, + 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x72, + 0x6f, 0x78, 0x79, 0x5f, 0x74, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x5f, 0x63, 0x61, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x54, 0x72, 0x75, 0x73, 0x74, + 0x65, 0x64, 0x43, 0x61, 0x42, 0xe7, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x48, + 0x74, 0x74, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, + 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, + 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, + 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, + 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, + 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, + 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_http_proxy_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_http_proxy_config_proto_rawDescData = file_aksnodeconfig_v1_http_proxy_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_http_proxy_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_http_proxy_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_http_proxy_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_http_proxy_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_http_proxy_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_http_proxy_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_http_proxy_config_proto_goTypes = []any{ + (*HttpProxyConfig)(nil), // 0: aksnodeconfig.v1.HttpProxyConfig +} +var file_aksnodeconfig_v1_http_proxy_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_http_proxy_config_proto_init() } +func file_aksnodeconfig_v1_http_proxy_config_proto_init() { + if File_aksnodeconfig_v1_http_proxy_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_http_proxy_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_http_proxy_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_http_proxy_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_http_proxy_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_http_proxy_config_proto = out.File + file_aksnodeconfig_v1_http_proxy_config_proto_rawDesc = nil + file_aksnodeconfig_v1_http_proxy_config_proto_goTypes = nil + file_aksnodeconfig_v1_http_proxy_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/imds_restriction_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/imds_restriction_config.pb.go new file mode 100644 index 00000000000..da015ac38b2 --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/imds_restriction_config.pb.go @@ -0,0 +1,161 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/imds_restriction_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ImdsRestrictionConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Enable IMDS restriction for the node. + EnableImdsRestriction bool `protobuf:"varint,1,opt,name=enable_imds_restriction,json=enableImdsRestriction,proto3" json:"enable_imds_restriction,omitempty"` + // Insert IMDS restriction rule to mangle table. + InsertImdsRestrictionRuleToMangleTable bool `protobuf:"varint,2,opt,name=insert_imds_restriction_rule_to_mangle_table,json=insertImdsRestrictionRuleToMangleTable,proto3" json:"insert_imds_restriction_rule_to_mangle_table,omitempty"` +} + +func (x *ImdsRestrictionConfig) Reset() { + *x = ImdsRestrictionConfig{} + mi := &file_aksnodeconfig_v1_imds_restriction_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *ImdsRestrictionConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ImdsRestrictionConfig) ProtoMessage() {} + +func (x *ImdsRestrictionConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_imds_restriction_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ImdsRestrictionConfig.ProtoReflect.Descriptor instead. +func (*ImdsRestrictionConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_imds_restriction_config_proto_rawDescGZIP(), []int{0} +} + +func (x *ImdsRestrictionConfig) GetEnableImdsRestriction() bool { + if x != nil { + return x.EnableImdsRestriction + } + return false +} + +func (x *ImdsRestrictionConfig) GetInsertImdsRestrictionRuleToMangleTable() bool { + if x != nil { + return x.InsertImdsRestrictionRuleToMangleTable + } + return false +} + +var File_aksnodeconfig_v1_imds_restriction_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_imds_restriction_config_proto_rawDesc = []byte{ + 0x0a, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x64, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, + 0x76, 0x31, 0x22, 0xad, 0x01, 0x0a, 0x15, 0x49, 0x6d, 0x64, 0x73, 0x52, 0x65, 0x73, 0x74, 0x72, + 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x17, + 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, 0x6d, 0x64, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x74, + 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, + 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6d, 0x64, 0x73, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5c, 0x0a, 0x2c, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x5f, 0x69, + 0x6d, 0x64, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, + 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, 0x6d, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x74, + 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x26, 0x69, 0x6e, 0x73, 0x65, + 0x72, 0x74, 0x49, 0x6d, 0x64, 0x73, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, + 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x54, 0x6f, 0x4d, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x54, 0x61, 0x62, + 0x6c, 0x65, 0x42, 0xed, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, + 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x1a, 0x49, 0x6d, 0x64, + 0x73, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, 0x75, + 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, + 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, + 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, + 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, + 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, + 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, + 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, + 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_imds_restriction_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_imds_restriction_config_proto_rawDescData = file_aksnodeconfig_v1_imds_restriction_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_imds_restriction_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_imds_restriction_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_imds_restriction_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_imds_restriction_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_imds_restriction_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_imds_restriction_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_imds_restriction_config_proto_goTypes = []any{ + (*ImdsRestrictionConfig)(nil), // 0: aksnodeconfig.v1.ImdsRestrictionConfig +} +var file_aksnodeconfig_v1_imds_restriction_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_imds_restriction_config_proto_init() } +func file_aksnodeconfig_v1_imds_restriction_config_proto_init() { + if File_aksnodeconfig_v1_imds_restriction_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_imds_restriction_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_imds_restriction_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_imds_restriction_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_imds_restriction_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_imds_restriction_config_proto = out.File + file_aksnodeconfig_v1_imds_restriction_config_proto_rawDesc = nil + file_aksnodeconfig_v1_imds_restriction_config_proto_goTypes = nil + file_aksnodeconfig_v1_imds_restriction_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/kube_binary_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/kube_binary_config.pb.go new file mode 100644 index 00000000000..2335ffd527d --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/kube_binary_config.pb.go @@ -0,0 +1,196 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/kube_binary_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// Kube Binary Config +type KubeBinaryConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // default kube binary url + KubeBinaryUrl string `protobuf:"bytes,1,opt,name=kube_binary_url,json=kubeBinaryUrl,proto3" json:"kube_binary_url,omitempty"` + // user's custom kube binary url + CustomKubeBinaryUrl string `protobuf:"bytes,2,opt,name=custom_kube_binary_url,json=customKubeBinaryUrl,proto3" json:"custom_kube_binary_url,omitempty"` + // privately cached kube binary url + PrivateKubeBinaryUrl string `protobuf:"bytes,3,opt,name=private_kube_binary_url,json=privateKubeBinaryUrl,proto3" json:"private_kube_binary_url,omitempty"` + // full path to the "pause" image. Used for --pod-infra-container-image. + PodInfraContainerImageUrl string `protobuf:"bytes,4,opt,name=pod_infra_container_image_url,json=podInfraContainerImageUrl,proto3" json:"pod_infra_container_image_url,omitempty"` + // Full path to the Linux credential provider (tar.gz) to use. + LinuxCredentialProviderUrl string `protobuf:"bytes,5,opt,name=linux_credential_provider_url,json=linuxCredentialProviderUrl,proto3" json:"linux_credential_provider_url,omitempty"` +} + +func (x *KubeBinaryConfig) Reset() { + *x = KubeBinaryConfig{} + mi := &file_aksnodeconfig_v1_kube_binary_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *KubeBinaryConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*KubeBinaryConfig) ProtoMessage() {} + +func (x *KubeBinaryConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_kube_binary_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use KubeBinaryConfig.ProtoReflect.Descriptor instead. +func (*KubeBinaryConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_kube_binary_config_proto_rawDescGZIP(), []int{0} +} + +func (x *KubeBinaryConfig) GetKubeBinaryUrl() string { + if x != nil { + return x.KubeBinaryUrl + } + return "" +} + +func (x *KubeBinaryConfig) GetCustomKubeBinaryUrl() string { + if x != nil { + return x.CustomKubeBinaryUrl + } + return "" +} + +func (x *KubeBinaryConfig) GetPrivateKubeBinaryUrl() string { + if x != nil { + return x.PrivateKubeBinaryUrl + } + return "" +} + +func (x *KubeBinaryConfig) GetPodInfraContainerImageUrl() string { + if x != nil { + return x.PodInfraContainerImageUrl + } + return "" +} + +func (x *KubeBinaryConfig) GetLinuxCredentialProviderUrl() string { + if x != nil { + return x.LinuxCredentialProviderUrl + } + return "" +} + +var File_aksnodeconfig_v1_kube_binary_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_kube_binary_config_proto_rawDesc = []byte{ + 0x0a, 0x29, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xab, 0x02, + 0x0a, 0x10, 0x4b, 0x75, 0x62, 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x75, 0x62, 0x65, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, + 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6b, 0x75, 0x62, + 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x55, 0x72, 0x6c, 0x12, 0x33, 0x0a, 0x16, 0x63, 0x75, + 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, + 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x13, 0x63, 0x75, 0x73, 0x74, + 0x6f, 0x6d, 0x4b, 0x75, 0x62, 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x55, 0x72, 0x6c, 0x12, + 0x35, 0x0a, 0x17, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x5f, + 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x14, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, 0x65, 0x4b, 0x75, 0x62, 0x65, 0x42, 0x69, 0x6e, + 0x61, 0x72, 0x79, 0x55, 0x72, 0x6c, 0x12, 0x40, 0x0a, 0x1d, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x6e, + 0x66, 0x72, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, + 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, 0x70, + 0x6f, 0x64, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x49, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x12, 0x41, 0x0a, 0x1d, 0x6c, 0x69, 0x6e, 0x75, + 0x78, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x6f, + 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x1a, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x43, 0x72, 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, + 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x55, 0x72, 0x6c, 0x42, 0xe8, 0x01, 0x0a, 0x14, + 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x76, 0x31, 0x42, 0x15, 0x4b, 0x75, 0x62, 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, + 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, + 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, + 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_kube_binary_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_kube_binary_config_proto_rawDescData = file_aksnodeconfig_v1_kube_binary_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_kube_binary_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_kube_binary_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_kube_binary_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_kube_binary_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_kube_binary_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_kube_binary_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_kube_binary_config_proto_goTypes = []any{ + (*KubeBinaryConfig)(nil), // 0: aksnodeconfig.v1.KubeBinaryConfig +} +var file_aksnodeconfig_v1_kube_binary_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_kube_binary_config_proto_init() } +func file_aksnodeconfig_v1_kube_binary_config_proto_init() { + if File_aksnodeconfig_v1_kube_binary_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_kube_binary_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_kube_binary_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_kube_binary_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_kube_binary_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_kube_binary_config_proto = out.File + file_aksnodeconfig_v1_kube_binary_config_proto_rawDesc = nil + file_aksnodeconfig_v1_kube_binary_config_proto_goTypes = nil + file_aksnodeconfig_v1_kube_binary_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/kubelet_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/kubelet_config.pb.go new file mode 100644 index 00000000000..e628d4d5648 --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/kubelet_config.pb.go @@ -0,0 +1,394 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/kubelet_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type KubeletDisk int32 + +const ( + KubeletDisk_KUBELET_DISK_UNSPECIFIED KubeletDisk = 0 + KubeletDisk_KUBELET_DISK_OS_DISK KubeletDisk = 1 + KubeletDisk_KUBELET_DISK_TEMP_DISK KubeletDisk = 2 +) + +// Enum value maps for KubeletDisk. +var ( + KubeletDisk_name = map[int32]string{ + 0: "KUBELET_DISK_UNSPECIFIED", + 1: "KUBELET_DISK_OS_DISK", + 2: "KUBELET_DISK_TEMP_DISK", + } + KubeletDisk_value = map[string]int32{ + "KUBELET_DISK_UNSPECIFIED": 0, + "KUBELET_DISK_OS_DISK": 1, + "KUBELET_DISK_TEMP_DISK": 2, + } +) + +func (x KubeletDisk) Enum() *KubeletDisk { + p := new(KubeletDisk) + *p = x + return p +} + +func (x KubeletDisk) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (KubeletDisk) Descriptor() protoreflect.EnumDescriptor { + return file_aksnodeconfig_v1_kubelet_config_proto_enumTypes[0].Descriptor() +} + +func (KubeletDisk) Type() protoreflect.EnumType { + return &file_aksnodeconfig_v1_kubelet_config_proto_enumTypes[0] +} + +func (x KubeletDisk) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use KubeletDisk.Descriptor instead. +func (KubeletDisk) EnumDescriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_kubelet_config_proto_rawDescGZIP(), []int{0} +} + +type KubeletConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A list of taints to apply to the node. + Taints []*Taint `protobuf:"bytes,1,rep,name=taints,proto3" json:"taints,omitempty"` + // A map of kubelet flags to their values. + KubeletFlags map[string]string `protobuf:"bytes,2,rep,name=kubelet_flags,json=kubeletFlags,proto3" json:"kubelet_flags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // A map of node labels to their values. + KubeletNodeLabels map[string]string `protobuf:"bytes,3,rep,name=kubelet_node_labels,json=kubeletNodeLabels,proto3" json:"kubelet_node_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + // A list of taints to apply to the node at startup. + StartupTaints []*Taint `protobuf:"bytes,4,rep,name=startup_taints,json=startupTaints,proto3" json:"startup_taints,omitempty"` + // The type of disk to use for the kubelet. + KubeletDiskType KubeletDisk `protobuf:"varint,5,opt,name=kubelet_disk_type,json=kubeletDiskType,proto3,enum=aksnodeconfig.v1.KubeletDisk" json:"kubelet_disk_type,omitempty"` + // Whether kubelet config should be enabled. + EnableKubeletConfigFile bool `protobuf:"varint,6,opt,name=enable_kubelet_config_file,json=enableKubeletConfigFile,proto3" json:"enable_kubelet_config_file,omitempty"` + // Base64 encoded content of the kubelet config file. + KubeletConfigFileContent string `protobuf:"bytes,7,opt,name=kubelet_config_file_content,json=kubeletConfigFileContent,proto3" json:"kubelet_config_file_content,omitempty"` + // Kubelet client private key + KubeletClientKey string `protobuf:"bytes,8,opt,name=kubelet_client_key,json=kubeletClientKey,proto3" json:"kubelet_client_key,omitempty"` + // The content of the kubelet client certificate file. + KubeletClientCertContent string `protobuf:"bytes,9,opt,name=kubelet_client_cert_content,json=kubeletClientCertContent,proto3" json:"kubelet_client_cert_content,omitempty"` + // The path used to mount docker images, emptyDir volumes, and kubelet data. + ContainerDataDir string `protobuf:"bytes,10,opt,name=container_data_dir,json=containerDataDir,proto3" json:"container_data_dir,omitempty"` +} + +func (x *KubeletConfig) Reset() { + *x = KubeletConfig{} + mi := &file_aksnodeconfig_v1_kubelet_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *KubeletConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*KubeletConfig) ProtoMessage() {} + +func (x *KubeletConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_kubelet_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use KubeletConfig.ProtoReflect.Descriptor instead. +func (*KubeletConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_kubelet_config_proto_rawDescGZIP(), []int{0} +} + +func (x *KubeletConfig) GetTaints() []*Taint { + if x != nil { + return x.Taints + } + return nil +} + +func (x *KubeletConfig) GetKubeletFlags() map[string]string { + if x != nil { + return x.KubeletFlags + } + return nil +} + +func (x *KubeletConfig) GetKubeletNodeLabels() map[string]string { + if x != nil { + return x.KubeletNodeLabels + } + return nil +} + +func (x *KubeletConfig) GetStartupTaints() []*Taint { + if x != nil { + return x.StartupTaints + } + return nil +} + +func (x *KubeletConfig) GetKubeletDiskType() KubeletDisk { + if x != nil { + return x.KubeletDiskType + } + return KubeletDisk_KUBELET_DISK_UNSPECIFIED +} + +func (x *KubeletConfig) GetEnableKubeletConfigFile() bool { + if x != nil { + return x.EnableKubeletConfigFile + } + return false +} + +func (x *KubeletConfig) GetKubeletConfigFileContent() string { + if x != nil { + return x.KubeletConfigFileContent + } + return "" +} + +func (x *KubeletConfig) GetKubeletClientKey() string { + if x != nil { + return x.KubeletClientKey + } + return "" +} + +func (x *KubeletConfig) GetKubeletClientCertContent() string { + if x != nil { + return x.KubeletClientCertContent + } + return "" +} + +func (x *KubeletConfig) GetContainerDataDir() string { + if x != nil { + return x.ContainerDataDir + } + return "" +} + +type Taint struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Effect string `protobuf:"bytes,2,opt,name=effect,proto3" json:"effect,omitempty"` +} + +func (x *Taint) Reset() { + *x = Taint{} + mi := &file_aksnodeconfig_v1_kubelet_config_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *Taint) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Taint) ProtoMessage() {} + +func (x *Taint) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_kubelet_config_proto_msgTypes[1] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Taint.ProtoReflect.Descriptor instead. +func (*Taint) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_kubelet_config_proto_rawDescGZIP(), []int{1} +} + +func (x *Taint) GetKey() string { + if x != nil { + return x.Key + } + return "" +} + +func (x *Taint) GetEffect() string { + if x != nil { + return x.Effect + } + return "" +} + +var File_aksnodeconfig_v1_kubelet_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_kubelet_config_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xa9, 0x06, 0x0a, 0x0d, 0x4b, 0x75, + 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2f, 0x0a, 0x06, 0x74, + 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, + 0x61, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x56, 0x0a, 0x0d, + 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x46, 0x6c, 0x61, 0x67, + 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x46, + 0x6c, 0x61, 0x67, 0x73, 0x12, 0x66, 0x0a, 0x13, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, + 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x36, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x11, 0x6b, 0x75, 0x62, 0x65, 0x6c, + 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3e, 0x0a, 0x0e, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x75, 0x70, 0x5f, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x04, + 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x69, 0x6e, 0x74, 0x52, 0x0d, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x75, 0x70, 0x54, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x11, + 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, + 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, + 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x6c, + 0x65, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x52, 0x0f, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x44, + 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x1a, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x65, 0x6e, 0x61, + 0x62, 0x6c, 0x65, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x46, 0x69, 0x6c, 0x65, 0x12, 0x3d, 0x0a, 0x1b, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x6b, 0x75, 0x62, 0x65, 0x6c, + 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, + 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, 0x63, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6b, 0x65, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x10, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, + 0x79, 0x12, 0x3d, 0x0a, 0x1b, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, 0x63, 0x6c, 0x69, + 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, + 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, + 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x64, 0x61, + 0x74, 0x61, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6f, + 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x44, 0x61, 0x74, 0x61, 0x44, 0x69, 0x72, 0x1a, 0x3f, + 0x0a, 0x11, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, + 0x44, 0x0a, 0x16, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, + 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, + 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, + 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x31, 0x0a, 0x05, 0x54, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x10, + 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, + 0x12, 0x16, 0x0a, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, 0x74, 0x2a, 0x61, 0x0a, 0x0b, 0x4b, 0x75, 0x62, 0x65, + 0x6c, 0x65, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x12, 0x1c, 0x0a, 0x18, 0x4b, 0x55, 0x42, 0x45, 0x4c, + 0x45, 0x54, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x18, 0x0a, 0x14, 0x4b, 0x55, 0x42, 0x45, 0x4c, 0x45, 0x54, + 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, 0x4f, 0x53, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x10, 0x01, 0x12, + 0x1a, 0x0a, 0x16, 0x4b, 0x55, 0x42, 0x45, 0x4c, 0x45, 0x54, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x5f, + 0x54, 0x45, 0x4d, 0x50, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x10, 0x02, 0x42, 0xe5, 0x01, 0x0a, 0x14, + 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, + 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, + 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, + 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, + 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, + 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, + 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, + 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_kubelet_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_kubelet_config_proto_rawDescData = file_aksnodeconfig_v1_kubelet_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_kubelet_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_kubelet_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_kubelet_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_kubelet_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_kubelet_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_kubelet_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_aksnodeconfig_v1_kubelet_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4) +var file_aksnodeconfig_v1_kubelet_config_proto_goTypes = []any{ + (KubeletDisk)(0), // 0: aksnodeconfig.v1.KubeletDisk + (*KubeletConfig)(nil), // 1: aksnodeconfig.v1.KubeletConfig + (*Taint)(nil), // 2: aksnodeconfig.v1.Taint + nil, // 3: aksnodeconfig.v1.KubeletConfig.KubeletFlagsEntry + nil, // 4: aksnodeconfig.v1.KubeletConfig.KubeletNodeLabelsEntry +} +var file_aksnodeconfig_v1_kubelet_config_proto_depIdxs = []int32{ + 2, // 0: aksnodeconfig.v1.KubeletConfig.taints:type_name -> aksnodeconfig.v1.Taint + 3, // 1: aksnodeconfig.v1.KubeletConfig.kubelet_flags:type_name -> aksnodeconfig.v1.KubeletConfig.KubeletFlagsEntry + 4, // 2: aksnodeconfig.v1.KubeletConfig.kubelet_node_labels:type_name -> aksnodeconfig.v1.KubeletConfig.KubeletNodeLabelsEntry + 2, // 3: aksnodeconfig.v1.KubeletConfig.startup_taints:type_name -> aksnodeconfig.v1.Taint + 0, // 4: aksnodeconfig.v1.KubeletConfig.kubelet_disk_type:type_name -> aksnodeconfig.v1.KubeletDisk + 5, // [5:5] is the sub-list for method output_type + 5, // [5:5] is the sub-list for method input_type + 5, // [5:5] is the sub-list for extension type_name + 5, // [5:5] is the sub-list for extension extendee + 0, // [0:5] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_kubelet_config_proto_init() } +func file_aksnodeconfig_v1_kubelet_config_proto_init() { + if File_aksnodeconfig_v1_kubelet_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_kubelet_config_proto_rawDesc, + NumEnums: 1, + NumMessages: 4, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_kubelet_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_kubelet_config_proto_depIdxs, + EnumInfos: file_aksnodeconfig_v1_kubelet_config_proto_enumTypes, + MessageInfos: file_aksnodeconfig_v1_kubelet_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_kubelet_config_proto = out.File + file_aksnodeconfig_v1_kubelet_config_proto_rawDesc = nil + file_aksnodeconfig_v1_kubelet_config_proto_goTypes = nil + file_aksnodeconfig_v1_kubelet_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/network_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/network_config.pb.go new file mode 100644 index 00000000000..7492281b93c --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/network_config.pb.go @@ -0,0 +1,311 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/network_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type NetworkPlugin int32 + +const ( + NetworkPlugin_NETWORK_PLUGIN_UNSPECIFIED NetworkPlugin = 0 + NetworkPlugin_NETWORK_PLUGIN_NONE NetworkPlugin = 1 + NetworkPlugin_NETWORK_PLUGIN_AZURE NetworkPlugin = 2 + NetworkPlugin_NETWORK_PLUGIN_KUBENET NetworkPlugin = 3 +) + +// Enum value maps for NetworkPlugin. +var ( + NetworkPlugin_name = map[int32]string{ + 0: "NETWORK_PLUGIN_UNSPECIFIED", + 1: "NETWORK_PLUGIN_NONE", + 2: "NETWORK_PLUGIN_AZURE", + 3: "NETWORK_PLUGIN_KUBENET", + } + NetworkPlugin_value = map[string]int32{ + "NETWORK_PLUGIN_UNSPECIFIED": 0, + "NETWORK_PLUGIN_NONE": 1, + "NETWORK_PLUGIN_AZURE": 2, + "NETWORK_PLUGIN_KUBENET": 3, + } +) + +func (x NetworkPlugin) Enum() *NetworkPlugin { + p := new(NetworkPlugin) + *p = x + return p +} + +func (x NetworkPlugin) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NetworkPlugin) Descriptor() protoreflect.EnumDescriptor { + return file_aksnodeconfig_v1_network_config_proto_enumTypes[0].Descriptor() +} + +func (NetworkPlugin) Type() protoreflect.EnumType { + return &file_aksnodeconfig_v1_network_config_proto_enumTypes[0] +} + +func (x NetworkPlugin) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NetworkPlugin.Descriptor instead. +func (NetworkPlugin) EnumDescriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_network_config_proto_rawDescGZIP(), []int{0} +} + +type NetworkPolicy int32 + +const ( + NetworkPolicy_NETWORK_POLICY_UNSPECIFIED NetworkPolicy = 0 + NetworkPolicy_NETWORK_POLICY_NONE NetworkPolicy = 1 + NetworkPolicy_NETWORK_POLICY_AZURE NetworkPolicy = 2 + NetworkPolicy_NETWORK_POLICY_CALICO NetworkPolicy = 3 +) + +// Enum value maps for NetworkPolicy. +var ( + NetworkPolicy_name = map[int32]string{ + 0: "NETWORK_POLICY_UNSPECIFIED", + 1: "NETWORK_POLICY_NONE", + 2: "NETWORK_POLICY_AZURE", + 3: "NETWORK_POLICY_CALICO", + } + NetworkPolicy_value = map[string]int32{ + "NETWORK_POLICY_UNSPECIFIED": 0, + "NETWORK_POLICY_NONE": 1, + "NETWORK_POLICY_AZURE": 2, + "NETWORK_POLICY_CALICO": 3, + } +) + +func (x NetworkPolicy) Enum() *NetworkPolicy { + p := new(NetworkPolicy) + *p = x + return p +} + +func (x NetworkPolicy) String() string { + return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) +} + +func (NetworkPolicy) Descriptor() protoreflect.EnumDescriptor { + return file_aksnodeconfig_v1_network_config_proto_enumTypes[1].Descriptor() +} + +func (NetworkPolicy) Type() protoreflect.EnumType { + return &file_aksnodeconfig_v1_network_config_proto_enumTypes[1] +} + +func (x NetworkPolicy) Number() protoreflect.EnumNumber { + return protoreflect.EnumNumber(x) +} + +// Deprecated: Use NetworkPolicy.Descriptor instead. +func (NetworkPolicy) EnumDescriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_network_config_proto_rawDescGZIP(), []int{1} +} + +type NetworkConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Network plugin to be used by the cluster. Options are NONE, AZURE, KUBENET. + NetworkPlugin NetworkPlugin `protobuf:"varint,1,opt,name=network_plugin,json=networkPlugin,proto3,enum=aksnodeconfig.v1.NetworkPlugin" json:"network_plugin,omitempty"` + // Network policy to be used by the cluster. + // This is still needed to compute ENSURE_NO_DUPE_PROMISCUOUS_BRIDGE. + // Other than that, it is not used by others. See the discussions here https://github.com/Azure/AgentBaker/pull/4241#discussion_r1554283228 + NetworkPolicy NetworkPolicy `protobuf:"varint,2,opt,name=network_policy,json=networkPolicy,proto3,enum=aksnodeconfig.v1.NetworkPolicy" json:"network_policy,omitempty"` + // URL to the vnet cni plugins tarball. + VnetCniPluginsUrl string `protobuf:"bytes,3,opt,name=vnet_cni_plugins_url,json=vnetCniPluginsUrl,proto3" json:"vnet_cni_plugins_url,omitempty"` + // URL to the cni plugins tarball. + CniPluginsUrl string `protobuf:"bytes,4,opt,name=cni_plugins_url,json=cniPluginsUrl,proto3" json:"cni_plugins_url,omitempty"` +} + +func (x *NetworkConfig) Reset() { + *x = NetworkConfig{} + mi := &file_aksnodeconfig_v1_network_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *NetworkConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*NetworkConfig) ProtoMessage() {} + +func (x *NetworkConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_network_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use NetworkConfig.ProtoReflect.Descriptor instead. +func (*NetworkConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_network_config_proto_rawDescGZIP(), []int{0} +} + +func (x *NetworkConfig) GetNetworkPlugin() NetworkPlugin { + if x != nil { + return x.NetworkPlugin + } + return NetworkPlugin_NETWORK_PLUGIN_UNSPECIFIED +} + +func (x *NetworkConfig) GetNetworkPolicy() NetworkPolicy { + if x != nil { + return x.NetworkPolicy + } + return NetworkPolicy_NETWORK_POLICY_UNSPECIFIED +} + +func (x *NetworkConfig) GetVnetCniPluginsUrl() string { + if x != nil { + return x.VnetCniPluginsUrl + } + return "" +} + +func (x *NetworkConfig) GetCniPluginsUrl() string { + if x != nil { + return x.CniPluginsUrl + } + return "" +} + +var File_aksnodeconfig_v1_network_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_network_config_proto_rawDesc = []byte{ + 0x0a, 0x25, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xf8, 0x01, 0x0a, 0x0d, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x46, 0x0a, 0x0e, 0x6e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x6c, + 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, + 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0d, 0x6e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2f, 0x0a, 0x14, 0x76, + 0x6e, 0x65, 0x74, 0x5f, 0x63, 0x6e, 0x69, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5f, + 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x76, 0x6e, 0x65, 0x74, 0x43, + 0x6e, 0x69, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x55, 0x72, 0x6c, 0x12, 0x26, 0x0a, 0x0f, + 0x63, 0x6e, 0x69, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5f, 0x75, 0x72, 0x6c, 0x18, + 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x6e, 0x69, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, + 0x73, 0x55, 0x72, 0x6c, 0x2a, 0x7e, 0x0a, 0x0d, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, + 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x1e, 0x0a, 0x1a, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, + 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, + 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x18, + 0x0a, 0x14, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, + 0x5f, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x10, 0x02, 0x12, 0x1a, 0x0a, 0x16, 0x4e, 0x45, 0x54, 0x57, + 0x4f, 0x52, 0x4b, 0x5f, 0x50, 0x4c, 0x55, 0x47, 0x49, 0x4e, 0x5f, 0x4b, 0x55, 0x42, 0x45, 0x4e, + 0x45, 0x54, 0x10, 0x03, 0x2a, 0x7d, 0x0a, 0x0d, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1e, 0x0a, 0x1a, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, + 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, + 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x17, 0x0a, 0x13, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, + 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x18, + 0x0a, 0x14, 0x4e, 0x45, 0x54, 0x57, 0x4f, 0x52, 0x4b, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, + 0x5f, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x10, 0x02, 0x12, 0x19, 0x0a, 0x15, 0x4e, 0x45, 0x54, 0x57, + 0x4f, 0x52, 0x4b, 0x5f, 0x50, 0x4f, 0x4c, 0x49, 0x43, 0x59, 0x5f, 0x43, 0x41, 0x4c, 0x49, 0x43, + 0x4f, 0x10, 0x03, 0x42, 0xe5, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x4e, 0x65, + 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, + 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, + 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, + 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, + 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, + 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, + 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, + 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, + 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, + 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_network_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_network_config_proto_rawDescData = file_aksnodeconfig_v1_network_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_network_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_network_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_network_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_network_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_network_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_network_config_proto_enumTypes = make([]protoimpl.EnumInfo, 2) +var file_aksnodeconfig_v1_network_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_network_config_proto_goTypes = []any{ + (NetworkPlugin)(0), // 0: aksnodeconfig.v1.NetworkPlugin + (NetworkPolicy)(0), // 1: aksnodeconfig.v1.NetworkPolicy + (*NetworkConfig)(nil), // 2: aksnodeconfig.v1.NetworkConfig +} +var file_aksnodeconfig_v1_network_config_proto_depIdxs = []int32{ + 0, // 0: aksnodeconfig.v1.NetworkConfig.network_plugin:type_name -> aksnodeconfig.v1.NetworkPlugin + 1, // 1: aksnodeconfig.v1.NetworkConfig.network_policy:type_name -> aksnodeconfig.v1.NetworkPolicy + 2, // [2:2] is the sub-list for method output_type + 2, // [2:2] is the sub-list for method input_type + 2, // [2:2] is the sub-list for extension type_name + 2, // [2:2] is the sub-list for extension extendee + 0, // [0:2] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_network_config_proto_init() } +func file_aksnodeconfig_v1_network_config_proto_init() { + if File_aksnodeconfig_v1_network_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_network_config_proto_rawDesc, + NumEnums: 2, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_network_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_network_config_proto_depIdxs, + EnumInfos: file_aksnodeconfig_v1_network_config_proto_enumTypes, + MessageInfos: file_aksnodeconfig_v1_network_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_network_config_proto = out.File + file_aksnodeconfig_v1_network_config_proto_rawDesc = nil + file_aksnodeconfig_v1_network_config_proto_goTypes = nil + file_aksnodeconfig_v1_network_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/runc_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/runc_config.pb.go new file mode 100644 index 00000000000..68152fdf4f1 --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/runc_config.pb.go @@ -0,0 +1,154 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/runc_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type RuncConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The version of runc to use. + RuncVersion string `protobuf:"bytes,1,opt,name=runc_version,json=runcVersion,proto3" json:"runc_version,omitempty"` + // The URL to download the runc package from. + RuncPackageUrl string `protobuf:"bytes,2,opt,name=runc_package_url,json=runcPackageUrl,proto3" json:"runc_package_url,omitempty"` +} + +func (x *RuncConfig) Reset() { + *x = RuncConfig{} + mi := &file_aksnodeconfig_v1_runc_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *RuncConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RuncConfig) ProtoMessage() {} + +func (x *RuncConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_runc_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RuncConfig.ProtoReflect.Descriptor instead. +func (*RuncConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_runc_config_proto_rawDescGZIP(), []int{0} +} + +func (x *RuncConfig) GetRuncVersion() string { + if x != nil { + return x.RuncVersion + } + return "" +} + +func (x *RuncConfig) GetRuncPackageUrl() string { + if x != nil { + return x.RuncPackageUrl + } + return "" +} + +var File_aksnodeconfig_v1_runc_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_runc_config_proto_rawDesc = []byte{ + 0x0a, 0x22, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6e, 0x63, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0x59, 0x0a, 0x0a, 0x52, 0x75, 0x6e, 0x63, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x75, 0x6e, 0x63, 0x5f, 0x76, 0x65, 0x72, + 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x75, 0x6e, 0x63, + 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x28, 0x0a, 0x10, 0x72, 0x75, 0x6e, 0x63, 0x5f, + 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x0e, 0x72, 0x75, 0x6e, 0x63, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x72, + 0x6c, 0x42, 0xe2, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, + 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x52, 0x75, 0x6e, 0x63, + 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, + 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, + 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, + 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_runc_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_runc_config_proto_rawDescData = file_aksnodeconfig_v1_runc_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_runc_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_runc_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_runc_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_runc_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_runc_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_runc_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_runc_config_proto_goTypes = []any{ + (*RuncConfig)(nil), // 0: aksnodeconfig.v1.RuncConfig +} +var file_aksnodeconfig_v1_runc_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_runc_config_proto_init() } +func file_aksnodeconfig_v1_runc_config_proto_init() { + if File_aksnodeconfig_v1_runc_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_runc_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_runc_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_runc_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_runc_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_runc_config_proto = out.File + file_aksnodeconfig_v1_runc_config_proto_rawDesc = nil + file_aksnodeconfig_v1_runc_config_proto_goTypes = nil + file_aksnodeconfig_v1_runc_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/teleport_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/teleport_config.pb.go new file mode 100644 index 00000000000..d7fac5de3da --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/teleport_config.pb.go @@ -0,0 +1,156 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/teleport_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type TeleportConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // The status of the teleportd plugin. If true, the plugin is enabled. + Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` + // The URL to download the teleportd plugin. + TeleportdPluginDownloadUrl string `protobuf:"bytes,2,opt,name=teleportd_plugin_download_url,json=teleportdPluginDownloadUrl,proto3" json:"teleportd_plugin_download_url,omitempty"` +} + +func (x *TeleportConfig) Reset() { + *x = TeleportConfig{} + mi := &file_aksnodeconfig_v1_teleport_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TeleportConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TeleportConfig) ProtoMessage() {} + +func (x *TeleportConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_teleport_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TeleportConfig.ProtoReflect.Descriptor instead. +func (*TeleportConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_teleport_config_proto_rawDescGZIP(), []int{0} +} + +func (x *TeleportConfig) GetStatus() bool { + if x != nil { + return x.Status + } + return false +} + +func (x *TeleportConfig) GetTeleportdPluginDownloadUrl() string { + if x != nil { + return x.TeleportdPluginDownloadUrl + } + return "" +} + +var File_aksnodeconfig_v1_teleport_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_teleport_config_proto_rawDesc = []byte{ + 0x0a, 0x26, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, + 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0x6b, 0x0a, 0x0e, 0x54, 0x65, + 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, + 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x41, 0x0a, 0x1d, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, + 0x64, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, + 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1a, 0x74, 0x65, 0x6c, + 0x65, 0x70, 0x6f, 0x72, 0x74, 0x64, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x44, 0x6f, 0x77, 0x6e, + 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x42, 0xe6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, + 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, + 0x42, 0x13, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, + 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, + 0x6e, 0x74, 0x72, 0x6f, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, + 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, + 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, + 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, + 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, + 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, + 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, + 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_teleport_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_teleport_config_proto_rawDescData = file_aksnodeconfig_v1_teleport_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_teleport_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_teleport_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_teleport_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_teleport_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_teleport_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_teleport_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_teleport_config_proto_goTypes = []any{ + (*TeleportConfig)(nil), // 0: aksnodeconfig.v1.TeleportConfig +} +var file_aksnodeconfig_v1_teleport_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_teleport_config_proto_init() } +func file_aksnodeconfig_v1_teleport_config_proto_init() { + if File_aksnodeconfig_v1_teleport_config_proto != nil { + return + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_teleport_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_teleport_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_teleport_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_teleport_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_teleport_config_proto = out.File + file_aksnodeconfig_v1_teleport_config_proto_rawDesc = nil + file_aksnodeconfig_v1_teleport_config_proto_goTypes = nil + file_aksnodeconfig_v1_teleport_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/gen/aksnodeconfig/v1/tls_bootstrapping_config.pb.go b/aks-node-controller/pkg/gen/aksnodeconfig/v1/tls_bootstrapping_config.pb.go new file mode 100644 index 00000000000..dd764018f9a --- /dev/null +++ b/aks-node-controller/pkg/gen/aksnodeconfig/v1/tls_bootstrapping_config.pb.go @@ -0,0 +1,179 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.35.2 +// protoc (unknown) +// source: aksnodeconfig/v1/tls_bootstrapping_config.proto + +package aksnodeconfigv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type TlsBootstrappingConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Enable secure TLS bootstrapping for the node. + EnableSecureTlsBootstrapping *bool `protobuf:"varint,1,opt,name=enable_secure_tls_bootstrapping,json=enableSecureTlsBootstrapping,proto3,oneof" json:"enable_secure_tls_bootstrapping,omitempty"` + // Only required until Secure TLS bootstrapping in place. Would use kubelet identity after that. + TlsBootstrappingToken string `protobuf:"bytes,2,opt,name=tls_bootstrapping_token,json=tlsBootstrappingToken,proto3" json:"tls_bootstrapping_token,omitempty"` + // Only used when secure TLS bootstrapping is enabled. This is the appserver appid that the node will use to bootstrap. + CustomSecureTlsBootstrappingAppserverAppid string `protobuf:"bytes,3,opt,name=custom_secure_tls_bootstrapping_appserver_appid,json=customSecureTlsBootstrappingAppserverAppid,proto3" json:"custom_secure_tls_bootstrapping_appserver_appid,omitempty"` +} + +func (x *TlsBootstrappingConfig) Reset() { + *x = TlsBootstrappingConfig{} + mi := &file_aksnodeconfig_v1_tls_bootstrapping_config_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) +} + +func (x *TlsBootstrappingConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*TlsBootstrappingConfig) ProtoMessage() {} + +func (x *TlsBootstrappingConfig) ProtoReflect() protoreflect.Message { + mi := &file_aksnodeconfig_v1_tls_bootstrapping_config_proto_msgTypes[0] + if x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use TlsBootstrappingConfig.ProtoReflect.Descriptor instead. +func (*TlsBootstrappingConfig) Descriptor() ([]byte, []int) { + return file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDescGZIP(), []int{0} +} + +func (x *TlsBootstrappingConfig) GetEnableSecureTlsBootstrapping() bool { + if x != nil && x.EnableSecureTlsBootstrapping != nil { + return *x.EnableSecureTlsBootstrapping + } + return false +} + +func (x *TlsBootstrappingConfig) GetTlsBootstrappingToken() string { + if x != nil { + return x.TlsBootstrappingToken + } + return "" +} + +func (x *TlsBootstrappingConfig) GetCustomSecureTlsBootstrappingAppserverAppid() string { + if x != nil { + return x.CustomSecureTlsBootstrappingAppserverAppid + } + return "" +} + +var File_aksnodeconfig_v1_tls_bootstrapping_config_proto protoreflect.FileDescriptor + +var file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDesc = []byte{ + 0x0a, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, + 0x76, 0x31, 0x2f, 0x74, 0x6c, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, + 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, + 0x2e, 0x76, 0x31, 0x22, 0xa5, 0x02, 0x0a, 0x16, 0x54, 0x6c, 0x73, 0x42, 0x6f, 0x6f, 0x74, 0x73, + 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4a, + 0x0a, 0x1f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, + 0x74, 0x6c, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, + 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x1c, 0x65, 0x6e, 0x61, 0x62, 0x6c, + 0x65, 0x53, 0x65, 0x63, 0x75, 0x72, 0x65, 0x54, 0x6c, 0x73, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, + 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x88, 0x01, 0x01, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x6c, + 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x15, 0x74, 0x6c, 0x73, + 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x12, 0x63, 0x0a, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x65, 0x63, + 0x75, 0x72, 0x65, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, + 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x70, 0x70, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, + 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x2a, 0x63, 0x75, 0x73, + 0x74, 0x6f, 0x6d, 0x53, 0x65, 0x63, 0x75, 0x72, 0x65, 0x54, 0x6c, 0x73, 0x42, 0x6f, 0x6f, 0x74, + 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x41, 0x70, 0x70, 0x73, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x41, 0x70, 0x70, 0x69, 0x64, 0x42, 0x22, 0x0a, 0x20, 0x5f, 0x65, 0x6e, 0x61, 0x62, + 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x62, 0x6f, + 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x42, 0xee, 0x01, 0x0a, 0x14, + 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x2e, 0x76, 0x31, 0x42, 0x1b, 0x54, 0x6c, 0x73, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, + 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, + 0x6f, 0x50, 0x01, 0x5a, 0x58, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, + 0x61, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, + 0x2f, 0x61, 0x6b, 0x73, 0x2d, 0x6e, 0x6f, 0x64, 0x65, 0x2d, 0x63, 0x6f, 0x6e, 0x74, 0x72, 0x6f, + 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x2f, 0x61, 0x6b, 0x73, + 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, + 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, + 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, + 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, + 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, + 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDescOnce sync.Once + file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDescData = file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDesc +) + +func file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDescGZIP() []byte { + file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDescOnce.Do(func() { + file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDescData) + }) + return file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDescData +} + +var file_aksnodeconfig_v1_tls_bootstrapping_config_proto_msgTypes = make([]protoimpl.MessageInfo, 1) +var file_aksnodeconfig_v1_tls_bootstrapping_config_proto_goTypes = []any{ + (*TlsBootstrappingConfig)(nil), // 0: aksnodeconfig.v1.TlsBootstrappingConfig +} +var file_aksnodeconfig_v1_tls_bootstrapping_config_proto_depIdxs = []int32{ + 0, // [0:0] is the sub-list for method output_type + 0, // [0:0] is the sub-list for method input_type + 0, // [0:0] is the sub-list for extension type_name + 0, // [0:0] is the sub-list for extension extendee + 0, // [0:0] is the sub-list for field type_name +} + +func init() { file_aksnodeconfig_v1_tls_bootstrapping_config_proto_init() } +func file_aksnodeconfig_v1_tls_bootstrapping_config_proto_init() { + if File_aksnodeconfig_v1_tls_bootstrapping_config_proto != nil { + return + } + file_aksnodeconfig_v1_tls_bootstrapping_config_proto_msgTypes[0].OneofWrappers = []any{} + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDesc, + NumEnums: 0, + NumMessages: 1, + NumExtensions: 0, + NumServices: 0, + }, + GoTypes: file_aksnodeconfig_v1_tls_bootstrapping_config_proto_goTypes, + DependencyIndexes: file_aksnodeconfig_v1_tls_bootstrapping_config_proto_depIdxs, + MessageInfos: file_aksnodeconfig_v1_tls_bootstrapping_config_proto_msgTypes, + }.Build() + File_aksnodeconfig_v1_tls_bootstrapping_config_proto = out.File + file_aksnodeconfig_v1_tls_bootstrapping_config_proto_rawDesc = nil + file_aksnodeconfig_v1_tls_bootstrapping_config_proto_goTypes = nil + file_aksnodeconfig_v1_tls_bootstrapping_config_proto_depIdxs = nil +} diff --git a/aks-node-controller/pkg/nodeconfigutils/utils.go b/aks-node-controller/pkg/nodeconfigutils/utils.go new file mode 100644 index 00000000000..21bec8a082f --- /dev/null +++ b/aks-node-controller/pkg/nodeconfigutils/utils.go @@ -0,0 +1,66 @@ +package nodeconfigutils + +import ( + "encoding/base64" + "encoding/json" + "fmt" + + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" + "google.golang.org/protobuf/encoding/protojson" +) + +const ( + cloudConfigTemplate = `#cloud-config +write_files: +- path: /opt/azure/containers/aks-node-controller-config.json + permissions: "0755" + owner: root + content: !!binary | + %s` + CSE = "/opt/azure/containers/aks-node-controller provision-wait" +) + +func CustomData(cfg *aksnodeconfigv1.Configuration) (string, error) { + nbcJSON, err := json.Marshal(cfg) + if err != nil { + return "", fmt.Errorf("failed to marshal nbc, error: %w", err) + } + encodedNBCJson := base64.StdEncoding.EncodeToString(nbcJSON) + customDataYAML := fmt.Sprintf(cloudConfigTemplate, encodedNBCJson) + return base64.StdEncoding.EncodeToString([]byte(customDataYAML)), nil +} + +func MarshalConfigurationV1(cfg *aksnodeconfigv1.Configuration) ([]byte, error) { + options := protojson.MarshalOptions{ + UseEnumNumbers: false, + UseProtoNames: true, + Indent: " ", + } + return options.Marshal(cfg) +} + +func UnmarshalConfigurationV1(data []byte) (*aksnodeconfigv1.Configuration, error) { + cfg := &aksnodeconfigv1.Configuration{} + options := protojson.UnmarshalOptions{} + err := options.Unmarshal(data, cfg) + return cfg, err +} + +func Validate(cfg *aksnodeconfigv1.Configuration) error { + requiredStrings := map[string]string{ + "version": cfg.GetVersion(), + "auth_config.subscription_id": cfg.GetAuthConfig().GetSubscriptionId(), + "cluster_config.resource_group": cfg.GetClusterConfig().GetResourceGroup(), + "cluster_config.location": cfg.GetClusterConfig().GetLocation(), + "cluster_config.cluster_network_config.vnet_name": cfg.GetClusterConfig().GetClusterNetworkConfig().GetVnetName(), + "cluster_config.cluster_network_config.route_table": cfg.GetClusterConfig().GetClusterNetworkConfig().GetRouteTable(), + "api_server_config.api_server_name": cfg.GetApiServerConfig().GetApiServerName(), + } + + for field, value := range requiredStrings { + if value == "" { + return fmt.Errorf("required field %v is missing", field) + } + } + return nil +} diff --git a/pkg/proto/aksnodeconfig/v1/README.md b/aks-node-controller/proto/README.md similarity index 100% rename from pkg/proto/aksnodeconfig/v1/README.md rename to aks-node-controller/proto/README.md diff --git a/pkg/proto/aksnodeconfig/v1/apiserverconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/api_server_config.proto similarity index 99% rename from pkg/proto/aksnodeconfig/v1/apiserverconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/api_server_config.proto index c8bd91fbdad..e8f22912f63 100644 --- a/pkg/proto/aksnodeconfig/v1/apiserverconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/api_server_config.proto @@ -7,4 +7,4 @@ message ApiServerConfig { // The name or endpoint URI of the API server. string api_server_name = 2; -} \ No newline at end of file +} diff --git a/pkg/proto/aksnodeconfig/v1/authconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/auth_config.proto similarity index 99% rename from pkg/proto/aksnodeconfig/v1/authconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/auth_config.proto index 5c25689a4ea..80b53309d30 100644 --- a/pkg/proto/aksnodeconfig/v1/authconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/auth_config.proto @@ -20,4 +20,4 @@ message AuthConfig { // Specify if use managed identity extension, default to false bool use_managed_identity_extension = 6; -} \ No newline at end of file +} diff --git a/pkg/proto/aksnodeconfig/v1/clusterconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/cluster_config.proto similarity index 81% rename from pkg/proto/aksnodeconfig/v1/clusterconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/cluster_config.proto index b3449705a92..4d79b498147 100644 --- a/pkg/proto/aksnodeconfig/v1/clusterconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/cluster_config.proto @@ -17,7 +17,7 @@ message ClusterConfig { string location = 4; // VM type - VM vm_type = 5; // default to standard for v1.27 and below versions and vmss for v1.28+ versions + VmType vm_type = 5; // default to standard for v1.27 and below versions and vmss for v1.28+ versions // Primary availability set name string primary_availability_set = 6; @@ -27,12 +27,12 @@ message ClusterConfig { // Specifiy if it uses instance metadata bool use_instance_metadata = 8; // default to false +} - enum VM { - UNSPECIFIED = 0; - STANDARD = 1; - VMSS = 2; - } +enum VmType { + VM_TYPE_UNSPECIFIED = 0; + VM_TYPE_STANDARD = 1; + VM_TYPE_VMSS = 2; } message ClusterNetworkConfig { @@ -56,7 +56,7 @@ message LoadBalancerConfig { // Load balancer sku, default to basic LoadBalancerSku load_balancer_sku = 1; - // Specify if master node should be excluded from standard load balancer, default to true + // Specify if master node should be excluded from standard load balancer, default to true optional bool exclude_master_from_standard_load_balancer = 2; // Maximum number of load balancer rules, default to 148 @@ -64,11 +64,10 @@ message LoadBalancerConfig { // Disable outbound SNAT (Source Network Address Translation) for load balancer, default to false bool disable_outbound_snat = 4; - - enum LoadBalancerSku { - UNSPECIFIED = 0; - BASIC = 1; - STANDARD = 2; - } } +enum LoadBalancerSku { + LOAD_BALANCER_SKU_UNSPECIFIED = 0; + LOAD_BALANCER_SKU_BASIC = 1; + LOAD_BALANCER_SKU_STANDARD = 2; +} diff --git a/pkg/proto/aksnodeconfig/v1/config.proto b/aks-node-controller/proto/aksnodeconfig/v1/config.proto similarity index 72% rename from pkg/proto/aksnodeconfig/v1/config.proto rename to aks-node-controller/proto/aksnodeconfig/v1/config.proto index 6dc193fba95..7a9fa0f12b3 100644 --- a/pkg/proto/aksnodeconfig/v1/config.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/config.proto @@ -2,27 +2,27 @@ syntax = "proto3"; package aksnodeconfig.v1; -import "pkg/proto/aksnodeconfig/v1/httpproxyconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/gpuconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/customlinuxosconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/kubebinaryconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/customsearchdomainconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/containerdconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/authconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/kubeletconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/teleportconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/runcconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/customcloudconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/apiserverconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/tlsbootstrappingconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/clusterconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/networkconfig.proto"; -import "pkg/proto/aksnodeconfig/v1/imdsrestrictionconfig.proto"; +import "aksnodeconfig/v1/api_server_config.proto"; +import "aksnodeconfig/v1/auth_config.proto"; +import "aksnodeconfig/v1/cluster_config.proto"; +import "aksnodeconfig/v1/containerd_config.proto"; +import "aksnodeconfig/v1/custom_cloud_config.proto"; +import "aksnodeconfig/v1/custom_linux_os_config.proto"; +import "aksnodeconfig/v1/custom_search_domain_config.proto"; +import "aksnodeconfig/v1/gpu_config.proto"; +import "aksnodeconfig/v1/http_proxy_config.proto"; +import "aksnodeconfig/v1/imds_restriction_config.proto"; +import "aksnodeconfig/v1/kube_binary_config.proto"; +import "aksnodeconfig/v1/kubelet_config.proto"; +import "aksnodeconfig/v1/network_config.proto"; +import "aksnodeconfig/v1/runc_config.proto"; +import "aksnodeconfig/v1/teleport_config.proto"; +import "aksnodeconfig/v1/tls_bootstrapping_config.proto"; enum WorkloadRuntime { - WR_UNSPECIFIED = 0; - OCI_CONTAINER= 1; - WASM_WASI = 2; + WORKLOAD_RUNTIME_UNSPECIFIED = 0; + WORKLOAD_RUNTIME_OCI_CONTAINER = 1; + WORKLOAD_RUNTIME_WASM_WASI = 2; } message Configuration { @@ -37,12 +37,12 @@ message Configuration { // Kubernetes API server configuration ApiServerConfig api_server_config = 4; - + // Various Kubernetes cluster level configuration ClusterConfig cluster_config = 5; - // TLS bootstrap config - TLSBootstrappingConfig tls_bootstrapping_config = 6; + // TLS bootstrap config + TlsBootstrappingConfig tls_bootstrapping_config = 6; // Authentication configuration AuthConfig auth_config = 7; @@ -51,7 +51,7 @@ message Configuration { RuncConfig runc_config = 8; // Containerd configuration - ContainerdConfig containerd_config = 9; + ContainerdConfig containerd_config = 9; // Teleport configuration TeleportConfig teleport_config = 10; @@ -63,13 +63,13 @@ message Configuration { CustomSearchDomainConfig custom_search_domain_config = 12; // Custom Linux OS configurations including SwapFile, SysCtl configs, etc. - CustomLinuxOSConfig custom_linux_os_config = 13; + CustomLinuxOsConfig custom_linux_os_config = 13; // HTTP/HTTPS proxy configuration for the node - HTTPProxyConfig http_proxy_config = 14; + HttpProxyConfig http_proxy_config = 14; // GPU configuration for the node - GPUConfig gpu_config = 15; + GpuConfig gpu_config = 15; // Network configuration for the node NetworkConfig network_config = 16; @@ -96,7 +96,7 @@ message Configuration { // Specifies whether SSH is enabled or disabled on the VM node // This is labeled as optional (explicit presence) so that we know whether it's set or not. - // If it's not set, the default value will be nil, but will be set to true on the VHD. + // If it's not set, the default value will be nil, but will be set to true on the VHD. optional bool enable_ssh = 23; // Specifies whether unattended upgrade is enabled or disabled on the VM node @@ -109,7 +109,7 @@ message Configuration { bool enable_hosts_config_agent = 26; // Custom CA certificates to be added to the system trust store - repeated string custom_ca_certs = 27; + repeated string custom_ca_certs = 27; // A local file path where cluster provision cse output should be stored string provision_output = 28; @@ -121,7 +121,7 @@ message Configuration { bool ipv6_dual_stack_enabled = 30; // Command to use for outbound traffic - string outbound_command = 31; + string outbound_command = 31; // Azure private registry server URI string azure_private_registry_server = 32; @@ -133,7 +133,7 @@ message Configuration { bool enable_artifact_streaming = 34; // Specifies if it is a Kata node - bool is_kata = 35; + bool is_kata = 35; // Specifies whether the node needs cgroupv2. // Labeled as optional (explicit presence) so that we know whether it's set or not. @@ -147,5 +147,5 @@ message Configuration { string bootstrap_profile_container_registry_server = 38; // IMDS restriction configuration - IMDSRestrictionConfig imds_restriction_config = 39; -} \ No newline at end of file + ImdsRestrictionConfig imds_restriction_config = 39; +} diff --git a/pkg/proto/aksnodeconfig/v1/containerdconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/containerd_config.proto similarity index 98% rename from pkg/proto/aksnodeconfig/v1/containerdconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/containerd_config.proto index 25c100da109..11aeca202e4 100644 --- a/pkg/proto/aksnodeconfig/v1/containerdconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/containerd_config.proto @@ -7,7 +7,7 @@ message ContainerdConfig { // The version of containerd to download. string containerd_version = 2; - + // The URL for downloading the containerd package. string containerd_package_url = 3; -} \ No newline at end of file +} diff --git a/pkg/proto/aksnodeconfig/v1/customcloudconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/custom_cloud_config.proto similarity index 99% rename from pkg/proto/aksnodeconfig/v1/customcloudconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/custom_cloud_config.proto index 5f2a461d71c..4f21d97bde5 100644 --- a/pkg/proto/aksnodeconfig/v1/customcloudconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/custom_cloud_config.proto @@ -13,4 +13,4 @@ message CustomCloudConfig { // AKSCustomCloudContainerRegistryDNSSuffix specifies a custom cloud container registry dns suffix for credential provider string container_registry_dns_suffix = 4; -} \ No newline at end of file +} diff --git a/aks-node-controller/proto/aksnodeconfig/v1/custom_linux_os_config.proto b/aks-node-controller/proto/aksnodeconfig/v1/custom_linux_os_config.proto new file mode 100644 index 00000000000..f61fec93621 --- /dev/null +++ b/aks-node-controller/proto/aksnodeconfig/v1/custom_linux_os_config.proto @@ -0,0 +1,63 @@ +syntax = "proto3"; +package aksnodeconfig.v1; + +// Custom Linux Node OS Config +message CustomLinuxOsConfig { + // Sysctl settings for Linux agent nodes + SysctlConfig sysctl_config = 1; + + // Ulimit settings for Linux agent nodes + UlimitConfig ulimit_config = 2; + + // Enable or disable swap configuration + bool enable_swap_config = 3; + + // The size in MB of a swap file that will be created on each node + int32 swap_file_size = 4; + + // Valid values are "always", "defer", "defer+madvise", "madvise" and "never" + // If it's unset or set to empty string, it will use the default value in the VHD "always" + string transparent_hugepage_support = 5; + + // Valid values are "always", "madvise" and "never" + // If it's unset or set to empty string, it will use the default value in the VHD "madvise" + string transparent_defrag = 6; +} + +message SysctlConfig { + // using optional here to allow detecting if the field is set or not (explicit presence in proto3) + optional int32 net_core_somaxconn = 1; + optional int32 net_core_netdev_max_backlog = 2; + optional int32 net_core_rmem_default = 3; + optional int32 net_core_rmem_max = 4; + optional int32 net_core_wmem_default = 5; + optional int32 net_core_wmem_max = 6; + optional int32 net_core_optmem_max = 7; + optional int32 net_ipv4_tcp_max_syn_backlog = 8; + optional int32 net_ipv4_tcp_max_tw_buckets = 9; + optional int32 net_ipv4_tcp_fin_timeout = 10; + optional int32 net_ipv4_tcp_keepalive_time = 11; + optional int32 net_ipv4_tcp_keepalive_probes = 12; + optional int32 net_ipv4_tcpkeepalive_intvl = 13; + optional bool net_ipv4_tcp_tw_reuse = 14; + optional string net_ipv4_ip_local_port_range = 15; + optional int32 net_ipv4_neigh_default_gc_thresh1 = 16; + optional int32 net_ipv4_neigh_default_gc_thresh2 = 17; + optional int32 net_ipv4_neigh_default_gc_thresh3 = 18; + optional int32 net_netfilter_nf_conntrack_max = 19; + optional int32 net_netfilter_nf_conntrack_buckets = 20; + optional int32 fs_inotify_max_user_watches = 21; + optional int32 fs_file_max = 22; + optional int32 fs_aio_max_nr = 23; + optional int32 fs_nr_open = 24; + optional int32 kernel_threads_max = 25; + optional int32 vm_max_map_count = 26; + optional int32 vm_swappiness = 27; + optional int32 vm_vfs_cache_pressure = 28; +} + +message UlimitConfig { + // using optional here to allow detecting if the field is set or not (explicit presence in proto3) + optional string no_file = 1; + optional string max_locked_memory = 2; +} diff --git a/pkg/proto/aksnodeconfig/v1/customsearchdomainconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/custom_search_domain_config.proto similarity index 99% rename from pkg/proto/aksnodeconfig/v1/customsearchdomainconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/custom_search_domain_config.proto index fb41f12608d..dd89fb59250 100644 --- a/pkg/proto/aksnodeconfig/v1/customsearchdomainconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/custom_search_domain_config.proto @@ -10,4 +10,4 @@ message CustomSearchDomainConfig { // The password for the custom search domain. string realm_password = 3; -} \ No newline at end of file +} diff --git a/pkg/proto/aksnodeconfig/v1/gpuconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/gpu_config.proto similarity index 97% rename from pkg/proto/aksnodeconfig/v1/gpuconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/gpu_config.proto index 99e3c454bdc..e462b70458a 100644 --- a/pkg/proto/aksnodeconfig/v1/gpuconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/gpu_config.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package aksnodeconfig.v1; -message GPUConfig { +message GpuConfig { // Specifies whether any nvidia configurations should be applied for GPU nodes. False when vm size is not a GPU node or driver install is skipped and no GPU configuration is needed. // Making optional so that default will be set to IsNvidiaEnabledSku(vmSize) instead of false optional bool enable_nvidia = 1; @@ -14,4 +14,4 @@ message GPUConfig { // Represents the GPU instance profile. string gpu_instance_profile = 4; -} \ No newline at end of file +} diff --git a/pkg/proto/aksnodeconfig/v1/httpproxyconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/http_proxy_config.proto similarity index 95% rename from pkg/proto/aksnodeconfig/v1/httpproxyconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/http_proxy_config.proto index 27f8c923ad0..46d47f488a9 100644 --- a/pkg/proto/aksnodeconfig/v1/httpproxyconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/http_proxy_config.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package aksnodeconfig.v1; -message HTTPProxyConfig { +message HttpProxyConfig { // Proxy endpoint/URL using HTTP through which the traffic should be routed for making HTTP connections outside the cluster string http_proxy = 1; @@ -13,4 +13,4 @@ message HTTPProxyConfig { // Custom CA certificate that should be trusted by the proxy string proxy_trusted_ca = 4; -} \ No newline at end of file +} diff --git a/pkg/proto/aksnodeconfig/v1/imdsrestrictionconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/imds_restriction_config.proto similarity index 87% rename from pkg/proto/aksnodeconfig/v1/imdsrestrictionconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/imds_restriction_config.proto index 595aba2b2bb..7caf2c4fade 100644 --- a/pkg/proto/aksnodeconfig/v1/imdsrestrictionconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/imds_restriction_config.proto @@ -1,10 +1,10 @@ syntax = "proto3"; package aksnodeconfig.v1; -message IMDSRestrictionConfig { +message ImdsRestrictionConfig { // Enable IMDS restriction for the node. bool enable_imds_restriction = 1; // Insert IMDS restriction rule to mangle table. bool insert_imds_restriction_rule_to_mangle_table = 2; -} \ No newline at end of file +} diff --git a/pkg/proto/aksnodeconfig/v1/kubebinaryconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/kube_binary_config.proto similarity index 91% rename from pkg/proto/aksnodeconfig/v1/kubebinaryconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/kube_binary_config.proto index 1fa9ff234c9..5cb2ceea1f0 100644 --- a/pkg/proto/aksnodeconfig/v1/kubebinaryconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/kube_binary_config.proto @@ -8,13 +8,13 @@ message KubeBinaryConfig { //user's custom kube binary url string custom_kube_binary_url = 2; - + //privately cached kube binary url - string private_kube_binary_url = 3; + string private_kube_binary_url = 3; //full path to the "pause" image. Used for --pod-infra-container-image. string pod_infra_container_image_url = 4; // Full path to the Linux credential provider (tar.gz) to use. string linux_credential_provider_url = 5; -} \ No newline at end of file +} diff --git a/pkg/proto/aksnodeconfig/v1/kubeletconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/kubelet_config.proto similarity index 91% rename from pkg/proto/aksnodeconfig/v1/kubeletconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/kubelet_config.proto index 3a53bbfbd53..edb6a1ca36a 100644 --- a/pkg/proto/aksnodeconfig/v1/kubeletconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/kubelet_config.proto @@ -4,7 +4,7 @@ package aksnodeconfig.v1; message KubeletConfig { // A list of taints to apply to the node. repeated Taint taints = 1; - + // A map of kubelet flags to their values. map kubelet_flags = 2; @@ -39,7 +39,7 @@ message Taint { } enum KubeletDisk { - KD_UNSPECIFIED = 0; - OS_DISK = 1; - TEMP_DISK = 2; -} \ No newline at end of file + KUBELET_DISK_UNSPECIFIED = 0; + KUBELET_DISK_OS_DISK = 1; + KUBELET_DISK_TEMP_DISK = 2; +} diff --git a/pkg/proto/aksnodeconfig/v1/networkconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/network_config.proto similarity index 73% rename from pkg/proto/aksnodeconfig/v1/networkconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/network_config.proto index ff8320d01b8..9debbf3f0ae 100644 --- a/pkg/proto/aksnodeconfig/v1/networkconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/network_config.proto @@ -6,7 +6,7 @@ message NetworkConfig { NetworkPlugin network_plugin = 1; // Network policy to be used by the cluster. - // This is still needed to compute ENSURE_NO_DUPE_PROMISCUOUS_BRIDGE. + // This is still needed to compute ENSURE_NO_DUPE_PROMISCUOUS_BRIDGE. // Other than that, it is not used by others. See the discussions here https://github.com/Azure/AgentBaker/pull/4241#discussion_r1554283228 NetworkPolicy network_policy = 2; @@ -18,15 +18,15 @@ message NetworkConfig { } enum NetworkPlugin { - NP_UNSPECIFIED = 0; - NP_NONE = 1; - NP_AZURE = 2; - NP_KUBENET = 3; + NETWORK_PLUGIN_UNSPECIFIED = 0; + NETWORK_PLUGIN_NONE = 1; + NETWORK_PLUGIN_AZURE = 2; + NETWORK_PLUGIN_KUBENET = 3; } enum NetworkPolicy { - NPO_UNSPECIFIED = 0; - NPO_NONE = 1; - NPO_AZURE = 2; - NPO_CALICO = 3; -} \ No newline at end of file + NETWORK_POLICY_UNSPECIFIED = 0; + NETWORK_POLICY_NONE = 1; + NETWORK_POLICY_AZURE = 2; + NETWORK_POLICY_CALICO = 3; +} diff --git a/pkg/proto/aksnodeconfig/v1/runcconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/runc_config.proto similarity index 99% rename from pkg/proto/aksnodeconfig/v1/runcconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/runc_config.proto index 6c5cbb51425..ac68e939b04 100644 --- a/pkg/proto/aksnodeconfig/v1/runcconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/runc_config.proto @@ -7,4 +7,4 @@ message RuncConfig { // The URL to download the runc package from. string runc_package_url = 2; -} \ No newline at end of file +} diff --git a/pkg/proto/aksnodeconfig/v1/teleportconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/teleport_config.proto similarity index 99% rename from pkg/proto/aksnodeconfig/v1/teleportconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/teleport_config.proto index 47a99bd42df..c2be5322c85 100644 --- a/pkg/proto/aksnodeconfig/v1/teleportconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/teleport_config.proto @@ -7,4 +7,4 @@ message TeleportConfig { // The URL to download the teleportd plugin. string teleportd_plugin_download_url = 2; -} \ No newline at end of file +} diff --git a/pkg/proto/aksnodeconfig/v1/tlsbootstrappingconfig.proto b/aks-node-controller/proto/aksnodeconfig/v1/tls_bootstrapping_config.proto similarity index 72% rename from pkg/proto/aksnodeconfig/v1/tlsbootstrappingconfig.proto rename to aks-node-controller/proto/aksnodeconfig/v1/tls_bootstrapping_config.proto index 7a65343e0d4..4442655eae4 100644 --- a/pkg/proto/aksnodeconfig/v1/tlsbootstrappingconfig.proto +++ b/aks-node-controller/proto/aksnodeconfig/v1/tls_bootstrapping_config.proto @@ -1,13 +1,13 @@ syntax = "proto3"; package aksnodeconfig.v1; - -message TLSBootstrappingConfig { + +message TlsBootstrappingConfig { // Enable secure TLS bootstrapping for the node. optional bool enable_secure_tls_bootstrapping = 1; // Only required until Secure TLS bootstrapping in place. Would use kubelet identity after that. - string tls_bootstrapping_token = 2; + string tls_bootstrapping_token = 2; // Only used when secure TLS bootstrapping is enabled. This is the appserver appid that the node will use to bootstrap. - string custom_secure_tls_bootstrapping_appserver_appid = 3; -} \ No newline at end of file + string custom_secure_tls_bootstrapping_appserver_appid = 3; +} diff --git a/e2e/aks_model.go b/e2e/aks_model.go index 854be25cfba..03e3766efc8 100644 --- a/e2e/aks_model.go +++ b/e2e/aks_model.go @@ -8,7 +8,7 @@ import ( "strings" "testing" - "github.com/Azure/agentbakere2e/config" + "github.com/Azure/agentbaker/e2e/config" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerregistry/armcontainerregistry" diff --git a/e2e/cluster.go b/e2e/cluster.go index 23b072287fc..f0b152bef54 100644 --- a/e2e/cluster.go +++ b/e2e/cluster.go @@ -11,7 +11,7 @@ import ( "testing" "time" - "github.com/Azure/agentbakere2e/config" + "github.com/Azure/agentbaker/e2e/config" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6" diff --git a/e2e/go.mod b/e2e/go.mod index 05a291cbc9c..431de351fbe 100644 --- a/e2e/go.mod +++ b/e2e/go.mod @@ -1,9 +1,8 @@ -module github.com/Azure/agentbakere2e +module github.com/Azure/agentbaker/e2e go 1.22.2 require ( - github.com/Azure/agentbaker v0.0.0-00010101000000-000000000000 github.com/Azure/azure-sdk-for-go/sdk/azcore v1.13.0 github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.7.0 github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/authorization/armauthorization/v2 v2.2.0 @@ -85,5 +84,3 @@ require ( sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect sigs.k8s.io/structured-merge-diff/v4 v4.4.1 // indirect ) - -replace github.com/Azure/agentbaker => ../ diff --git a/e2e/kube.go b/e2e/kube.go index 116e22db074..6eec41a541f 100644 --- a/e2e/kube.go +++ b/e2e/kube.go @@ -6,7 +6,7 @@ import ( "fmt" "testing" - "github.com/Azure/agentbakere2e/config" + "github.com/Azure/agentbaker/e2e/config" v1 "k8s.io/api/apps/v1" "k8s.io/apimachinery/pkg/runtime/schema" "k8s.io/apimachinery/pkg/runtime/serializer" diff --git a/e2e/log.go b/e2e/log.go index 74cf3b3ce80..65f4e22cbbd 100644 --- a/e2e/log.go +++ b/e2e/log.go @@ -5,7 +5,7 @@ import ( "path/filepath" "testing" - "github.com/Azure/agentbakere2e/config" + "github.com/Azure/agentbaker/e2e/config" ) func testDir(t *testing.T) string { diff --git a/e2e/node_config.go b/e2e/node_config.go index 80d9b27ced1..e2c9ee980dd 100644 --- a/e2e/node_config.go +++ b/e2e/node_config.go @@ -12,10 +12,12 @@ import ( "testing" "time" + "github.com/Azure/agentbaker/aks-node-controller/helpers" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" + + "github.com/Azure/agentbaker/e2e/config" "github.com/Azure/agentbaker/pkg/agent" "github.com/Azure/agentbaker/pkg/agent/datamodel" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" - "github.com/Azure/agentbakere2e/config" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/stretchr/testify/require" ) @@ -58,7 +60,7 @@ func nbcToAKSNodeConfigV1(nbc *datamodel.NodeBootstrappingConfiguration) *aksnod ClusterConfig: &aksnodeconfigv1.ClusterConfig{ Location: nbc.ContainerService.Location, ResourceGroup: nbc.ResourceGroupName, - VmType: aksnodeconfigv1.ClusterConfig_VMSS, + VmType: aksnodeconfigv1.VmType_VM_TYPE_VMSS, ClusterNetworkConfig: &aksnodeconfigv1.ClusterNetworkConfig{ SecurityGroupName: cs.Properties.GetNSGName(), VnetName: cs.Properties.GetVirtualNetworkName(), @@ -79,11 +81,11 @@ func nbcToAKSNodeConfigV1(nbc *datamodel.NodeBootstrappingConfiguration) *aksnod AssignedIdentityId: nbc.UserAssignedIdentityClientID, }, NetworkConfig: &aksnodeconfigv1.NetworkConfig{ - NetworkPlugin: aksnodeconfigv1.NetworkPlugin_NP_KUBENET, + NetworkPlugin: aksnodeconfigv1.NetworkPlugin_NETWORK_PLUGIN_KUBENET, CniPluginsUrl: nbc.CloudSpecConfig.KubernetesSpecConfig.CNIPluginsDownloadURL, VnetCniPluginsUrl: cs.Properties.OrchestratorProfile.KubernetesConfig.AzureCNIURLLinux, }, - GpuConfig: &aksnodeconfigv1.GPUConfig{ + GpuConfig: &aksnodeconfigv1.GpuConfig{ ConfigGpuDriver: true, GpuDevicePlugin: false, }, @@ -92,15 +94,15 @@ func nbcToAKSNodeConfigV1(nbc *datamodel.NodeBootstrappingConfiguration) *aksnod ContainerdConfig: &aksnodeconfigv1.ContainerdConfig{ ContainerdDownloadUrlBase: nbc.CloudSpecConfig.KubernetesSpecConfig.ContainerdDownloadURLBase, }, - OutboundCommand: aksnodeconfigv1.GetDefaultOutboundCommand(), + OutboundCommand: helpers.GetDefaultOutboundCommand(), KubeletConfig: &aksnodeconfigv1.KubeletConfig{ KubeletClientKey: base64.StdEncoding.EncodeToString([]byte(cs.Properties.CertificateProfile.ClientPrivateKey)), KubeletConfigFileContent: base64.StdEncoding.EncodeToString([]byte(agent.GetKubeletConfigFileContent(nbc.KubeletConfig, nbc.AgentPoolProfile.CustomKubeletConfig))), EnableKubeletConfigFile: false, - KubeletFlags: aksnodeconfigv1.GetKubeletConfigFlag(nbc.KubeletConfig, cs, agentPool, false), - KubeletNodeLabels: aksnodeconfigv1.GetKubeletNodeLabels(agentPool), + KubeletFlags: helpers.GetKubeletConfigFlag(nbc.KubeletConfig, cs, agentPool, false), + KubeletNodeLabels: helpers.GetKubeletNodeLabels(agentPool), }, - TlsBootstrappingConfig: &aksnodeconfigv1.TLSBootstrappingConfig{ + TlsBootstrappingConfig: &aksnodeconfigv1.TlsBootstrappingConfig{ TlsBootstrappingToken: *nbc.KubeletClientTLSBootstrapToken, }, KubernetesCaCert: base64.StdEncoding.EncodeToString([]byte(cs.Properties.CertificateProfile.CaCertificate)), @@ -109,7 +111,7 @@ func nbcToAKSNodeConfigV1(nbc *datamodel.NodeBootstrappingConfiguration) *aksnod PodInfraContainerImageUrl: nbc.K8sComponents.PodInfraContainerImageURL, }, KubeProxyUrl: cs.Properties.OrchestratorProfile.KubernetesConfig.CustomKubeProxyImage, - HttpProxyConfig: &aksnodeconfigv1.HTTPProxyConfig{ + HttpProxyConfig: &aksnodeconfigv1.HttpProxyConfig{ NoProxyEntries: *nbc.HTTPProxyConfig.NoProxy, }, NeedsCgroupv2: to.Ptr(true), diff --git a/e2e/pollers.go b/e2e/pollers.go index 7bc967b86c7..2149b50a121 100644 --- a/e2e/pollers.go +++ b/e2e/pollers.go @@ -7,7 +7,7 @@ import ( "testing" "time" - "github.com/Azure/agentbakere2e/config" + "github.com/Azure/agentbaker/e2e/config" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v6" "github.com/stretchr/testify/require" corev1 "k8s.io/api/core/v1" diff --git a/e2e/scenario_helpers_test.go b/e2e/scenario_helpers_test.go index 70f68d4071d..b8ff859dc25 100644 --- a/e2e/scenario_helpers_test.go +++ b/e2e/scenario_helpers_test.go @@ -13,9 +13,9 @@ import ( "testing" "time" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" + "github.com/Azure/agentbaker/e2e/config" "github.com/Azure/agentbaker/pkg/agent/datamodel" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" - "github.com/Azure/agentbakere2e/config" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6" "github.com/stretchr/testify/require" "github.com/tidwall/gjson" @@ -142,7 +142,7 @@ func createAndValidateVM(ctx context.Context, s *Scenario) { if s.Runtime.NBC != nil && s.Runtime.NBC.AgentPoolProfile.WorkloadRuntime == datamodel.WasmWasi && s.Runtime.NBC.OutboundType != datamodel.OutboundTypeBlock && s.Runtime.NBC.OutboundType != datamodel.OutboundTypeNone { validateWasm(ctx, s.T, s.Runtime.Cluster.Kube, nodeName) } - if s.Runtime.AKSNodeConfig != nil && s.Runtime.AKSNodeConfig.WorkloadRuntime == aksnodeconfigv1.WorkloadRuntime_WASM_WASI { + if s.Runtime.AKSNodeConfig != nil && s.Runtime.AKSNodeConfig.WorkloadRuntime == aksnodeconfigv1.WorkloadRuntime_WORKLOAD_RUNTIME_WASM_WASI { validateWasm(ctx, s.T, s.Runtime.Cluster.Kube, nodeName) } diff --git a/e2e/scenario_node_controller_test.go b/e2e/scenario_node_controller_test.go index 3894e2a8b46..0ce4e4c3ea3 100644 --- a/e2e/scenario_node_controller_test.go +++ b/e2e/scenario_node_controller_test.go @@ -10,9 +10,9 @@ import ( "testing" "time" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" + "github.com/Azure/agentbaker/e2e/config" "github.com/Azure/agentbaker/pkg/agent" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" - "github.com/Azure/agentbakere2e/config" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6" "github.com/stretchr/testify/require" diff --git a/e2e/scenario_test.go b/e2e/scenario_test.go index 047f05654f4..645a5247333 100644 --- a/e2e/scenario_test.go +++ b/e2e/scenario_test.go @@ -5,10 +5,10 @@ import ( "strings" "testing" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" + "github.com/Azure/agentbaker/e2e/config" + "github.com/Azure/agentbaker/e2e/toolkit" "github.com/Azure/agentbaker/pkg/agent/datamodel" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" - "github.com/Azure/agentbakere2e/config" - "github.com/Azure/agentbakere2e/toolkit" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/containerservice/armcontainerservice/v6" diff --git a/e2e/scenario_win_test.go b/e2e/scenario_win_test.go index f51ee67deae..8161da4ad5c 100644 --- a/e2e/scenario_win_test.go +++ b/e2e/scenario_win_test.go @@ -3,8 +3,8 @@ package e2e import ( "testing" + "github.com/Azure/agentbaker/e2e/config" "github.com/Azure/agentbaker/pkg/agent/datamodel" - "github.com/Azure/agentbakere2e/config" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6" ) diff --git a/e2e/types.go b/e2e/types.go index 7517c2df255..5ba4424e8de 100644 --- a/e2e/types.go +++ b/e2e/types.go @@ -8,9 +8,9 @@ import ( "strings" "testing" + aksnodeconfigv1 "github.com/Azure/agentbaker/aks-node-controller/pkg/gen/aksnodeconfig/v1" + "github.com/Azure/agentbaker/e2e/config" "github.com/Azure/agentbaker/pkg/agent/datamodel" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" - "github.com/Azure/agentbakere2e/config" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" "github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v6" "github.com/stretchr/testify/require" diff --git a/e2e/validation.go b/e2e/validation.go index 386e65b3101..18150674ec3 100644 --- a/e2e/validation.go +++ b/e2e/validation.go @@ -7,7 +7,7 @@ import ( "strings" "testing" - "github.com/Azure/agentbakere2e/config" + "github.com/Azure/agentbaker/e2e/config" "github.com/stretchr/testify/require" ) diff --git a/e2e/vmss.go b/e2e/vmss.go index b2b73c96e02..d808bf53960 100644 --- a/e2e/vmss.go +++ b/e2e/vmss.go @@ -16,10 +16,10 @@ import ( "testing" "time" + "github.com/Azure/agentbaker/aks-node-controller/pkg/nodeconfigutils" + "github.com/Azure/agentbaker/e2e/config" "github.com/Azure/agentbaker/pkg/agent" "github.com/Azure/agentbaker/pkg/agent/datamodel" - aksnodeconfigv1 "github.com/Azure/agentbaker/pkg/proto/aksnodeconfig/v1" - "github.com/Azure/agentbakere2e/config" "github.com/Azure/azure-sdk-for-go/sdk/azcore" "github.com/Azure/azure-sdk-for-go/sdk/azcore/runtime" "github.com/Azure/azure-sdk-for-go/sdk/azcore/to" @@ -39,17 +39,19 @@ func createVMSS(ctx context.Context, s *Scenario) *armcompute.VirtualMachineScal var nodeBootstrapping *datamodel.NodeBootstrapping ab, err := agent.NewAgentBaker() require.NoError(s.T, err) + var cse, customData string if s.AKSNodeConfigMutator != nil { - builder := aksnodeconfigv1.NewAKSNodeConfigBuilder() - builder.ApplyConfiguration(s.Runtime.AKSNodeConfig) - nodeBootstrapping, err = builder.GetNodeBootstrapping() + cse = nodeconfigutils.CSE + customData, err = nodeconfigutils.CustomData(s.Runtime.AKSNodeConfig) require.NoError(s.T, err) } else { nodeBootstrapping, err = ab.GetNodeBootstrapping(ctx, s.Runtime.NBC) require.NoError(s.T, err) + cse = nodeBootstrapping.CSE + customData = nodeBootstrapping.CustomData } - model := getBaseVMSSModel(s, nodeBootstrapping.CustomData, nodeBootstrapping.CSE) + model := getBaseVMSSModel(s, customData, cse) isAzureCNI, err := cluster.IsAzureCNI() require.NoError(s.T, err, "checking if cluster is using Azure CNI") diff --git a/go.mod b/go.mod index fd835a3cf91..d9257b32cba 100644 --- a/go.mod +++ b/go.mod @@ -10,30 +10,32 @@ require ( github.com/google/go-cmp v0.6.0 github.com/gorilla/handlers v1.5.1 github.com/gorilla/mux v1.8.0 - github.com/onsi/ginkgo v1.12.2 - github.com/onsi/gomega v1.29.0 + github.com/onsi/ginkgo v1.16.5 + github.com/onsi/gomega v1.33.1 github.com/pkg/errors v0.9.1 github.com/spf13/cobra v1.6.1 github.com/stretchr/testify v1.9.0 - google.golang.org/protobuf v1.33.0 gopkg.in/yaml.v3 v3.0.1 ) require ( github.com/Azure/go-autorest v14.2.0+incompatible // indirect - github.com/davecgh/go-spew v1.1.1 // indirect + github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect github.com/felixge/httpsnoop v1.0.1 // indirect - github.com/fsnotify/fsnotify v1.4.9 // indirect - github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 // indirect + github.com/fsnotify/fsnotify v1.6.0 // indirect + github.com/go-logr/logr v1.4.2 // indirect + github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af // indirect github.com/inconshreveable/mousetrap v1.0.1 // indirect github.com/kr/pretty v0.3.1 // indirect - github.com/nxadm/tail v1.4.4 // indirect - github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/nxadm/tail v1.4.8 // indirect + github.com/onsi/ginkgo/v2 v2.19.0 // indirect + github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect github.com/rogpeppe/go-internal v1.12.0 // indirect github.com/spf13/pflag v1.0.5 // indirect golang.org/x/net v0.27.0 // indirect - golang.org/x/sys v0.22.0 // indirect - golang.org/x/text v0.16.0 // indirect + golang.org/x/sys v0.23.0 // indirect + golang.org/x/text v0.17.0 // indirect + google.golang.org/protobuf v1.34.2 // indirect gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 // indirect ) diff --git a/go.sum b/go.sum index 330c13cb717..a170c772494 100644 --- a/go.sum +++ b/go.sum @@ -8,22 +8,24 @@ github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df h1:GSoSVRLo github.com/barkimedes/go-deepcopy v0.0.0-20220514131651-17c30cfc62df/go.mod h1:hiVxq5OP2bUGBRNS3Z/bt/reCLFNbdcST6gISi1fiOM= github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ= github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk= -github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= -github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= -github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= +github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/felixge/httpsnoop v1.0.1 h1:lvB5Jl89CsZtGIWuTcDM1E/vkVs49/Ml7JJe07l8SPQ= github.com/felixge/httpsnoop v1.0.1/go.mod h1:m8KPJKqk1gH5J9DgRY2ASl2lWCfGKXixSwevea8zH2U= github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo= -github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4= github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ= -github.com/go-logr/logr v1.2.4 h1:g01GSCwiDw2xSZfjJ2/T9M+S6pFdcNtFYsp+Y43HYDQ= -github.com/go-logr/logr v1.2.4/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI= -github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls= +github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY= +github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw= +github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY= +github.com/go-logr/logr v1.4.2/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0 h1:p104kn46Q8WdvHunIJ9dAyjPVtrBPhSr3KT2yUst43I= +github.com/go-task/slim-sprig v0.0.0-20210107165309-348f09dbbbc0/go.mod h1:fyg7847qk6SyHyPtNmDHnmrv/HOrqktSC+C9fM+CJOE= +github.com/go-task/slim-sprig/v3 v3.0.0 h1:sUs3vkvUymDpBKi3qH1YSqBQk9+9D/8M2mN1vB6EwHI= +github.com/go-task/slim-sprig/v3 v3.0.0/go.mod h1:W848ghGpv3Qj3dhTPRyJypKRiqCdHZiAzKg9hl15HA8= github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8= github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA= @@ -31,21 +33,18 @@ github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrU github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w= github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0= github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU= github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1 h1:K6RDEckDVWvDI9JAJYCmNdQXq6neHJOYx3V6jnqNEec= -github.com/google/pprof v0.0.0-20210720184732-4bb14d4b1be1/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE= +github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af h1:kmjWCqn2qkEml422C2Rrd27c3VGxi6a/6HNq8QmHRKM= +github.com/google/pprof v0.0.0-20240525223248-4bfdf5a9a2af/go.mod h1:K1liHPHnj73Fdn/EKuT8nrFqBihUSKXoLYU0BuatOYo= github.com/gorilla/handlers v1.5.1 h1:9lRY6j8DEeeBT10CvO9hGW0gmky0BprnvDI5vfhUHH4= github.com/gorilla/handlers v1.5.1/go.mod h1:t8XrUpc4KVXb7HGyJ4/cEnwQiaxrX/hz1Zv/4g96P1Q= github.com/gorilla/mux v1.8.0 h1:i40aqfkR1h2SlN9hojwV5ZA91wcXFOvkdNIeFDP5koI= github.com/gorilla/mux v1.8.0/go.mod h1:DVbg23sWSpFRCP0SfiEN6jmj59UnW/n46BH5rLB71So= github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU= -github.com/ianlancetaylor/demangle v0.0.0-20200824232613-28f6c0f3b639/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc= github.com/inconshreveable/mousetrap v1.0.1 h1:U3uMjPSQEBMNp1lFxmllqCPM6P5u/Xq7Pgzkat/bFNc= github.com/inconshreveable/mousetrap v1.0.1/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= @@ -55,23 +54,25 @@ github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/nxadm/tail v1.4.4 h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78= github.com/nxadm/tail v1.4.4/go.mod h1:kenIhsEOeOJmVchQTgglprH7qJGnHDVpk1VPCcaMI8A= +github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE= +github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU= github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE= github.com/onsi/ginkgo v1.12.1/go.mod h1:zj2OWP4+oCPe1qIXoGWkgMRwljMUYCdkwsT2108oapk= -github.com/onsi/ginkgo v1.12.2 h1:Ke9m3h2Hu0wsZ45yewCqhYr3Z+emcNTuLY2nMWCkrSI= -github.com/onsi/ginkgo v1.12.2/go.mod h1:iSB4RoI2tjJc9BBv4NKIKWKya62Rps+oPG/Lv9klQyY= -github.com/onsi/ginkgo/v2 v2.13.0 h1:0jY9lJquiL8fcf3M4LAXN5aMlS/b2BV86HFFPCPMgE4= -github.com/onsi/ginkgo/v2 v2.13.0/go.mod h1:TE309ZR8s5FsKKpuB1YAQYBzCaAfUgatB/xlT/ETL/o= +github.com/onsi/ginkgo v1.16.5 h1:8xi0RTUf59SOSfEtZMvwTvXYMzG4gV23XVHOZiXNtnE= +github.com/onsi/ginkgo v1.16.5/go.mod h1:+E8gABHa3K6zRBolWtd+ROzc/U5bkGt0FwiG042wbpU= +github.com/onsi/ginkgo/v2 v2.19.0 h1:9Cnnf7UHo57Hy3k6/m5k3dRfGTMXGvxhHFvkDTCTpvA= +github.com/onsi/ginkgo/v2 v2.19.0/go.mod h1:rlwLi9PilAFJ8jCg9UE1QP6VBpd6/xj3SRC0d6TU0To= github.com/onsi/gomega v1.7.1/go.mod h1:XdKZgCCFLUoM/7CFJVPcG8C1xQ1AJ0vpAezJrB7JYyY= github.com/onsi/gomega v1.10.1/go.mod h1:iN09h71vgCQne3DLsj+A5owkum+a2tYe+TOCB1ybHNo= -github.com/onsi/gomega v1.29.0 h1:KIA/t2t5UBzoirT4H9tsML45GEbo3ouUnBHsCfD2tVg= -github.com/onsi/gomega v1.29.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ= +github.com/onsi/gomega v1.33.1 h1:dsYjIxxSR755MDmKVsaFQTE22ChNBcuuTWgkUDSubOk= +github.com/onsi/gomega v1.33.1/go.mod h1:U4R44UsT+9eLIaYRB2a5qajjtQYn0hauxvRm16AVYg0= github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= +github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs= github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8= github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4= @@ -80,46 +81,65 @@ github.com/spf13/cobra v1.6.1 h1:o94oiPyS4KD1mPy2fmcYYHHfCxLqYjJOhGsCHFZtEzA= github.com/spf13/cobra v1.6.1/go.mod h1:IOw/AERYS7UzyrGinqmz6HLUo219MORXGxhbaJUqzrY= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= +golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= +golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= +golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg= +golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= golang.org/x/net v0.0.0-20200520004742-59133d7f0dd7/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A= +golang.org/x/net v0.0.0-20201021035429-f5854403a974/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU= golang.org/x/net v0.27.0 h1:5K3Njcw06/l2y9vpGCSdcxWOYHOUk3dVNGDXN+FvAys= golang.org/x/net v0.27.0/go.mod h1:dDi0PyhWNoiUOrAS8uXv/vnScO4wnHQO4mj9fn/RytE= golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= +golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20190904154756-749cb33beabd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20191120155948-bd437916bb0e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20191204072324-ce4227a45e2e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20200519105757-fe76b779f299/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.22.0 h1:RI27ohtqKCnwULzJLqkv897zojh5/DwS/ENaMzUOaWI= -golang.org/x/sys v0.22.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210112080510-489259a85091/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.23.0 h1:YfKFowiIMvtgl1UERQoTPPToxltDeZfbj4H7dVUCwmM= +golang.org/x/sys v0.23.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= -golang.org/x/text v0.16.0 h1:a94ExnEXNtEwYLGJSIUxnWoxoRz/ZcCsV63ROupILh4= -golang.org/x/text v0.16.0/go.mod h1:GhwF1Be+LQoKShO3cGOHzqOgRrGaYc9AvblQOmPVHnI= +golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.17.0 h1:XtiM5bkSOt+ewxlOE/aE/AKEHibwj/6gvWMl9Rsh0Qc= +golang.org/x/text v0.17.0/go.mod h1:BuEKDfySbSR4drPmRPG/7iBdf8hvFMuRexcpahXilzY= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= +golang.org/x/tools v0.0.0-20201224043029-2b0845dc783e/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d h1:vU5i/LfpvrRCpgM/VPfJLg5KjxD3E+hfT1SH+d9zLwg= golang.org/x/tools v0.21.1-0.20240508182429-e35e4ccd0d2d/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= +golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM= google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE= google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo= google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.2 h1:6xV6lTsCfpGD21XK49h7MhtcApnLqkfYgPcdHftf6hg= +google.golang.org/protobuf v1.34.2/go.mod h1:qYOHts0dSfpeUzUFpOMr/WGzszTmLH+DiWniOlNbLDw= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk= gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q= gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ= gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw= +gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= diff --git a/go.work b/go.work new file mode 100644 index 00000000000..93bb8ccb8de --- /dev/null +++ b/go.work @@ -0,0 +1,7 @@ +go 1.23.0 + +use ( + . + ./aks-node-controller + ./e2e +) diff --git a/go.work.sum b/go.work.sum new file mode 100644 index 00000000000..cf3aec25da3 --- /dev/null +++ b/go.work.sum @@ -0,0 +1,108 @@ +cloud.google.com/go/compute/metadata v0.3.0 h1:Tz+eQXMEqDIKRsmY3cHTL6FVaynIjX2QxYC4trgAKZc= +cloud.google.com/go/compute/metadata v0.3.0/go.mod h1:zFmK7XCadkQkj6TtorcaGlCW1hT1fIilQDwofLpJ20k= +github.com/Azure/agentbaker v0.20240503.0/go.mod h1:4taz9ipeevqDxKnnLmD3+e/xBfsvj9MSuSjGXDSfK7Q= +github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46 h1:lsxEuwrXEAokXB9qhlbKWPpo3KMLZQ5WB5WLQRW1uq0= +github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb06e3pkSAbeQ52E9H9iFoQsEEwGN64994WTCIhntQ= +github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA= +github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY= +github.com/chromedp/cdproto v0.0.0-20230802225258-3cf4e6d46a89 h1:aPflPkRFkVwbW6dmcVqfgwp1i+UWGFH6VgR1Jim5Ygc= +github.com/chromedp/cdproto v0.0.0-20230802225258-3cf4e6d46a89/go.mod h1:GKljq0VrfU4D5yc+2qA6OVr8pmO/MBbPEWqWQ/oqGEs= +github.com/chromedp/chromedp v0.9.2 h1:dKtNz4kApb06KuSXoTQIyUC2TrA0fhGDwNZf3bcgfKw= +github.com/chromedp/chromedp v0.9.2/go.mod h1:LkSXJKONWTCHAfQasKFUZI+mxqS4tZqhmtGzzhLsnLs= +github.com/chromedp/sysutil v1.0.0 h1:+ZxhTpfpZlmchB58ih/LBHX52ky7w2VhQVKQMucy3Ic= +github.com/chromedp/sysutil v1.0.0/go.mod h1:kgWmDdq8fTzXYcKIBqIYvRRTnYb9aNS9moAV0xufSww= +github.com/chzyer/logex v1.2.1 h1:XHDu3E6q+gdHgsdTPH6ImJMIp436vR6MPtH8gP05QzM= +github.com/chzyer/logex v1.2.1/go.mod h1:JLbx6lG2kDbNRFnfkgvh4eRJRPX1QCoOIWomwysCBrQ= +github.com/chzyer/readline v1.5.1 h1:upd/6fQk4src78LMRzh5vItIt361/o4uq553V8B5sGI= +github.com/chzyer/readline v1.5.1/go.mod h1:Eh+b79XXUwfKfcPLepksvw2tcLE/Ct21YObkaSkeBlk= +github.com/chzyer/test v1.0.0 h1:p3BQDXSxOhOG0P9z6/hGnII4LGiEPOYBhs8asl/fC04= +github.com/chzyer/test v1.0.0/go.mod h1:2JlltgoNkt4TW/z9V/IzDdFaMTM2JPIi26O1pF38GC8= +github.com/cpuguy83/go-md2man/v2 v2.0.2 h1:p1EgwI/C7NhT0JmVkwCD2ZBK8j4aeHQX2pMHHBfMQ6w= +github.com/creack/pty v1.1.9 h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w= +github.com/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= +github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= +github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84= +github.com/evanphx/json-patch v4.12.0+incompatible/go.mod h1:50XU6AFN0ol/bzJsmQLiYLvXMP4fmwYFNcr97nuDLSk= +github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ= +github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY= +github.com/gobwas/httphead v0.1.0 h1:exrUm0f4YX0L7EBwZHuCF4GDp8aJfVeBrlLQrs6NqWU= +github.com/gobwas/httphead v0.1.0/go.mod h1:O/RXo79gxV8G+RqlR/otEwx4Q36zl9rqC5u12GKvMCM= +github.com/gobwas/pool v0.2.1 h1:xfeeEhW7pwmX8nuLVlqbzVc7udMDrwetjEv+TZIz1og= +github.com/gobwas/pool v0.2.1/go.mod h1:q8bcK0KcYlCgd9e7WYLm9LpyS+YeLd8JVDW6WezmKEw= +github.com/gobwas/ws v1.2.1 h1:F2aeBZrm2NDsc7vbovKrWSogd4wvfAxg0FQ89/iqOTk= +github.com/gobwas/ws v1.2.1/go.mod h1:hRKAFb8wOxFROYNsT1bqfWnhX+b5MFeJM9r2ZSwg/KY= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE= +github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= +github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= +github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4= +github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA= +github.com/google/gnostic v0.5.7-v3refs h1:FhTMOKj2VhjpouxvWJAV1TL304uMlb9zcDqkl6cEI54= +github.com/google/gnostic v0.5.7-v3refs/go.mod h1:73MKFl6jIHelAJNaBGFzt3SPtZULs9dYrGFt8OiIsHQ= +github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= +github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6 h1:k7nVchz72niMH6YLQNvHSdIE7iqsQxK1P41mySCvssg= +github.com/google/pprof v0.0.0-20240424215950-a892ee059fd6/go.mod h1:kf6iHlnVGwgKolg33glAes7Yg/8iWP8ukqeldJSO7jw= +github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7 h1:pdN6V1QBWetyv/0+wjACpqVH+eVULgEjkurDLq3goeM= +github.com/gregjones/httpcache v0.0.0-20180305231024-9cad4c3443a7/go.mod h1:FecbI9+v66THATjSRHfNgh1IVFe/9kFxbXtjV0ctIMA= +github.com/hpcloud/tail v1.0.0 h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI= +github.com/ianlancetaylor/demangle v0.0.0-20240312041847-bd984b5ce465 h1:KwWnWVWCNtNq/ewIX7HIKnELmEx2nDP42yskD/pi7QE= +github.com/ianlancetaylor/demangle v0.0.0-20240312041847-bd984b5ce465/go.mod h1:gx7rwoVhcfuVKG5uya9Hs3Sxj7EIvldVofAWIUtGouw= +github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA= +github.com/kisielk/errcheck v1.5.0 h1:e8esj/e4R+SAOwFwN+n3zr0nYeCyeweozKfO23MvHzY= +github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg= +github.com/kr/pty v1.1.1 h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw= +github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80 h1:6Yzfa6GP0rIo/kULo2bwGEkFvCePZ3qHDDTC3/J9Swo= +github.com/ledongthuc/pdf v0.0.0-20220302134840-0c2507a12d80/go.mod h1:imJHygn/1yfhB7XSJJKlFZKl/J+dCPAknuiaGOshXAs= +github.com/montanaflynn/stats v0.7.0 h1:r3y12KyNxj/Sb/iOE46ws+3mS1+MZca1wlHQFPsY/JU= +github.com/montanaflynn/stats v0.7.0/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= +github.com/onsi/ginkgo/v2 v2.17.2 h1:7eMhcy3GimbsA3hEnVKdw/PQM9XN9krpKVXsZdph0/g= +github.com/onsi/ginkgo/v2 v2.17.2/go.mod h1:nP2DPOQoNsQmsVyv5rDA8JkXQoCs6goXIvr/PRJ1eCc= +github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde h1:x0TT0RDC7UhAVbbWWBzr41ElhJx5tXPWkIHA2HWPRuw= +github.com/orisano/pixelmatch v0.0.0-20220722002657-fb0b55479cde/go.mod h1:nZgzbfBr3hhjoZnS66nKrHmduYNpc34ny7RK4z5/HM0= +github.com/peterbourgon/diskv v2.0.1+incompatible h1:UBdAOUP5p4RWqPBg048CAvpKN+vxiaj6gdUUzhl4XmI= +github.com/peterbourgon/diskv v2.0.1+incompatible/go.mod h1:uqqh8zWWbv1HBMNONnaR/tNboyR3/BZd58JJSHlUSCU= +github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e h1:aoZm08cpOy4WuID//EZDgcC4zIxODThtZNPirFr42+A= +github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf35Ld67mk= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/yuin/goldmark v1.2.1 h1:ruQGxdhGHe7FWOJPT0mKs5+pD2Xs1Bm/kdGlHO04FmM= +github.com/yuin/goldmark v1.4.13 h1:fVcFKWvrslecOb/tg+Cc05dkeYx540o0FuFt3nUVDoE= +github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= +go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto= +go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE= +golang.org/x/crypto v0.25.0 h1:ypSNr+bnYL2YhwoMt2zPxHFmbAN1KZs/njMG3hxUp30= +golang.org/x/crypto v0.25.0/go.mod h1:T+wALwcMOSE0kXgUAnPAHqTLW+XHgcELELW8VaDgm/M= +golang.org/x/mod v0.17.0 h1:zY54UmvipHiNd+pm+m0x9KhZ9hl1/7QNMyxXbc6ICqA= +golang.org/x/mod v0.17.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= +golang.org/x/net v0.24.0/go.mod h1:2Q7sJY5mzlzWjKtYUEXSlBWCdyaioyXzRB2RtU8KVE8= +golang.org/x/net v0.25.0/go.mod h1:JkAGAh7GEvH74S6FOH42FLoXpXbE/aqXSrIQjXgsiwM= +golang.org/x/sync v0.7.0 h1:YsImfSBoP9QPYL0xyKJPq0gcaJdG3rInoqxTWbfQu9M= +golang.org/x/sync v0.7.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sync v0.8.0 h1:3NFvSEYkUoMifnESzZl15y791HH1qU2xm6eCJU5ZPXQ= +golang.org/x/sync v0.8.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20220310020820-b874c991c1a5/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2 h1:IRJeR9r1pYWsHKTRe/IInb7lYvbBVIqOgsX/u0mbOWY= +golang.org/x/telemetry v0.0.0-20240228155512-f48c80bd79b2/go.mod h1:TeRTkGYfJXctD9OcfyVLyj2J3IxLnKwHJR8f4D8a3YE= +golang.org/x/term v0.22.0 h1:BbsgPEJULsl2fV/AT3v15Mjva5yXKQDyKf+TbDz7QJk= +golang.org/x/term v0.22.0/go.mod h1:F3qCibpT5AMpCRfhfT53vVJwhLtIVHhB9XDjfFvnMI4= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/tools v0.20.0/go.mod h1:WvitBU7JJf6A4jOdg4S1tviW9bhUxkgeCui/0JHctQg= +golang.org/x/tools v0.21.0/go.mod h1:aiJjzUbINMkxbQROHiO6hDPo2LHcIPhhQsa9DLh0yGk= +golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2 h1:H2TDz8ibqkAF6YGhCdN3jS9O0/s90v0rJh3X/OLHEUk= +golang.org/x/xerrors v0.0.0-20220907171357-04be3eba64a2/go.mod h1:K8+ghG5WaK9qNqU5K3HdILfMLy1f3aNYFI/wnl100a8= +google.golang.org/appengine v1.6.7 h1:FZR1q0exgwxzPzp/aF+VccGrSfxfPpkBqjIIEq3ru6c= +google.golang.org/appengine v1.6.7/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc= +google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw= +gopkg.in/evanphx/json-patch.v4 v4.12.0 h1:n6jtcsulIzXPJaxegRbvFNNrZDjbij7ny3gmSPG+6V4= +gopkg.in/evanphx/json-patch.v4 v4.12.0/go.mod h1:p8EYWUEYMpynmqDbY58zCKCFZw8pRWMG4EsWvDvM72M= +gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU= +k8s.io/component-base v0.26.1 h1:4ahudpeQXHZL5kko+iDHqLj/FSGAEUnSVO0EBbgDd+4= +k8s.io/component-base v0.26.1/go.mod h1:VHrLR0b58oC035w6YQiBSbtsf0ThuSwXP+p5dD/kAWU= +k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70 h1:NGrVE502P0s0/1hudf8zjgwki1X/TByhmAoILTarmzo= +k8s.io/gengo/v2 v2.0.0-20240228010128-51d4e06bde70/go.mod h1:VH3AT8AaQOqiGjMF9p0/IM1Dj+82ZwjfxUP1IxaHE+8= diff --git a/hack/tools/Makefile b/hack/tools/Makefile index 2080f46e2ff..2d8cafad6e5 100644 --- a/hack/tools/Makefile +++ b/hack/tools/Makefile @@ -20,7 +20,7 @@ $(LOCALBIN)/cue: GOBIN=$(LOCALBIN) $(GO) install cuelang.org/go/cmd/cue@v0.4.2 $(LOCALBIN)/buf: - curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.26.1/buf-$(shell uname -s)-$(shell uname -m)" -o $(LOCALBIN)/buf && \ + curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.47.2/buf-$(shell uname -s)-$(shell uname -m)" -o $(LOCALBIN)/buf && \ chmod +x $(LOCALBIN)/buf $(LOCALBIN)/shellspec: diff --git a/packer.mk b/packer.mk index 96461332d0e..b6e621c4084 100755 --- a/packer.mk +++ b/packer.mk @@ -88,7 +88,7 @@ backfill-cleanup: az-login @chmod +x ./vhdbuilder/packer/backfill-cleanup.sh @./vhdbuilder/packer/backfill-cleanup.sh -generate-sas: az-login +generate-publishing-info: az-login @./vhdbuilder/packer/generate-vhd-publishing-info.sh convert-sig-to-classic-storage-account-blob: az-login diff --git a/pkg/proto/aksnodeconfig/v1/apiserverconfig.pb.go b/pkg/proto/aksnodeconfig/v1/apiserverconfig.pb.go deleted file mode 100644 index 5650b78b8cc..00000000000 --- a/pkg/proto/aksnodeconfig/v1/apiserverconfig.pb.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/apiserverconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ApiServerConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The certificate public key of the API server. - ApiServerPublicKey string `protobuf:"bytes,1,opt,name=api_server_public_key,json=apiServerPublicKey,proto3" json:"api_server_public_key,omitempty"` - // The name or endpoint URI of the API server. - ApiServerName string `protobuf:"bytes,2,opt,name=api_server_name,json=apiServerName,proto3" json:"api_server_name,omitempty"` -} - -func (x *ApiServerConfig) Reset() { - *x = ApiServerConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ApiServerConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ApiServerConfig) ProtoMessage() {} - -func (x *ApiServerConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ApiServerConfig.ProtoReflect.Descriptor instead. -func (*ApiServerConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *ApiServerConfig) GetApiServerPublicKey() string { - if x != nil { - return x.ApiServerPublicKey - } - return "" -} - -func (x *ApiServerConfig) GetApiServerName() string { - if x != nil { - return x.ApiServerName - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDesc = []byte{ - 0x0a, 0x30, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x70, 0x69, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2e, 0x76, 0x31, 0x22, 0x6c, 0x0a, 0x0f, 0x41, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, 0x15, 0x61, 0x70, 0x69, 0x5f, 0x73, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x61, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x0f, 0x61, 0x70, - 0x69, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x61, 0x70, 0x69, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4e, 0x61, - 0x6d, 0x65, 0x42, 0xd5, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x41, 0x70, 0x69, - 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, - 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, - 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_goTypes = []any{ - (*ApiServerConfig)(nil), // 0: aksnodeconfig.v1.ApiServerConfig -} -var file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_apiserverconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/authconfig.pb.go b/pkg/proto/aksnodeconfig/v1/authconfig.pb.go deleted file mode 100644 index fe98d7abc9e..00000000000 --- a/pkg/proto/aksnodeconfig/v1/authconfig.pb.go +++ /dev/null @@ -1,205 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/authconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Auth Config fields stored in azure.json used by cloud-provider-azure -type AuthConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Tenant ID - TenantId string `protobuf:"bytes,1,opt,name=tenant_id,json=tenantId,proto3" json:"tenant_id,omitempty"` - // Subscription ID - SubscriptionId string `protobuf:"bytes,2,opt,name=subscription_id,json=subscriptionId,proto3" json:"subscription_id,omitempty"` - // Service Principal ID. set to aadClientId - ServicePrincipalId string `protobuf:"bytes,3,opt,name=service_principal_id,json=servicePrincipalId,proto3" json:"service_principal_id,omitempty"` - // Service Principal Secret. set to aadClientSecret - ServicePrincipalSecret string `protobuf:"bytes,4,opt,name=service_principal_secret,json=servicePrincipalSecret,proto3" json:"service_principal_secret,omitempty"` - // Assigned identity id, could be user or system assigned, depending on the type. - AssignedIdentityId string `protobuf:"bytes,5,opt,name=assigned_identity_id,json=assignedIdentityId,proto3" json:"assigned_identity_id,omitempty"` - // Specify if use managed identity extension, default to false - UseManagedIdentityExtension bool `protobuf:"varint,6,opt,name=use_managed_identity_extension,json=useManagedIdentityExtension,proto3" json:"use_managed_identity_extension,omitempty"` -} - -func (x *AuthConfig) Reset() { - *x = AuthConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_authconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *AuthConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AuthConfig) ProtoMessage() {} - -func (x *AuthConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_authconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AuthConfig.ProtoReflect.Descriptor instead. -func (*AuthConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *AuthConfig) GetTenantId() string { - if x != nil { - return x.TenantId - } - return "" -} - -func (x *AuthConfig) GetSubscriptionId() string { - if x != nil { - return x.SubscriptionId - } - return "" -} - -func (x *AuthConfig) GetServicePrincipalId() string { - if x != nil { - return x.ServicePrincipalId - } - return "" -} - -func (x *AuthConfig) GetServicePrincipalSecret() string { - if x != nil { - return x.ServicePrincipalSecret - } - return "" -} - -func (x *AuthConfig) GetAssignedIdentityId() string { - if x != nil { - return x.AssignedIdentityId - } - return "" -} - -func (x *AuthConfig) GetUseManagedIdentityExtension() bool { - if x != nil { - return x.UseManagedIdentityExtension - } - return false -} - -var File_pkg_proto_aksnodeconfig_v1_authconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x75, 0x74, - 0x68, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, - 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, - 0xb5, 0x02, 0x0a, 0x0a, 0x41, 0x75, 0x74, 0x68, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, - 0x0a, 0x09, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x74, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x27, 0x0a, 0x0f, 0x73, - 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x73, 0x75, 0x62, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x30, 0x0a, 0x14, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, - 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x12, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x69, 0x6e, 0x63, - 0x69, 0x70, 0x61, 0x6c, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x18, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x5f, 0x70, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x5f, 0x73, 0x65, 0x63, 0x72, - 0x65, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, - 0x65, 0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, - 0x12, 0x30, 0x0a, 0x14, 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x5f, 0x69, 0x64, 0x65, - 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, - 0x61, 0x73, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, - 0x49, 0x64, 0x12, 0x43, 0x0a, 0x1e, 0x75, 0x73, 0x65, 0x5f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, - 0x64, 0x5f, 0x69, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x5f, 0x65, 0x78, 0x74, 0x65, 0x6e, - 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x1b, 0x75, 0x73, 0x65, 0x4d, - 0x61, 0x6e, 0x61, 0x67, 0x65, 0x64, 0x49, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x45, 0x78, - 0x74, 0x65, 0x6e, 0x73, 0x69, 0x6f, 0x6e, 0x42, 0xd0, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, - 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, - 0x42, 0x0f, 0x41, 0x75, 0x74, 0x68, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, - 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, - 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, - 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_authconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_authconfig_proto_goTypes = []any{ - (*AuthConfig)(nil), // 0: aksnodeconfig.v1.AuthConfig -} -var file_pkg_proto_aksnodeconfig_v1_authconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_authconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_authconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_authconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_authconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_authconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_authconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_authconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_authconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_authconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_authconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/clusterconfig.pb.go b/pkg/proto/aksnodeconfig/v1/clusterconfig.pb.go deleted file mode 100644 index 537c8c3a6e6..00000000000 --- a/pkg/proto/aksnodeconfig/v1/clusterconfig.pb.go +++ /dev/null @@ -1,543 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/clusterconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ClusterConfig_VM int32 - -const ( - ClusterConfig_UNSPECIFIED ClusterConfig_VM = 0 - ClusterConfig_STANDARD ClusterConfig_VM = 1 - ClusterConfig_VMSS ClusterConfig_VM = 2 -) - -// Enum value maps for ClusterConfig_VM. -var ( - ClusterConfig_VM_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "STANDARD", - 2: "VMSS", - } - ClusterConfig_VM_value = map[string]int32{ - "UNSPECIFIED": 0, - "STANDARD": 1, - "VMSS": 2, - } -) - -func (x ClusterConfig_VM) Enum() *ClusterConfig_VM { - p := new(ClusterConfig_VM) - *p = x - return p -} - -func (x ClusterConfig_VM) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (ClusterConfig_VM) Descriptor() protoreflect.EnumDescriptor { - return file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_enumTypes[0].Descriptor() -} - -func (ClusterConfig_VM) Type() protoreflect.EnumType { - return &file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_enumTypes[0] -} - -func (x ClusterConfig_VM) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use ClusterConfig_VM.Descriptor instead. -func (ClusterConfig_VM) EnumDescriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescGZIP(), []int{0, 0} -} - -type LoadBalancerConfig_LoadBalancerSku int32 - -const ( - LoadBalancerConfig_UNSPECIFIED LoadBalancerConfig_LoadBalancerSku = 0 - LoadBalancerConfig_BASIC LoadBalancerConfig_LoadBalancerSku = 1 - LoadBalancerConfig_STANDARD LoadBalancerConfig_LoadBalancerSku = 2 -) - -// Enum value maps for LoadBalancerConfig_LoadBalancerSku. -var ( - LoadBalancerConfig_LoadBalancerSku_name = map[int32]string{ - 0: "UNSPECIFIED", - 1: "BASIC", - 2: "STANDARD", - } - LoadBalancerConfig_LoadBalancerSku_value = map[string]int32{ - "UNSPECIFIED": 0, - "BASIC": 1, - "STANDARD": 2, - } -) - -func (x LoadBalancerConfig_LoadBalancerSku) Enum() *LoadBalancerConfig_LoadBalancerSku { - p := new(LoadBalancerConfig_LoadBalancerSku) - *p = x - return p -} - -func (x LoadBalancerConfig_LoadBalancerSku) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (LoadBalancerConfig_LoadBalancerSku) Descriptor() protoreflect.EnumDescriptor { - return file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_enumTypes[1].Descriptor() -} - -func (LoadBalancerConfig_LoadBalancerSku) Type() protoreflect.EnumType { - return &file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_enumTypes[1] -} - -func (x LoadBalancerConfig_LoadBalancerSku) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use LoadBalancerConfig_LoadBalancerSku.Descriptor instead. -func (LoadBalancerConfig_LoadBalancerSku) EnumDescriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescGZIP(), []int{2, 0} -} - -// Cluster Config fields stored in azure.json used by cloud-provider-azure -type ClusterConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Cluster network config. We assumed network mode is always "transparent" now so it's removed from the contract. - ClusterNetworkConfig *ClusterNetworkConfig `protobuf:"bytes,1,opt,name=cluster_network_config,json=clusterNetworkConfig,proto3" json:"cluster_network_config,omitempty"` - // Load balancer config - LoadBalancerConfig *LoadBalancerConfig `protobuf:"bytes,2,opt,name=load_balancer_config,json=loadBalancerConfig,proto3" json:"load_balancer_config,omitempty"` - // Rescource group name - ResourceGroup string `protobuf:"bytes,3,opt,name=resource_group,json=resourceGroup,proto3" json:"resource_group,omitempty"` - // Location - Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` - // VM type - VmType ClusterConfig_VM `protobuf:"varint,5,opt,name=vm_type,json=vmType,proto3,enum=aksnodeconfig.v1.ClusterConfig_VM" json:"vm_type,omitempty"` // default to standard for v1.27 and below versions and vmss for v1.28+ versions - // Primary availability set name - PrimaryAvailabilitySet string `protobuf:"bytes,6,opt,name=primary_availability_set,json=primaryAvailabilitySet,proto3" json:"primary_availability_set,omitempty"` - // Primary scale set name - PrimaryScaleSet string `protobuf:"bytes,7,opt,name=primary_scale_set,json=primaryScaleSet,proto3" json:"primary_scale_set,omitempty"` - // Specifiy if it uses instance metadata - UseInstanceMetadata bool `protobuf:"varint,8,opt,name=use_instance_metadata,json=useInstanceMetadata,proto3" json:"use_instance_metadata,omitempty"` // default to false -} - -func (x *ClusterConfig) Reset() { - *x = ClusterConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ClusterConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClusterConfig) ProtoMessage() {} - -func (x *ClusterConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClusterConfig.ProtoReflect.Descriptor instead. -func (*ClusterConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *ClusterConfig) GetClusterNetworkConfig() *ClusterNetworkConfig { - if x != nil { - return x.ClusterNetworkConfig - } - return nil -} - -func (x *ClusterConfig) GetLoadBalancerConfig() *LoadBalancerConfig { - if x != nil { - return x.LoadBalancerConfig - } - return nil -} - -func (x *ClusterConfig) GetResourceGroup() string { - if x != nil { - return x.ResourceGroup - } - return "" -} - -func (x *ClusterConfig) GetLocation() string { - if x != nil { - return x.Location - } - return "" -} - -func (x *ClusterConfig) GetVmType() ClusterConfig_VM { - if x != nil { - return x.VmType - } - return ClusterConfig_UNSPECIFIED -} - -func (x *ClusterConfig) GetPrimaryAvailabilitySet() string { - if x != nil { - return x.PrimaryAvailabilitySet - } - return "" -} - -func (x *ClusterConfig) GetPrimaryScaleSet() string { - if x != nil { - return x.PrimaryScaleSet - } - return "" -} - -func (x *ClusterConfig) GetUseInstanceMetadata() bool { - if x != nil { - return x.UseInstanceMetadata - } - return false -} - -type ClusterNetworkConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Virtual network name - VnetName string `protobuf:"bytes,1,opt,name=vnet_name,json=vnetName,proto3" json:"vnet_name,omitempty"` - // Virtual network resource group - VnetResourceGroup string `protobuf:"bytes,2,opt,name=vnet_resource_group,json=vnetResourceGroup,proto3" json:"vnet_resource_group,omitempty"` - // Subnet name - Subnet string `protobuf:"bytes,3,opt,name=subnet,proto3" json:"subnet,omitempty"` - // Network security group name - SecurityGroupName string `protobuf:"bytes,4,opt,name=security_group_name,json=securityGroupName,proto3" json:"security_group_name,omitempty"` - // Route table name - RouteTable string `protobuf:"bytes,5,opt,name=route_table,json=routeTable,proto3" json:"route_table,omitempty"` -} - -func (x *ClusterNetworkConfig) Reset() { - *x = ClusterNetworkConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ClusterNetworkConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ClusterNetworkConfig) ProtoMessage() {} - -func (x *ClusterNetworkConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ClusterNetworkConfig.ProtoReflect.Descriptor instead. -func (*ClusterNetworkConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescGZIP(), []int{1} -} - -func (x *ClusterNetworkConfig) GetVnetName() string { - if x != nil { - return x.VnetName - } - return "" -} - -func (x *ClusterNetworkConfig) GetVnetResourceGroup() string { - if x != nil { - return x.VnetResourceGroup - } - return "" -} - -func (x *ClusterNetworkConfig) GetSubnet() string { - if x != nil { - return x.Subnet - } - return "" -} - -func (x *ClusterNetworkConfig) GetSecurityGroupName() string { - if x != nil { - return x.SecurityGroupName - } - return "" -} - -func (x *ClusterNetworkConfig) GetRouteTable() string { - if x != nil { - return x.RouteTable - } - return "" -} - -type LoadBalancerConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Load balancer sku, default to basic - LoadBalancerSku LoadBalancerConfig_LoadBalancerSku `protobuf:"varint,1,opt,name=load_balancer_sku,json=loadBalancerSku,proto3,enum=aksnodeconfig.v1.LoadBalancerConfig_LoadBalancerSku" json:"load_balancer_sku,omitempty"` - // Specify if master node should be excluded from standard load balancer, default to true - ExcludeMasterFromStandardLoadBalancer *bool `protobuf:"varint,2,opt,name=exclude_master_from_standard_load_balancer,json=excludeMasterFromStandardLoadBalancer,proto3,oneof" json:"exclude_master_from_standard_load_balancer,omitempty"` - // Maximum number of load balancer rules, default to 148 - MaxLoadBalancerRuleCount *int32 `protobuf:"varint,3,opt,name=max_load_balancer_rule_count,json=maxLoadBalancerRuleCount,proto3,oneof" json:"max_load_balancer_rule_count,omitempty"` - // Disable outbound SNAT (Source Network Address Translation) for load balancer, default to false - DisableOutboundSnat bool `protobuf:"varint,4,opt,name=disable_outbound_snat,json=disableOutboundSnat,proto3" json:"disable_outbound_snat,omitempty"` -} - -func (x *LoadBalancerConfig) Reset() { - *x = LoadBalancerConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *LoadBalancerConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*LoadBalancerConfig) ProtoMessage() {} - -func (x *LoadBalancerConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use LoadBalancerConfig.ProtoReflect.Descriptor instead. -func (*LoadBalancerConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescGZIP(), []int{2} -} - -func (x *LoadBalancerConfig) GetLoadBalancerSku() LoadBalancerConfig_LoadBalancerSku { - if x != nil { - return x.LoadBalancerSku - } - return LoadBalancerConfig_UNSPECIFIED -} - -func (x *LoadBalancerConfig) GetExcludeMasterFromStandardLoadBalancer() bool { - if x != nil && x.ExcludeMasterFromStandardLoadBalancer != nil { - return *x.ExcludeMasterFromStandardLoadBalancer - } - return false -} - -func (x *LoadBalancerConfig) GetMaxLoadBalancerRuleCount() int32 { - if x != nil && x.MaxLoadBalancerRuleCount != nil { - return *x.MaxLoadBalancerRuleCount - } - return 0 -} - -func (x *LoadBalancerConfig) GetDisableOutboundSnat() bool { - if x != nil { - return x.DisableOutboundSnat - } - return false -} - -var File_pkg_proto_aksnodeconfig_v1_clusterconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDesc = []byte{ - 0x0a, 0x2e, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x75, - 0x73, 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x76, 0x31, 0x22, 0x8e, 0x04, 0x0a, 0x0d, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x5c, 0x0a, 0x16, 0x63, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x5f, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x14, 0x63, 0x6c, - 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x12, 0x56, 0x0a, 0x14, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x24, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x12, 0x6c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, - 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x47, 0x72, 0x6f, 0x75, - 0x70, 0x12, 0x1a, 0x0a, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x08, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, - 0x07, 0x76, 0x6d, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x22, - 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, - 0x31, 0x2e, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x56, 0x4d, 0x52, 0x06, 0x76, 0x6d, 0x54, 0x79, 0x70, 0x65, 0x12, 0x38, 0x0a, 0x18, 0x70, 0x72, - 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, - 0x74, 0x79, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x70, 0x72, - 0x69, 0x6d, 0x61, 0x72, 0x79, 0x41, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, - 0x79, 0x53, 0x65, 0x74, 0x12, 0x2a, 0x0a, 0x11, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, - 0x73, 0x63, 0x61, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0f, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x53, 0x63, 0x61, 0x6c, 0x65, 0x53, 0x65, 0x74, - 0x12, 0x32, 0x0a, 0x15, 0x75, 0x73, 0x65, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, - 0x5f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x13, 0x75, 0x73, 0x65, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x22, 0x2d, 0x0a, 0x02, 0x56, 0x4d, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, - 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x53, - 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, 0x01, 0x12, 0x08, 0x0a, 0x04, 0x56, 0x4d, 0x53, - 0x53, 0x10, 0x02, 0x22, 0xcc, 0x01, 0x0a, 0x14, 0x43, 0x6c, 0x75, 0x73, 0x74, 0x65, 0x72, 0x4e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x09, - 0x76, 0x6e, 0x65, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x76, 0x6e, 0x65, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x13, 0x76, 0x6e, 0x65, - 0x74, 0x5f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x76, 0x6e, 0x65, 0x74, 0x52, 0x65, 0x73, 0x6f, - 0x75, 0x72, 0x63, 0x65, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x75, 0x62, - 0x6e, 0x65, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x75, 0x62, 0x6e, 0x65, - 0x74, 0x12, 0x2e, 0x0a, 0x13, 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x5f, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, - 0x73, 0x65, 0x63, 0x75, 0x72, 0x69, 0x74, 0x79, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, - 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x54, 0x61, 0x62, - 0x6c, 0x65, 0x22, 0xdc, 0x03, 0x0a, 0x12, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, 0x6e, - 0x63, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x60, 0x0a, 0x11, 0x6c, 0x6f, 0x61, - 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x5f, 0x73, 0x6b, 0x75, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x34, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4c, 0x6f, 0x61, 0x64, 0x42, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x53, 0x6b, 0x75, 0x52, 0x0f, 0x6c, 0x6f, 0x61, 0x64, - 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x53, 0x6b, 0x75, 0x12, 0x5e, 0x0a, 0x2a, 0x65, - 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x72, - 0x6f, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x5f, 0x6c, 0x6f, 0x61, 0x64, - 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x48, - 0x00, 0x52, 0x25, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x4d, 0x61, 0x73, 0x74, 0x65, 0x72, - 0x46, 0x72, 0x6f, 0x6d, 0x53, 0x74, 0x61, 0x6e, 0x64, 0x61, 0x72, 0x64, 0x4c, 0x6f, 0x61, 0x64, - 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12, 0x43, 0x0a, 0x1c, 0x6d, - 0x61, 0x78, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, - 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, - 0x05, 0x48, 0x01, 0x52, 0x18, 0x6d, 0x61, 0x78, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x72, 0x52, 0x75, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, - 0x12, 0x32, 0x0a, 0x15, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6f, 0x75, 0x74, 0x62, - 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x73, 0x6e, 0x61, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x13, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x4f, 0x75, 0x74, 0x62, 0x6f, 0x75, 0x6e, 0x64, - 0x53, 0x6e, 0x61, 0x74, 0x22, 0x3b, 0x0a, 0x0f, 0x4c, 0x6f, 0x61, 0x64, 0x42, 0x61, 0x6c, 0x61, - 0x6e, 0x63, 0x65, 0x72, 0x53, 0x6b, 0x75, 0x12, 0x0f, 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, - 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x42, 0x41, 0x53, 0x49, - 0x43, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x53, 0x54, 0x41, 0x4e, 0x44, 0x41, 0x52, 0x44, 0x10, - 0x02, 0x42, 0x2d, 0x0a, 0x2b, 0x5f, 0x65, 0x78, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x6d, 0x61, - 0x73, 0x74, 0x65, 0x72, 0x5f, 0x66, 0x72, 0x6f, 0x6d, 0x5f, 0x73, 0x74, 0x61, 0x6e, 0x64, 0x61, - 0x72, 0x64, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, - 0x42, 0x1f, 0x0a, 0x1d, 0x5f, 0x6d, 0x61, 0x78, 0x5f, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x62, 0x61, - 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x72, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x42, 0xd3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x43, 0x6c, 0x75, 0x73, - 0x74, 0x65, 0x72, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, - 0x72, 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, - 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, - 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, - 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_goTypes = []any{ - (ClusterConfig_VM)(0), // 0: aksnodeconfig.v1.ClusterConfig.VM - (LoadBalancerConfig_LoadBalancerSku)(0), // 1: aksnodeconfig.v1.LoadBalancerConfig.LoadBalancerSku - (*ClusterConfig)(nil), // 2: aksnodeconfig.v1.ClusterConfig - (*ClusterNetworkConfig)(nil), // 3: aksnodeconfig.v1.ClusterNetworkConfig - (*LoadBalancerConfig)(nil), // 4: aksnodeconfig.v1.LoadBalancerConfig -} -var file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_depIdxs = []int32{ - 3, // 0: aksnodeconfig.v1.ClusterConfig.cluster_network_config:type_name -> aksnodeconfig.v1.ClusterNetworkConfig - 4, // 1: aksnodeconfig.v1.ClusterConfig.load_balancer_config:type_name -> aksnodeconfig.v1.LoadBalancerConfig - 0, // 2: aksnodeconfig.v1.ClusterConfig.vm_type:type_name -> aksnodeconfig.v1.ClusterConfig.VM - 1, // 3: aksnodeconfig.v1.LoadBalancerConfig.load_balancer_sku:type_name -> aksnodeconfig.v1.LoadBalancerConfig.LoadBalancerSku - 4, // [4:4] is the sub-list for method output_type - 4, // [4:4] is the sub-list for method input_type - 4, // [4:4] is the sub-list for extension type_name - 4, // [4:4] is the sub-list for extension extendee - 0, // [0:4] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_clusterconfig_proto != nil { - return - } - file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_msgTypes[2].OneofWrappers = []any{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDesc, - NumEnums: 2, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_depIdxs, - EnumInfos: file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_enumTypes, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_clusterconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_clusterconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/containerdconfig.pb.go b/pkg/proto/aksnodeconfig/v1/containerdconfig.pb.go deleted file mode 100644 index 50409a1751a..00000000000 --- a/pkg/proto/aksnodeconfig/v1/containerdconfig.pb.go +++ /dev/null @@ -1,170 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/containerdconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ContainerdConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The base URL for downloading containerd. - ContainerdDownloadUrlBase string `protobuf:"bytes,1,opt,name=containerd_download_url_base,json=containerdDownloadUrlBase,proto3" json:"containerd_download_url_base,omitempty"` - // The version of containerd to download. - ContainerdVersion string `protobuf:"bytes,2,opt,name=containerd_version,json=containerdVersion,proto3" json:"containerd_version,omitempty"` - // The URL for downloading the containerd package. - ContainerdPackageUrl string `protobuf:"bytes,3,opt,name=containerd_package_url,json=containerdPackageUrl,proto3" json:"containerd_package_url,omitempty"` -} - -func (x *ContainerdConfig) Reset() { - *x = ContainerdConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *ContainerdConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ContainerdConfig) ProtoMessage() {} - -func (x *ContainerdConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ContainerdConfig.ProtoReflect.Descriptor instead. -func (*ContainerdConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *ContainerdConfig) GetContainerdDownloadUrlBase() string { - if x != nil { - return x.ContainerdDownloadUrlBase - } - return "" -} - -func (x *ContainerdConfig) GetContainerdVersion() string { - if x != nil { - return x.ContainerdVersion - } - return "" -} - -func (x *ContainerdConfig) GetContainerdPackageUrl() string { - if x != nil { - return x.ContainerdPackageUrl - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_containerdconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDesc = []byte{ - 0x0a, 0x31, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xb8, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3f, 0x0a, 0x1c, 0x63, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, - 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x5f, 0x62, 0x61, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x19, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x44, 0x6f, 0x77, 0x6e, - 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, 0x42, 0x61, 0x73, 0x65, 0x12, 0x2d, 0x0a, 0x12, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, - 0x65, 0x72, 0x64, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x0a, 0x16, 0x63, 0x6f, - 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, - 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x63, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x64, 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, - 0x42, 0xd6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x15, 0x43, 0x6f, 0x6e, 0x74, 0x61, - 0x69, 0x6e, 0x65, 0x72, 0x64, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, - 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, - 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, - 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, - 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, - 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_goTypes = []any{ - (*ContainerdConfig)(nil), // 0: aksnodeconfig.v1.ContainerdConfig -} -var file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_containerdconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_containerdconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_containerdconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/customcloudconfig.pb.go b/pkg/proto/aksnodeconfig/v1/customcloudconfig.pb.go deleted file mode 100644 index 9262e9c5a8f..00000000000 --- a/pkg/proto/aksnodeconfig/v1/customcloudconfig.pb.go +++ /dev/null @@ -1,182 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/customcloudconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CustomCloudConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Name of custom cloud - CustomCloudEnvName string `protobuf:"bytes,1,opt,name=custom_cloud_env_name,json=customCloudEnvName,proto3" json:"custom_cloud_env_name,omitempty"` - // RepoDepotEndpoint is the endpoint of the repo depot - RepoDepotEndpoint string `protobuf:"bytes,2,opt,name=repo_depot_endpoint,json=repoDepotEndpoint,proto3" json:"repo_depot_endpoint,omitempty"` - // Base64 encoded JSON string of custom cloud environment - CustomEnvJsonContent string `protobuf:"bytes,3,opt,name=custom_env_json_content,json=customEnvJsonContent,proto3" json:"custom_env_json_content,omitempty"` - // AKSCustomCloudContainerRegistryDNSSuffix specifies a custom cloud container registry dns suffix for credential provider - ContainerRegistryDnsSuffix string `protobuf:"bytes,4,opt,name=container_registry_dns_suffix,json=containerRegistryDnsSuffix,proto3" json:"container_registry_dns_suffix,omitempty"` -} - -func (x *CustomCloudConfig) Reset() { - *x = CustomCloudConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CustomCloudConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CustomCloudConfig) ProtoMessage() {} - -func (x *CustomCloudConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CustomCloudConfig.ProtoReflect.Descriptor instead. -func (*CustomCloudConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *CustomCloudConfig) GetCustomCloudEnvName() string { - if x != nil { - return x.CustomCloudEnvName - } - return "" -} - -func (x *CustomCloudConfig) GetRepoDepotEndpoint() string { - if x != nil { - return x.RepoDepotEndpoint - } - return "" -} - -func (x *CustomCloudConfig) GetCustomEnvJsonContent() string { - if x != nil { - return x.CustomEnvJsonContent - } - return "" -} - -func (x *CustomCloudConfig) GetContainerRegistryDnsSuffix() string { - if x != nil { - return x.ContainerRegistryDnsSuffix - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDesc = []byte{ - 0x0a, 0x32, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xf0, 0x01, 0x0a, 0x11, 0x43, 0x75, 0x73, 0x74, 0x6f, - 0x6d, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x31, 0x0a, 0x15, - 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x5f, 0x65, 0x6e, 0x76, - 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x45, 0x6e, 0x76, 0x4e, 0x61, 0x6d, 0x65, 0x12, - 0x2e, 0x0a, 0x13, 0x72, 0x65, 0x70, 0x6f, 0x5f, 0x64, 0x65, 0x70, 0x6f, 0x74, 0x5f, 0x65, 0x6e, - 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x72, 0x65, - 0x70, 0x6f, 0x44, 0x65, 0x70, 0x6f, 0x74, 0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, - 0x35, 0x0a, 0x17, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x65, 0x6e, 0x76, 0x5f, 0x6a, 0x73, - 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x14, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x45, 0x6e, 0x76, 0x4a, 0x73, 0x6f, 0x6e, 0x43, - 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x41, 0x0a, 0x1d, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, - 0x6e, 0x65, 0x72, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x5f, 0x64, 0x6e, 0x73, - 0x5f, 0x73, 0x75, 0x66, 0x66, 0x69, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1a, 0x63, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, - 0x44, 0x6e, 0x73, 0x53, 0x75, 0x66, 0x66, 0x69, 0x78, 0x42, 0xd7, 0x01, 0x0a, 0x14, 0x63, 0x6f, - 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x76, 0x31, 0x42, 0x16, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, - 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, - 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, - 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, - 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, - 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, - 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_goTypes = []any{ - (*CustomCloudConfig)(nil), // 0: aksnodeconfig.v1.CustomCloudConfig -} -var file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_customcloudconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/customlinuxosconfig.pb.go b/pkg/proto/aksnodeconfig/v1/customlinuxosconfig.pb.go deleted file mode 100644 index d8af1a6f18d..00000000000 --- a/pkg/proto/aksnodeconfig/v1/customlinuxosconfig.pb.go +++ /dev/null @@ -1,682 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/customlinuxosconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Custom Linux Node OS Config -type CustomLinuxOSConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Sysctl settings for Linux agent nodes - SysctlConfig *SysctlConfig `protobuf:"bytes,1,opt,name=sysctl_config,json=sysctlConfig,proto3" json:"sysctl_config,omitempty"` - // Ulimit settings for Linux agent nodes - UlimitConfig *UlimitConfig `protobuf:"bytes,2,opt,name=ulimit_config,json=ulimitConfig,proto3" json:"ulimit_config,omitempty"` - // Enable or disable swap configuration - EnableSwapConfig bool `protobuf:"varint,3,opt,name=enable_swap_config,json=enableSwapConfig,proto3" json:"enable_swap_config,omitempty"` - // The size in MB of a swap file that will be created on each node - SwapFileSize int32 `protobuf:"varint,4,opt,name=swap_file_size,json=swapFileSize,proto3" json:"swap_file_size,omitempty"` - // Valid values are "always", "defer", "defer+madvise", "madvise" and "never" - // If it's unset or set to empty string, it will use the default value in the VHD "always" - TransparentHugepageSupport string `protobuf:"bytes,5,opt,name=transparent_hugepage_support,json=transparentHugepageSupport,proto3" json:"transparent_hugepage_support,omitempty"` - // Valid values are "always", "madvise" and "never" - // If it's unset or set to empty string, it will use the default value in the VHD "madvise" - TransparentDefrag string `protobuf:"bytes,6,opt,name=transparent_defrag,json=transparentDefrag,proto3" json:"transparent_defrag,omitempty"` -} - -func (x *CustomLinuxOSConfig) Reset() { - *x = CustomLinuxOSConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CustomLinuxOSConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CustomLinuxOSConfig) ProtoMessage() {} - -func (x *CustomLinuxOSConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CustomLinuxOSConfig.ProtoReflect.Descriptor instead. -func (*CustomLinuxOSConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *CustomLinuxOSConfig) GetSysctlConfig() *SysctlConfig { - if x != nil { - return x.SysctlConfig - } - return nil -} - -func (x *CustomLinuxOSConfig) GetUlimitConfig() *UlimitConfig { - if x != nil { - return x.UlimitConfig - } - return nil -} - -func (x *CustomLinuxOSConfig) GetEnableSwapConfig() bool { - if x != nil { - return x.EnableSwapConfig - } - return false -} - -func (x *CustomLinuxOSConfig) GetSwapFileSize() int32 { - if x != nil { - return x.SwapFileSize - } - return 0 -} - -func (x *CustomLinuxOSConfig) GetTransparentHugepageSupport() string { - if x != nil { - return x.TransparentHugepageSupport - } - return "" -} - -func (x *CustomLinuxOSConfig) GetTransparentDefrag() string { - if x != nil { - return x.TransparentDefrag - } - return "" -} - -type SysctlConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // using optional here to allow detecting if the field is set or not (explicit presence in proto3) - NetCoreSomaxconn *int32 `protobuf:"varint,1,opt,name=NetCoreSomaxconn,proto3,oneof" json:"NetCoreSomaxconn,omitempty"` - NetCoreNetdevMaxBacklog *int32 `protobuf:"varint,2,opt,name=NetCoreNetdevMaxBacklog,proto3,oneof" json:"NetCoreNetdevMaxBacklog,omitempty"` - NetCoreRmemDefault *int32 `protobuf:"varint,3,opt,name=NetCoreRmemDefault,proto3,oneof" json:"NetCoreRmemDefault,omitempty"` - NetCoreRmemMax *int32 `protobuf:"varint,4,opt,name=NetCoreRmemMax,proto3,oneof" json:"NetCoreRmemMax,omitempty"` - NetCoreWmemDefault *int32 `protobuf:"varint,5,opt,name=NetCoreWmemDefault,proto3,oneof" json:"NetCoreWmemDefault,omitempty"` - NetCoreWmemMax *int32 `protobuf:"varint,6,opt,name=NetCoreWmemMax,proto3,oneof" json:"NetCoreWmemMax,omitempty"` - NetCoreOptmemMax *int32 `protobuf:"varint,7,opt,name=NetCoreOptmemMax,proto3,oneof" json:"NetCoreOptmemMax,omitempty"` - NetIpv4TcpMaxSynBacklog *int32 `protobuf:"varint,8,opt,name=NetIpv4TcpMaxSynBacklog,proto3,oneof" json:"NetIpv4TcpMaxSynBacklog,omitempty"` - NetIpv4TcpMaxTwBuckets *int32 `protobuf:"varint,9,opt,name=NetIpv4TcpMaxTwBuckets,proto3,oneof" json:"NetIpv4TcpMaxTwBuckets,omitempty"` - NetIpv4TcpFinTimeout *int32 `protobuf:"varint,10,opt,name=NetIpv4TcpFinTimeout,proto3,oneof" json:"NetIpv4TcpFinTimeout,omitempty"` - NetIpv4TcpKeepaliveTime *int32 `protobuf:"varint,11,opt,name=NetIpv4TcpKeepaliveTime,proto3,oneof" json:"NetIpv4TcpKeepaliveTime,omitempty"` - NetIpv4TcpKeepaliveProbes *int32 `protobuf:"varint,12,opt,name=NetIpv4TcpKeepaliveProbes,proto3,oneof" json:"NetIpv4TcpKeepaliveProbes,omitempty"` - NetIpv4TcpkeepaliveIntvl *int32 `protobuf:"varint,13,opt,name=NetIpv4TcpkeepaliveIntvl,proto3,oneof" json:"NetIpv4TcpkeepaliveIntvl,omitempty"` - NetIpv4TcpTwReuse *bool `protobuf:"varint,14,opt,name=NetIpv4TcpTwReuse,proto3,oneof" json:"NetIpv4TcpTwReuse,omitempty"` - NetIpv4IpLocalPortRange *string `protobuf:"bytes,15,opt,name=NetIpv4IpLocalPortRange,proto3,oneof" json:"NetIpv4IpLocalPortRange,omitempty"` - NetIpv4NeighDefaultGcThresh1 *int32 `protobuf:"varint,16,opt,name=NetIpv4NeighDefaultGcThresh1,proto3,oneof" json:"NetIpv4NeighDefaultGcThresh1,omitempty"` - NetIpv4NeighDefaultGcThresh2 *int32 `protobuf:"varint,17,opt,name=NetIpv4NeighDefaultGcThresh2,proto3,oneof" json:"NetIpv4NeighDefaultGcThresh2,omitempty"` - NetIpv4NeighDefaultGcThresh3 *int32 `protobuf:"varint,18,opt,name=NetIpv4NeighDefaultGcThresh3,proto3,oneof" json:"NetIpv4NeighDefaultGcThresh3,omitempty"` - NetNetfilterNfConntrackMax *int32 `protobuf:"varint,19,opt,name=NetNetfilterNfConntrackMax,proto3,oneof" json:"NetNetfilterNfConntrackMax,omitempty"` - NetNetfilterNfConntrackBuckets *int32 `protobuf:"varint,20,opt,name=NetNetfilterNfConntrackBuckets,proto3,oneof" json:"NetNetfilterNfConntrackBuckets,omitempty"` - FsInotifyMaxUserWatches *int32 `protobuf:"varint,21,opt,name=FsInotifyMaxUserWatches,proto3,oneof" json:"FsInotifyMaxUserWatches,omitempty"` - FsFileMax *int32 `protobuf:"varint,22,opt,name=FsFileMax,proto3,oneof" json:"FsFileMax,omitempty"` - FsAioMaxNr *int32 `protobuf:"varint,23,opt,name=FsAioMaxNr,proto3,oneof" json:"FsAioMaxNr,omitempty"` - FsNrOpen *int32 `protobuf:"varint,24,opt,name=FsNrOpen,proto3,oneof" json:"FsNrOpen,omitempty"` - KernelThreadsMax *int32 `protobuf:"varint,25,opt,name=KernelThreadsMax,proto3,oneof" json:"KernelThreadsMax,omitempty"` - VMMaxMapCount *int32 `protobuf:"varint,26,opt,name=VMMaxMapCount,proto3,oneof" json:"VMMaxMapCount,omitempty"` - VMSwappiness *int32 `protobuf:"varint,27,opt,name=VMSwappiness,proto3,oneof" json:"VMSwappiness,omitempty"` - VMVfsCachePressure *int32 `protobuf:"varint,28,opt,name=VMVfsCachePressure,proto3,oneof" json:"VMVfsCachePressure,omitempty"` -} - -func (x *SysctlConfig) Reset() { - *x = SysctlConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *SysctlConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SysctlConfig) ProtoMessage() {} - -func (x *SysctlConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SysctlConfig.ProtoReflect.Descriptor instead. -func (*SysctlConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDescGZIP(), []int{1} -} - -func (x *SysctlConfig) GetNetCoreSomaxconn() int32 { - if x != nil && x.NetCoreSomaxconn != nil { - return *x.NetCoreSomaxconn - } - return 0 -} - -func (x *SysctlConfig) GetNetCoreNetdevMaxBacklog() int32 { - if x != nil && x.NetCoreNetdevMaxBacklog != nil { - return *x.NetCoreNetdevMaxBacklog - } - return 0 -} - -func (x *SysctlConfig) GetNetCoreRmemDefault() int32 { - if x != nil && x.NetCoreRmemDefault != nil { - return *x.NetCoreRmemDefault - } - return 0 -} - -func (x *SysctlConfig) GetNetCoreRmemMax() int32 { - if x != nil && x.NetCoreRmemMax != nil { - return *x.NetCoreRmemMax - } - return 0 -} - -func (x *SysctlConfig) GetNetCoreWmemDefault() int32 { - if x != nil && x.NetCoreWmemDefault != nil { - return *x.NetCoreWmemDefault - } - return 0 -} - -func (x *SysctlConfig) GetNetCoreWmemMax() int32 { - if x != nil && x.NetCoreWmemMax != nil { - return *x.NetCoreWmemMax - } - return 0 -} - -func (x *SysctlConfig) GetNetCoreOptmemMax() int32 { - if x != nil && x.NetCoreOptmemMax != nil { - return *x.NetCoreOptmemMax - } - return 0 -} - -func (x *SysctlConfig) GetNetIpv4TcpMaxSynBacklog() int32 { - if x != nil && x.NetIpv4TcpMaxSynBacklog != nil { - return *x.NetIpv4TcpMaxSynBacklog - } - return 0 -} - -func (x *SysctlConfig) GetNetIpv4TcpMaxTwBuckets() int32 { - if x != nil && x.NetIpv4TcpMaxTwBuckets != nil { - return *x.NetIpv4TcpMaxTwBuckets - } - return 0 -} - -func (x *SysctlConfig) GetNetIpv4TcpFinTimeout() int32 { - if x != nil && x.NetIpv4TcpFinTimeout != nil { - return *x.NetIpv4TcpFinTimeout - } - return 0 -} - -func (x *SysctlConfig) GetNetIpv4TcpKeepaliveTime() int32 { - if x != nil && x.NetIpv4TcpKeepaliveTime != nil { - return *x.NetIpv4TcpKeepaliveTime - } - return 0 -} - -func (x *SysctlConfig) GetNetIpv4TcpKeepaliveProbes() int32 { - if x != nil && x.NetIpv4TcpKeepaliveProbes != nil { - return *x.NetIpv4TcpKeepaliveProbes - } - return 0 -} - -func (x *SysctlConfig) GetNetIpv4TcpkeepaliveIntvl() int32 { - if x != nil && x.NetIpv4TcpkeepaliveIntvl != nil { - return *x.NetIpv4TcpkeepaliveIntvl - } - return 0 -} - -func (x *SysctlConfig) GetNetIpv4TcpTwReuse() bool { - if x != nil && x.NetIpv4TcpTwReuse != nil { - return *x.NetIpv4TcpTwReuse - } - return false -} - -func (x *SysctlConfig) GetNetIpv4IpLocalPortRange() string { - if x != nil && x.NetIpv4IpLocalPortRange != nil { - return *x.NetIpv4IpLocalPortRange - } - return "" -} - -func (x *SysctlConfig) GetNetIpv4NeighDefaultGcThresh1() int32 { - if x != nil && x.NetIpv4NeighDefaultGcThresh1 != nil { - return *x.NetIpv4NeighDefaultGcThresh1 - } - return 0 -} - -func (x *SysctlConfig) GetNetIpv4NeighDefaultGcThresh2() int32 { - if x != nil && x.NetIpv4NeighDefaultGcThresh2 != nil { - return *x.NetIpv4NeighDefaultGcThresh2 - } - return 0 -} - -func (x *SysctlConfig) GetNetIpv4NeighDefaultGcThresh3() int32 { - if x != nil && x.NetIpv4NeighDefaultGcThresh3 != nil { - return *x.NetIpv4NeighDefaultGcThresh3 - } - return 0 -} - -func (x *SysctlConfig) GetNetNetfilterNfConntrackMax() int32 { - if x != nil && x.NetNetfilterNfConntrackMax != nil { - return *x.NetNetfilterNfConntrackMax - } - return 0 -} - -func (x *SysctlConfig) GetNetNetfilterNfConntrackBuckets() int32 { - if x != nil && x.NetNetfilterNfConntrackBuckets != nil { - return *x.NetNetfilterNfConntrackBuckets - } - return 0 -} - -func (x *SysctlConfig) GetFsInotifyMaxUserWatches() int32 { - if x != nil && x.FsInotifyMaxUserWatches != nil { - return *x.FsInotifyMaxUserWatches - } - return 0 -} - -func (x *SysctlConfig) GetFsFileMax() int32 { - if x != nil && x.FsFileMax != nil { - return *x.FsFileMax - } - return 0 -} - -func (x *SysctlConfig) GetFsAioMaxNr() int32 { - if x != nil && x.FsAioMaxNr != nil { - return *x.FsAioMaxNr - } - return 0 -} - -func (x *SysctlConfig) GetFsNrOpen() int32 { - if x != nil && x.FsNrOpen != nil { - return *x.FsNrOpen - } - return 0 -} - -func (x *SysctlConfig) GetKernelThreadsMax() int32 { - if x != nil && x.KernelThreadsMax != nil { - return *x.KernelThreadsMax - } - return 0 -} - -func (x *SysctlConfig) GetVMMaxMapCount() int32 { - if x != nil && x.VMMaxMapCount != nil { - return *x.VMMaxMapCount - } - return 0 -} - -func (x *SysctlConfig) GetVMSwappiness() int32 { - if x != nil && x.VMSwappiness != nil { - return *x.VMSwappiness - } - return 0 -} - -func (x *SysctlConfig) GetVMVfsCachePressure() int32 { - if x != nil && x.VMVfsCachePressure != nil { - return *x.VMVfsCachePressure - } - return 0 -} - -type UlimitConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // using optional here to allow detecting if the field is set or not (explicit presence in proto3) - NoFile *string `protobuf:"bytes,1,opt,name=NoFile,proto3,oneof" json:"NoFile,omitempty"` - MaxLockedMemory *string `protobuf:"bytes,2,opt,name=MaxLockedMemory,proto3,oneof" json:"MaxLockedMemory,omitempty"` -} - -func (x *UlimitConfig) Reset() { - *x = UlimitConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *UlimitConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*UlimitConfig) ProtoMessage() {} - -func (x *UlimitConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_msgTypes[2] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use UlimitConfig.ProtoReflect.Descriptor instead. -func (*UlimitConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDescGZIP(), []int{2} -} - -func (x *UlimitConfig) GetNoFile() string { - if x != nil && x.NoFile != nil { - return *x.NoFile - } - return "" -} - -func (x *UlimitConfig) GetMaxLockedMemory() string { - if x != nil && x.MaxLockedMemory != nil { - return *x.MaxLockedMemory - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDesc = []byte{ - 0x0a, 0x34, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x6f, 0x73, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xe4, 0x02, 0x0a, 0x13, 0x43, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x4c, 0x69, 0x6e, 0x75, 0x78, 0x4f, 0x53, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x43, 0x0a, 0x0d, 0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x79, 0x73, 0x63, 0x74, - 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x73, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x43, 0x0a, 0x0d, 0x75, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x5f, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, - 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x55, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x75, 0x6c, - 0x69, 0x6d, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2c, 0x0a, 0x12, 0x65, 0x6e, - 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x77, 0x61, 0x70, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x10, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x77, - 0x61, 0x70, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x24, 0x0a, 0x0e, 0x73, 0x77, 0x61, 0x70, - 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, - 0x52, 0x0c, 0x73, 0x77, 0x61, 0x70, 0x46, 0x69, 0x6c, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x40, - 0x0a, 0x1c, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x75, - 0x67, 0x65, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x05, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x1a, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, - 0x74, 0x48, 0x75, 0x67, 0x65, 0x70, 0x61, 0x67, 0x65, 0x53, 0x75, 0x70, 0x70, 0x6f, 0x72, 0x74, - 0x12, 0x2d, 0x0a, 0x12, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x5f, - 0x64, 0x65, 0x66, 0x72, 0x61, 0x67, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x74, 0x72, - 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x44, 0x65, 0x66, 0x72, 0x61, 0x67, 0x22, - 0xd9, 0x11, 0x0a, 0x0c, 0x53, 0x79, 0x73, 0x63, 0x74, 0x6c, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x2f, 0x0a, 0x10, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x6f, 0x6d, 0x61, 0x78, - 0x63, 0x6f, 0x6e, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52, 0x10, 0x4e, 0x65, - 0x74, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x6f, 0x6d, 0x61, 0x78, 0x63, 0x6f, 0x6e, 0x6e, 0x88, 0x01, - 0x01, 0x12, 0x3d, 0x0a, 0x17, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x4e, 0x65, 0x74, 0x64, - 0x65, 0x76, 0x4d, 0x61, 0x78, 0x42, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x05, 0x48, 0x01, 0x52, 0x17, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x4e, 0x65, 0x74, - 0x64, 0x65, 0x76, 0x4d, 0x61, 0x78, 0x42, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x88, 0x01, 0x01, - 0x12, 0x33, 0x0a, 0x12, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x52, 0x6d, 0x65, 0x6d, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x48, 0x02, 0x52, 0x12, - 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x52, 0x6d, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, - 0x6c, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2b, 0x0a, 0x0e, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, - 0x52, 0x6d, 0x65, 0x6d, 0x4d, 0x61, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x05, 0x48, 0x03, 0x52, - 0x0e, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x52, 0x6d, 0x65, 0x6d, 0x4d, 0x61, 0x78, 0x88, - 0x01, 0x01, 0x12, 0x33, 0x0a, 0x12, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x57, 0x6d, 0x65, - 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x05, 0x48, 0x04, - 0x52, 0x12, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x57, 0x6d, 0x65, 0x6d, 0x44, 0x65, 0x66, - 0x61, 0x75, 0x6c, 0x74, 0x88, 0x01, 0x01, 0x12, 0x2b, 0x0a, 0x0e, 0x4e, 0x65, 0x74, 0x43, 0x6f, - 0x72, 0x65, 0x57, 0x6d, 0x65, 0x6d, 0x4d, 0x61, 0x78, 0x18, 0x06, 0x20, 0x01, 0x28, 0x05, 0x48, - 0x05, 0x52, 0x0e, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x57, 0x6d, 0x65, 0x6d, 0x4d, 0x61, - 0x78, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x10, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x4f, - 0x70, 0x74, 0x6d, 0x65, 0x6d, 0x4d, 0x61, 0x78, 0x18, 0x07, 0x20, 0x01, 0x28, 0x05, 0x48, 0x06, - 0x52, 0x10, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x4f, 0x70, 0x74, 0x6d, 0x65, 0x6d, 0x4d, - 0x61, 0x78, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x17, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, - 0x54, 0x63, 0x70, 0x4d, 0x61, 0x78, 0x53, 0x79, 0x6e, 0x42, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, - 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x48, 0x07, 0x52, 0x17, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, - 0x34, 0x54, 0x63, 0x70, 0x4d, 0x61, 0x78, 0x53, 0x79, 0x6e, 0x42, 0x61, 0x63, 0x6b, 0x6c, 0x6f, - 0x67, 0x88, 0x01, 0x01, 0x12, 0x3b, 0x0a, 0x16, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, - 0x63, 0x70, 0x4d, 0x61, 0x78, 0x54, 0x77, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x05, 0x48, 0x08, 0x52, 0x16, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, - 0x63, 0x70, 0x4d, 0x61, 0x78, 0x54, 0x77, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x88, 0x01, - 0x01, 0x12, 0x37, 0x0a, 0x14, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x46, - 0x69, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x48, - 0x09, 0x52, 0x14, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x46, 0x69, 0x6e, - 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x17, 0x4e, 0x65, - 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, - 0x65, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x05, 0x48, 0x0a, 0x52, 0x17, 0x4e, - 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, - 0x76, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x41, 0x0a, 0x19, 0x4e, 0x65, 0x74, - 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, - 0x50, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x48, 0x0b, 0x52, 0x19, - 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x61, 0x6c, - 0x69, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x62, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x3f, 0x0a, 0x18, - 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, - 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x76, 0x6c, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x05, 0x48, 0x0c, - 0x52, 0x18, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x6b, 0x65, 0x65, 0x70, - 0x61, 0x6c, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x76, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x31, 0x0a, - 0x11, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x54, 0x77, 0x52, 0x65, 0x75, - 0x73, 0x65, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x08, 0x48, 0x0d, 0x52, 0x11, 0x4e, 0x65, 0x74, 0x49, - 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x54, 0x77, 0x52, 0x65, 0x75, 0x73, 0x65, 0x88, 0x01, 0x01, - 0x12, 0x3d, 0x0a, 0x17, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x49, 0x70, 0x4c, 0x6f, 0x63, - 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x18, 0x0f, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x0e, 0x52, 0x17, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x49, 0x70, 0x4c, 0x6f, - 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, 0x65, 0x88, 0x01, 0x01, 0x12, - 0x47, 0x0a, 0x1c, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, 0x63, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x31, 0x18, - 0x10, 0x20, 0x01, 0x28, 0x05, 0x48, 0x0f, 0x52, 0x1c, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, - 0x4e, 0x65, 0x69, 0x67, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, 0x63, 0x54, 0x68, - 0x72, 0x65, 0x73, 0x68, 0x31, 0x88, 0x01, 0x01, 0x12, 0x47, 0x0a, 0x1c, 0x4e, 0x65, 0x74, 0x49, - 0x70, 0x76, 0x34, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, - 0x63, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x32, 0x18, 0x11, 0x20, 0x01, 0x28, 0x05, 0x48, 0x10, - 0x52, 0x1c, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x44, 0x65, - 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, 0x63, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x32, 0x88, 0x01, - 0x01, 0x12, 0x47, 0x0a, 0x1c, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x4e, 0x65, 0x69, 0x67, - 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, 0x63, 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, - 0x33, 0x18, 0x12, 0x20, 0x01, 0x28, 0x05, 0x48, 0x11, 0x52, 0x1c, 0x4e, 0x65, 0x74, 0x49, 0x70, - 0x76, 0x34, 0x4e, 0x65, 0x69, 0x67, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, 0x63, - 0x54, 0x68, 0x72, 0x65, 0x73, 0x68, 0x33, 0x88, 0x01, 0x01, 0x12, 0x43, 0x0a, 0x1a, 0x4e, 0x65, - 0x74, 0x4e, 0x65, 0x74, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4e, 0x66, 0x43, 0x6f, 0x6e, 0x6e, - 0x74, 0x72, 0x61, 0x63, 0x6b, 0x4d, 0x61, 0x78, 0x18, 0x13, 0x20, 0x01, 0x28, 0x05, 0x48, 0x12, - 0x52, 0x1a, 0x4e, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4e, 0x66, - 0x43, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x4d, 0x61, 0x78, 0x88, 0x01, 0x01, 0x12, - 0x4b, 0x0a, 0x1e, 0x4e, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4e, - 0x66, 0x43, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, - 0x73, 0x18, 0x14, 0x20, 0x01, 0x28, 0x05, 0x48, 0x13, 0x52, 0x1e, 0x4e, 0x65, 0x74, 0x4e, 0x65, - 0x74, 0x66, 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4e, 0x66, 0x43, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, - 0x63, 0x6b, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x88, 0x01, 0x01, 0x12, 0x3d, 0x0a, 0x17, - 0x46, 0x73, 0x49, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x4d, 0x61, 0x78, 0x55, 0x73, 0x65, 0x72, - 0x57, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x18, 0x15, 0x20, 0x01, 0x28, 0x05, 0x48, 0x14, 0x52, - 0x17, 0x46, 0x73, 0x49, 0x6e, 0x6f, 0x74, 0x69, 0x66, 0x79, 0x4d, 0x61, 0x78, 0x55, 0x73, 0x65, - 0x72, 0x57, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x88, 0x01, 0x01, 0x12, 0x21, 0x0a, 0x09, 0x46, - 0x73, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x61, 0x78, 0x18, 0x16, 0x20, 0x01, 0x28, 0x05, 0x48, 0x15, - 0x52, 0x09, 0x46, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x61, 0x78, 0x88, 0x01, 0x01, 0x12, 0x23, - 0x0a, 0x0a, 0x46, 0x73, 0x41, 0x69, 0x6f, 0x4d, 0x61, 0x78, 0x4e, 0x72, 0x18, 0x17, 0x20, 0x01, - 0x28, 0x05, 0x48, 0x16, 0x52, 0x0a, 0x46, 0x73, 0x41, 0x69, 0x6f, 0x4d, 0x61, 0x78, 0x4e, 0x72, - 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08, 0x46, 0x73, 0x4e, 0x72, 0x4f, 0x70, 0x65, 0x6e, 0x18, - 0x18, 0x20, 0x01, 0x28, 0x05, 0x48, 0x17, 0x52, 0x08, 0x46, 0x73, 0x4e, 0x72, 0x4f, 0x70, 0x65, - 0x6e, 0x88, 0x01, 0x01, 0x12, 0x2f, 0x0a, 0x10, 0x4b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x54, 0x68, - 0x72, 0x65, 0x61, 0x64, 0x73, 0x4d, 0x61, 0x78, 0x18, 0x19, 0x20, 0x01, 0x28, 0x05, 0x48, 0x18, - 0x52, 0x10, 0x4b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4d, - 0x61, 0x78, 0x88, 0x01, 0x01, 0x12, 0x29, 0x0a, 0x0d, 0x56, 0x4d, 0x4d, 0x61, 0x78, 0x4d, 0x61, - 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x05, 0x48, 0x19, 0x52, 0x0d, - 0x56, 0x4d, 0x4d, 0x61, 0x78, 0x4d, 0x61, 0x70, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x88, 0x01, 0x01, - 0x12, 0x27, 0x0a, 0x0c, 0x56, 0x4d, 0x53, 0x77, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x65, 0x73, 0x73, - 0x18, 0x1b, 0x20, 0x01, 0x28, 0x05, 0x48, 0x1a, 0x52, 0x0c, 0x56, 0x4d, 0x53, 0x77, 0x61, 0x70, - 0x70, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12, 0x33, 0x0a, 0x12, 0x56, 0x4d, 0x56, - 0x66, 0x73, 0x43, 0x61, 0x63, 0x68, 0x65, 0x50, 0x72, 0x65, 0x73, 0x73, 0x75, 0x72, 0x65, 0x18, - 0x1c, 0x20, 0x01, 0x28, 0x05, 0x48, 0x1b, 0x52, 0x12, 0x56, 0x4d, 0x56, 0x66, 0x73, 0x43, 0x61, - 0x63, 0x68, 0x65, 0x50, 0x72, 0x65, 0x73, 0x73, 0x75, 0x72, 0x65, 0x88, 0x01, 0x01, 0x42, 0x13, - 0x0a, 0x11, 0x5f, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x53, 0x6f, 0x6d, 0x61, 0x78, 0x63, - 0x6f, 0x6e, 0x6e, 0x42, 0x1a, 0x0a, 0x18, 0x5f, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x4e, - 0x65, 0x74, 0x64, 0x65, 0x76, 0x4d, 0x61, 0x78, 0x42, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x42, - 0x15, 0x0a, 0x13, 0x5f, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x52, 0x6d, 0x65, 0x6d, 0x44, - 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x4e, 0x65, 0x74, 0x43, 0x6f, - 0x72, 0x65, 0x52, 0x6d, 0x65, 0x6d, 0x4d, 0x61, 0x78, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x4e, 0x65, - 0x74, 0x43, 0x6f, 0x72, 0x65, 0x57, 0x6d, 0x65, 0x6d, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, - 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x57, 0x6d, 0x65, 0x6d, - 0x4d, 0x61, 0x78, 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x4e, 0x65, 0x74, 0x43, 0x6f, 0x72, 0x65, 0x4f, - 0x70, 0x74, 0x6d, 0x65, 0x6d, 0x4d, 0x61, 0x78, 0x42, 0x1a, 0x0a, 0x18, 0x5f, 0x4e, 0x65, 0x74, - 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x4d, 0x61, 0x78, 0x53, 0x79, 0x6e, 0x42, 0x61, 0x63, - 0x6b, 0x6c, 0x6f, 0x67, 0x42, 0x19, 0x0a, 0x17, 0x5f, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, - 0x54, 0x63, 0x70, 0x4d, 0x61, 0x78, 0x54, 0x77, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x42, - 0x17, 0x0a, 0x15, 0x5f, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x46, 0x69, - 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x42, 0x1a, 0x0a, 0x18, 0x5f, 0x4e, 0x65, 0x74, - 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, - 0x54, 0x69, 0x6d, 0x65, 0x42, 0x1c, 0x0a, 0x1a, 0x5f, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, - 0x54, 0x63, 0x70, 0x4b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x50, 0x72, 0x6f, 0x62, - 0x65, 0x73, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, - 0x70, 0x6b, 0x65, 0x65, 0x70, 0x61, 0x6c, 0x69, 0x76, 0x65, 0x49, 0x6e, 0x74, 0x76, 0x6c, 0x42, - 0x14, 0x0a, 0x12, 0x5f, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x54, 0x63, 0x70, 0x54, 0x77, - 0x52, 0x65, 0x75, 0x73, 0x65, 0x42, 0x1a, 0x0a, 0x18, 0x5f, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, - 0x34, 0x49, 0x70, 0x4c, 0x6f, 0x63, 0x61, 0x6c, 0x50, 0x6f, 0x72, 0x74, 0x52, 0x61, 0x6e, 0x67, - 0x65, 0x42, 0x1f, 0x0a, 0x1d, 0x5f, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x4e, 0x65, 0x69, - 0x67, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, 0x63, 0x54, 0x68, 0x72, 0x65, 0x73, - 0x68, 0x31, 0x42, 0x1f, 0x0a, 0x1d, 0x5f, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x4e, 0x65, - 0x69, 0x67, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, 0x63, 0x54, 0x68, 0x72, 0x65, - 0x73, 0x68, 0x32, 0x42, 0x1f, 0x0a, 0x1d, 0x5f, 0x4e, 0x65, 0x74, 0x49, 0x70, 0x76, 0x34, 0x4e, - 0x65, 0x69, 0x67, 0x68, 0x44, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74, 0x47, 0x63, 0x54, 0x68, 0x72, - 0x65, 0x73, 0x68, 0x33, 0x42, 0x1d, 0x0a, 0x1b, 0x5f, 0x4e, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x66, - 0x69, 0x6c, 0x74, 0x65, 0x72, 0x4e, 0x66, 0x43, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, - 0x4d, 0x61, 0x78, 0x42, 0x21, 0x0a, 0x1f, 0x5f, 0x4e, 0x65, 0x74, 0x4e, 0x65, 0x74, 0x66, 0x69, - 0x6c, 0x74, 0x65, 0x72, 0x4e, 0x66, 0x43, 0x6f, 0x6e, 0x6e, 0x74, 0x72, 0x61, 0x63, 0x6b, 0x42, - 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x42, 0x1a, 0x0a, 0x18, 0x5f, 0x46, 0x73, 0x49, 0x6e, 0x6f, - 0x74, 0x69, 0x66, 0x79, 0x4d, 0x61, 0x78, 0x55, 0x73, 0x65, 0x72, 0x57, 0x61, 0x74, 0x63, 0x68, - 0x65, 0x73, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x46, 0x73, 0x46, 0x69, 0x6c, 0x65, 0x4d, 0x61, 0x78, - 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x46, 0x73, 0x41, 0x69, 0x6f, 0x4d, 0x61, 0x78, 0x4e, 0x72, 0x42, - 0x0b, 0x0a, 0x09, 0x5f, 0x46, 0x73, 0x4e, 0x72, 0x4f, 0x70, 0x65, 0x6e, 0x42, 0x13, 0x0a, 0x11, - 0x5f, 0x4b, 0x65, 0x72, 0x6e, 0x65, 0x6c, 0x54, 0x68, 0x72, 0x65, 0x61, 0x64, 0x73, 0x4d, 0x61, - 0x78, 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x56, 0x4d, 0x4d, 0x61, 0x78, 0x4d, 0x61, 0x70, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x42, 0x0f, 0x0a, 0x0d, 0x5f, 0x56, 0x4d, 0x53, 0x77, 0x61, 0x70, 0x70, 0x69, - 0x6e, 0x65, 0x73, 0x73, 0x42, 0x15, 0x0a, 0x13, 0x5f, 0x56, 0x4d, 0x56, 0x66, 0x73, 0x43, 0x61, - 0x63, 0x68, 0x65, 0x50, 0x72, 0x65, 0x73, 0x73, 0x75, 0x72, 0x65, 0x22, 0x79, 0x0a, 0x0c, 0x55, - 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1b, 0x0a, 0x06, 0x4e, - 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x06, 0x4e, - 0x6f, 0x46, 0x69, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12, 0x2d, 0x0a, 0x0f, 0x4d, 0x61, 0x78, 0x4c, - 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x48, 0x01, 0x52, 0x0f, 0x4d, 0x61, 0x78, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, 0x4d, 0x65, - 0x6d, 0x6f, 0x72, 0x79, 0x88, 0x01, 0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x4e, 0x6f, 0x46, 0x69, - 0x6c, 0x65, 0x42, 0x12, 0x0a, 0x10, 0x5f, 0x4d, 0x61, 0x78, 0x4c, 0x6f, 0x63, 0x6b, 0x65, 0x64, - 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x42, 0xd9, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, - 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, - 0x18, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x6f, 0x73, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, - 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, - 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 3) -var file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_goTypes = []any{ - (*CustomLinuxOSConfig)(nil), // 0: aksnodeconfig.v1.CustomLinuxOSConfig - (*SysctlConfig)(nil), // 1: aksnodeconfig.v1.SysctlConfig - (*UlimitConfig)(nil), // 2: aksnodeconfig.v1.UlimitConfig -} -var file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_depIdxs = []int32{ - 1, // 0: aksnodeconfig.v1.CustomLinuxOSConfig.sysctl_config:type_name -> aksnodeconfig.v1.SysctlConfig - 2, // 1: aksnodeconfig.v1.CustomLinuxOSConfig.ulimit_config:type_name -> aksnodeconfig.v1.UlimitConfig - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto != nil { - return - } - file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_msgTypes[1].OneofWrappers = []any{} - file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_msgTypes[2].OneofWrappers = []any{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 3, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_customlinuxosconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/customlinuxosconfig.proto b/pkg/proto/aksnodeconfig/v1/customlinuxosconfig.proto deleted file mode 100644 index bdb2a500892..00000000000 --- a/pkg/proto/aksnodeconfig/v1/customlinuxosconfig.proto +++ /dev/null @@ -1,63 +0,0 @@ -syntax = "proto3"; -package aksnodeconfig.v1; - -// Custom Linux Node OS Config -message CustomLinuxOSConfig { - // Sysctl settings for Linux agent nodes - SysctlConfig sysctl_config = 1; - - // Ulimit settings for Linux agent nodes - UlimitConfig ulimit_config = 2; - - // Enable or disable swap configuration - bool enable_swap_config = 3; - - // The size in MB of a swap file that will be created on each node - int32 swap_file_size = 4; - - // Valid values are "always", "defer", "defer+madvise", "madvise" and "never" - // If it's unset or set to empty string, it will use the default value in the VHD "always" - string transparent_hugepage_support = 5; - - // Valid values are "always", "madvise" and "never" - // If it's unset or set to empty string, it will use the default value in the VHD "madvise" - string transparent_defrag = 6; -} - -message SysctlConfig { - // using optional here to allow detecting if the field is set or not (explicit presence in proto3) - optional int32 NetCoreSomaxconn = 1; - optional int32 NetCoreNetdevMaxBacklog = 2; - optional int32 NetCoreRmemDefault = 3; - optional int32 NetCoreRmemMax = 4; - optional int32 NetCoreWmemDefault = 5; - optional int32 NetCoreWmemMax = 6; - optional int32 NetCoreOptmemMax = 7; - optional int32 NetIpv4TcpMaxSynBacklog = 8; - optional int32 NetIpv4TcpMaxTwBuckets = 9; - optional int32 NetIpv4TcpFinTimeout = 10; - optional int32 NetIpv4TcpKeepaliveTime = 11; - optional int32 NetIpv4TcpKeepaliveProbes = 12; - optional int32 NetIpv4TcpkeepaliveIntvl = 13; - optional bool NetIpv4TcpTwReuse = 14; - optional string NetIpv4IpLocalPortRange = 15; - optional int32 NetIpv4NeighDefaultGcThresh1 = 16; - optional int32 NetIpv4NeighDefaultGcThresh2 = 17; - optional int32 NetIpv4NeighDefaultGcThresh3 = 18; - optional int32 NetNetfilterNfConntrackMax = 19; - optional int32 NetNetfilterNfConntrackBuckets = 20; - optional int32 FsInotifyMaxUserWatches = 21; - optional int32 FsFileMax = 22; - optional int32 FsAioMaxNr = 23; - optional int32 FsNrOpen = 24; - optional int32 KernelThreadsMax = 25; - optional int32 VMMaxMapCount = 26; - optional int32 VMSwappiness = 27; - optional int32 VMVfsCachePressure = 28; -} - -message UlimitConfig { - // using optional here to allow detecting if the field is set or not (explicit presence in proto3) - optional string NoFile = 1; - optional string MaxLockedMemory = 2; -} \ No newline at end of file diff --git a/pkg/proto/aksnodeconfig/v1/customsearchdomainconfig.pb.go b/pkg/proto/aksnodeconfig/v1/customsearchdomainconfig.pb.go deleted file mode 100644 index 4acf4c12f6c..00000000000 --- a/pkg/proto/aksnodeconfig/v1/customsearchdomainconfig.pb.go +++ /dev/null @@ -1,167 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/customsearchdomainconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type CustomSearchDomainConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The name of the custom search domain. - DomainName string `protobuf:"bytes,1,opt,name=domain_name,json=domainName,proto3" json:"domain_name,omitempty"` - // The user name for the custom search domain. - RealmUser string `protobuf:"bytes,2,opt,name=realm_user,json=realmUser,proto3" json:"realm_user,omitempty"` - // The password for the custom search domain. - RealmPassword string `protobuf:"bytes,3,opt,name=realm_password,json=realmPassword,proto3" json:"realm_password,omitempty"` -} - -func (x *CustomSearchDomainConfig) Reset() { - *x = CustomSearchDomainConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *CustomSearchDomainConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CustomSearchDomainConfig) ProtoMessage() {} - -func (x *CustomSearchDomainConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use CustomSearchDomainConfig.ProtoReflect.Descriptor instead. -func (*CustomSearchDomainConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *CustomSearchDomainConfig) GetDomainName() string { - if x != nil { - return x.DomainName - } - return "" -} - -func (x *CustomSearchDomainConfig) GetRealmUser() string { - if x != nil { - return x.RealmUser - } - return "" -} - -func (x *CustomSearchDomainConfig) GetRealmPassword() string { - if x != nil { - return x.RealmPassword - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDesc = []byte{ - 0x0a, 0x39, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, - 0x74, 0x6f, 0x6d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, - 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0x81, 0x01, - 0x0a, 0x18, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x65, 0x61, 0x72, 0x63, 0x68, 0x44, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1f, 0x0a, 0x0b, 0x64, 0x6f, - 0x6d, 0x61, 0x69, 0x6e, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0a, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x72, - 0x65, 0x61, 0x6c, 0x6d, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x09, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x55, 0x73, 0x65, 0x72, 0x12, 0x25, 0x0a, 0x0e, 0x72, 0x65, - 0x61, 0x6c, 0x6d, 0x5f, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0d, 0x72, 0x65, 0x61, 0x6c, 0x6d, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, - 0x64, 0x42, 0xde, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x1d, 0x43, 0x75, 0x73, 0x74, - 0x6f, 0x6d, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, - 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, - 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_goTypes = []any{ - (*CustomSearchDomainConfig)(nil), // 0: aksnodeconfig.v1.CustomSearchDomainConfig -} -var file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_customsearchdomainconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/gpuconfig.pb.go b/pkg/proto/aksnodeconfig/v1/gpuconfig.pb.go deleted file mode 100644 index 87a0c37ea21..00000000000 --- a/pkg/proto/aksnodeconfig/v1/gpuconfig.pb.go +++ /dev/null @@ -1,181 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/gpuconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type GPUConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Specifies whether any nvidia configurations should be applied for GPU nodes. False when vm size is not a GPU node or driver install is skipped and no GPU configuration is needed. - // Making optional so that default will be set to IsNvidiaEnabledSku(vmSize) instead of false - EnableNvidia *bool `protobuf:"varint,1,opt,name=enable_nvidia,json=enableNvidia,proto3,oneof" json:"enable_nvidia,omitempty"` - // Specifies whether bootstrap process should install and configure the GPU driver when necessary. Configuration includes appropriate set up of components like the fabric manager where applicable. - ConfigGpuDriver bool `protobuf:"varint,2,opt,name=config_gpu_driver,json=configGpuDriver,proto3" json:"config_gpu_driver,omitempty"` - // Specifies whether special config is needed for MIG GPUs that use GPU dedicated VHDs and enable the device plugin (for all GPU dedicated VHDs) - GpuDevicePlugin bool `protobuf:"varint,3,opt,name=gpu_device_plugin,json=gpuDevicePlugin,proto3" json:"gpu_device_plugin,omitempty"` - // Represents the GPU instance profile. - GpuInstanceProfile string `protobuf:"bytes,4,opt,name=gpu_instance_profile,json=gpuInstanceProfile,proto3" json:"gpu_instance_profile,omitempty"` -} - -func (x *GPUConfig) Reset() { - *x = GPUConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *GPUConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GPUConfig) ProtoMessage() {} - -func (x *GPUConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GPUConfig.ProtoReflect.Descriptor instead. -func (*GPUConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *GPUConfig) GetEnableNvidia() bool { - if x != nil && x.EnableNvidia != nil { - return *x.EnableNvidia - } - return false -} - -func (x *GPUConfig) GetConfigGpuDriver() bool { - if x != nil { - return x.ConfigGpuDriver - } - return false -} - -func (x *GPUConfig) GetGpuDevicePlugin() bool { - if x != nil { - return x.GpuDevicePlugin - } - return false -} - -func (x *GPUConfig) GetGpuInstanceProfile() string { - if x != nil { - return x.GpuInstanceProfile - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_gpuconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDesc = []byte{ - 0x0a, 0x2a, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x70, 0x75, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, - 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xd1, - 0x01, 0x0a, 0x09, 0x47, 0x50, 0x55, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x28, 0x0a, 0x0d, - 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x76, 0x69, 0x64, 0x69, 0x61, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x48, 0x00, 0x52, 0x0c, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4e, 0x76, 0x69, - 0x64, 0x69, 0x61, 0x88, 0x01, 0x01, 0x12, 0x2a, 0x0a, 0x11, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x5f, 0x67, 0x70, 0x75, 0x5f, 0x64, 0x72, 0x69, 0x76, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x47, 0x70, 0x75, 0x44, 0x72, 0x69, 0x76, - 0x65, 0x72, 0x12, 0x2a, 0x0a, 0x11, 0x67, 0x70, 0x75, 0x5f, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, - 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0f, 0x67, - 0x70, 0x75, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x30, - 0x0a, 0x14, 0x67, 0x70, 0x75, 0x5f, 0x69, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x5f, 0x70, - 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x12, 0x67, 0x70, - 0x75, 0x49, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, - 0x42, 0x10, 0x0a, 0x0e, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6e, 0x76, 0x69, 0x64, - 0x69, 0x61, 0x42, 0xcf, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x0e, 0x47, 0x70, 0x75, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, - 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_goTypes = []any{ - (*GPUConfig)(nil), // 0: aksnodeconfig.v1.GPUConfig -} -var file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_gpuconfig_proto != nil { - return - } - file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_msgTypes[0].OneofWrappers = []any{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_gpuconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_gpuconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/helper.go b/pkg/proto/aksnodeconfig/v1/helper.go deleted file mode 100644 index 8d118c5d68e..00000000000 --- a/pkg/proto/aksnodeconfig/v1/helper.go +++ /dev/null @@ -1,156 +0,0 @@ -package aksnodeconfigv1 - -import ( - "bytes" - "encoding/base64" - "encoding/gob" - "encoding/json" - "fmt" - "log" - - "github.com/Azure/agentbaker/pkg/agent/datamodel" -) - -// AKSNodeConfigBuilder is a helper struct to build the AKSNodeConfig. -// It provides methods to apply configuration, get the AKSNodeConfig object, and validate the contract, etc. -type AKSNodeConfigBuilder struct { - // aksNodeConfig is the configuration object for the AKSNodeConfig. - aksNodeConfig *Configuration -} - -// Check and initialize each field if it is nil. -func initializeIfNil[T any](field **T) { - if *field == nil { - *field = new(T) - } -} - -// Ensure all objects are non-nil. Please add new objects here. -func ensureConfigsNonNil(nBC *Configuration) { - initializeIfNil(&nBC.KubeBinaryConfig) - initializeIfNil(&nBC.ApiServerConfig) - initializeIfNil(&nBC.AuthConfig) - initializeIfNil(&nBC.ClusterConfig) - initializeIfNil(&nBC.ClusterConfig.LoadBalancerConfig) - initializeIfNil(&nBC.ClusterConfig.ClusterNetworkConfig) - initializeIfNil(&nBC.GpuConfig) - initializeIfNil(&nBC.NetworkConfig) - initializeIfNil(&nBC.TlsBootstrappingConfig) - initializeIfNil(&nBC.KubeletConfig) - initializeIfNil(&nBC.RuncConfig) - initializeIfNil(&nBC.ContainerdConfig) - initializeIfNil(&nBC.TeleportConfig) - initializeIfNil(&nBC.CustomLinuxOsConfig) - initializeIfNil(&nBC.CustomLinuxOsConfig.SysctlConfig) - initializeIfNil(&nBC.CustomLinuxOsConfig.UlimitConfig) - initializeIfNil(&nBC.HttpProxyConfig) - initializeIfNil(&nBC.CustomCloudConfig) - initializeIfNil(&nBC.CustomSearchDomainConfig) -} - -// NewAKSNodeConfigBuilder creates a new instance of AKSNodeConfigBuilder and ensures all objects in aksNodeConfig are non-nil. -func NewAKSNodeConfigBuilder() *AKSNodeConfigBuilder { - config := Configuration{ - Version: contractVersion, - } - ensureConfigsNonNil(&config) - aksNodeConfig := &AKSNodeConfigBuilder{aksNodeConfig: &config} - return aksNodeConfig -} - -// ApplyConfiguration Applies the configuration to the aksNodeConfig object. -func (b *AKSNodeConfigBuilder) ApplyConfiguration(config *Configuration) { - if config == nil { - return - } - - // Use deep copy to avoid modifying the original object 'config'. - if err := deepCopy(config, b.aksNodeConfig); err != nil { - log.Printf("Failed to deep copy the configuration: %v", err) - ensureConfigsNonNil(b.aksNodeConfig) - } -} - -// GetAKSNodeConfig gets the aksNodeConfig object. -func (b *AKSNodeConfigBuilder) GetAKSNodeConfig() *Configuration { - return b.aksNodeConfig -} - -// Deep copy the source object to the destination object. -// Note that the existing value in the destination object will not be cleared -// if the source object doesn't have that field. -func deepCopy(src, dst interface{}) error { - if src == nil { - return nil - } - - var buf bytes.Buffer - if err := gob.NewEncoder(&buf).Encode(src); err != nil { - return err - } - return gob.NewDecoder(&buf).Decode(dst) -} - -// ValidateAKSNodeConfig validates the AKSNodeConfig. -// It returns an error if the contract is invalid. -// This function should be called after applying all configuration and before sending to downstream component. -func (b *AKSNodeConfigBuilder) ValidateAKSNodeConfig() error { - if err := b.validateRequiredFields(); err != nil { - return err - } - // Add more validations here if needed. - - return nil -} - -// GetNodeBootstrapping gets the NodeBootstrapping object. -func (b *AKSNodeConfigBuilder) GetNodeBootstrapping() (*datamodel.NodeBootstrapping, error) { - scriptlessCustomData, err := getScriptlessCustomDataContent(b.aksNodeConfig) - if err != nil { - return nil, err - } - - nodeBootstrapping := &datamodel.NodeBootstrapping{ - CSE: scriptlessBootstrapStatusCSE, - CustomData: scriptlessCustomData, - } - - return nodeBootstrapping, nil -} - -func getScriptlessCustomDataContent(config any) (string, error) { - nbcJSON, err := json.Marshal(config) - if err != nil { - return "", fmt.Errorf("failed to marshal nbc, error: %w", err) - } - encodedNBCJson := base64.StdEncoding.EncodeToString(nbcJSON) - customDataYAML := fmt.Sprintf(scriptlessCustomDataTemplate, encodedNBCJson) - return base64.StdEncoding.EncodeToString([]byte(customDataYAML)), nil -} - -func (b *AKSNodeConfigBuilder) validateRequiredFields() error { - if err := b.validateRequiredStringsNotEmpty(); err != nil { - return err - } - // Add more required fields validations here if needed. - // For example, check if a required string is of a specific format. - return nil -} - -func (b *AKSNodeConfigBuilder) validateRequiredStringsNotEmpty() error { - requiredStrings := map[string]string{ - "AuthConfig.SubscriptionId": b.aksNodeConfig.GetAuthConfig().GetSubscriptionId(), - "ClusterConfig.ResourceGroup": b.aksNodeConfig.GetClusterConfig().GetResourceGroup(), - "ClusterConfig.Location": b.aksNodeConfig.GetClusterConfig().GetLocation(), - "ClusterConfig.ClusterNetworkConfig.VnetName": b.aksNodeConfig.GetClusterConfig().GetClusterNetworkConfig().GetVnetName(), - "ClusterConfig.ClusterNetworkConfig.RouteTable": b.aksNodeConfig.GetClusterConfig().GetClusterNetworkConfig().GetRouteTable(), - "ApiServerConfig.ApiServerName": b.aksNodeConfig.ApiServerConfig.GetApiServerName(), - } - - for field, value := range requiredStrings { - if value == "" { - return fmt.Errorf("required field %v is missing", field) - } - } - return nil -} diff --git a/pkg/proto/aksnodeconfig/v1/helper_test.go b/pkg/proto/aksnodeconfig/v1/helper_test.go deleted file mode 100644 index 7cdbc2f0d2f..00000000000 --- a/pkg/proto/aksnodeconfig/v1/helper_test.go +++ /dev/null @@ -1,296 +0,0 @@ -package aksnodeconfigv1 - -import ( - "log" - "reflect" - "testing" - - "github.com/Azure/go-autorest/autorest/to" -) - -func TestNewAKSNodeConfigBuilder(t *testing.T) { - wantedResult := Configuration{ - Version: contractVersion, - KubeBinaryConfig: &KubeBinaryConfig{}, - ApiServerConfig: &ApiServerConfig{}, - AuthConfig: &AuthConfig{}, - ClusterConfig: &ClusterConfig{ - LoadBalancerConfig: &LoadBalancerConfig{}, - ClusterNetworkConfig: &ClusterNetworkConfig{}, - }, - GpuConfig: &GPUConfig{}, - NetworkConfig: &NetworkConfig{}, - TlsBootstrappingConfig: &TLSBootstrappingConfig{}, - KubeletConfig: &KubeletConfig{}, - RuncConfig: &RuncConfig{}, - ContainerdConfig: &ContainerdConfig{}, - TeleportConfig: &TeleportConfig{}, - CustomLinuxOsConfig: &CustomLinuxOSConfig{ - SysctlConfig: &SysctlConfig{}, - UlimitConfig: &UlimitConfig{}, - }, - HttpProxyConfig: &HTTPProxyConfig{}, - CustomCloudConfig: &CustomCloudConfig{}, - CustomSearchDomainConfig: &CustomSearchDomainConfig{}, - } - tests := []struct { - name string - want *Configuration - }{ - { - name: "Test with nil configuration", - want: &wantedResult, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - if got := NewAKSNodeConfigBuilder().aksNodeConfig; !reflect.DeepEqual(got, tt.want) { - t.Errorf("NewAKSNodeConfigConfiguration() = %v, want %v", got, tt.want) - } - }) - } -} - -func TestAKSNodeConfigBuilder_ApplyConfiguration(t *testing.T) { - type fields struct { - AKSNodeConfigConfiguration *Configuration - } - wantedResult := &Configuration{ - Version: contractVersion, - KubeBinaryConfig: &KubeBinaryConfig{}, - ApiServerConfig: &ApiServerConfig{}, - AuthConfig: &AuthConfig{}, - ClusterConfig: &ClusterConfig{ - LoadBalancerConfig: &LoadBalancerConfig{}, - ClusterNetworkConfig: &ClusterNetworkConfig{}, - }, - GpuConfig: &GPUConfig{}, - NetworkConfig: &NetworkConfig{}, - TlsBootstrappingConfig: &TLSBootstrappingConfig{}, - KubeletConfig: &KubeletConfig{}, - RuncConfig: &RuncConfig{}, - ContainerdConfig: &ContainerdConfig{}, - TeleportConfig: &TeleportConfig{}, - CustomLinuxOsConfig: &CustomLinuxOSConfig{ - SysctlConfig: &SysctlConfig{}, - UlimitConfig: &UlimitConfig{}, - }, - HttpProxyConfig: &HTTPProxyConfig{}, - CustomCloudConfig: &CustomCloudConfig{}, - CustomSearchDomainConfig: &CustomSearchDomainConfig{}, - } - tests := []struct { - name string - fields fields - want *Configuration - }{ - { - name: "Test with nil configuration", - fields: fields{ - AKSNodeConfigConfiguration: &Configuration{}, - }, - want: wantedResult, - }, - { - name: "Apply nil AuthConfig configuration and expect AuthConfig in AKSNodeConfigConfiguration to be non-nil", - fields: fields{ - AKSNodeConfigConfiguration: &Configuration{ - AuthConfig: nil, - }, - }, - want: wantedResult, - }, - { - name: "Apply some configurations and expect them to be applied", - fields: fields{ - AKSNodeConfigConfiguration: &Configuration{ - CustomCloudConfig: &CustomCloudConfig{ - CustomCloudEnvName: "some-cloud", - }, - LinuxAdminUsername: "testuser", - }, - }, - want: func() *Configuration { - tmpResult := NewAKSNodeConfigBuilder().aksNodeConfig - tmpResult.CustomCloudConfig.CustomCloudEnvName = "some-cloud" - tmpResult.LinuxAdminUsername = "testuser" - return tmpResult - }(), - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - builder := NewAKSNodeConfigBuilder() - builder.ApplyConfiguration(tt.fields.AKSNodeConfigConfiguration) - if got := builder.aksNodeConfig; !reflect.DeepEqual(got, tt.want) { - t.Errorf("ApplyConfiguration() = %v, want %v", got, tt.want) - } - }) - } -} - -func TestDeepCopy(t *testing.T) { - type Teststruct struct { - A string - B *int - C bool - } - type args struct { - src *Teststruct - dst *Teststruct - } - tests := []struct { - name string - args args - want *Teststruct - isChangeDst bool - }{ - { - name: "Test with empty src", - args: args{ - src: &Teststruct{}, - dst: &Teststruct{}, - }, - want: &Teststruct{}, - isChangeDst: false, - }, - { - name: "Test with non-empty src", - args: args{ - src: &Teststruct{ - A: "some-string", - B: to.IntPtr(123), - C: true, - }, - dst: &Teststruct{}, - }, - want: &Teststruct{ - A: "some-string", - B: to.IntPtr(123), - C: true, - }, - isChangeDst: false, - }, - { - name: "Test with dst which has some existing values. Expect them to be overwritten", - args: args{ - src: &Teststruct{ - A: "some-string", - B: to.IntPtr(123), - }, - dst: &Teststruct{ - A: "some-other-string", - B: to.IntPtr(456), - C: false, - }, - }, - want: &Teststruct{ - A: "some-string", - B: to.IntPtr(123), - C: false, - }, - isChangeDst: false, - }, - { - name: "After deepCopy, changes in dst should not affect src", - args: args{ - src: &Teststruct{ - A: "some-string", - B: to.IntPtr(123), - }, - dst: &Teststruct{}, - }, - want: &Teststruct{ - A: "some-string", - B: to.IntPtr(123), - }, - isChangeDst: true, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - if err := deepCopy(tt.args.src, tt.args.dst); err != nil { - log.Printf("Failed to deep copy the configuration: %v", err) - } - log.Printf("dst = %v, src %v", tt.args.dst, tt.args.src) - if got := tt.args.dst; !reflect.DeepEqual(got, tt.want) { - t.Errorf("got = %v, want %v", got, tt.want) - } - if tt.isChangeDst { - tt.args.dst.A = "some-other-string" - tt.args.dst.B = to.IntPtr(456) - if got := tt.args.src; !reflect.DeepEqual(got, tt.want) { - t.Errorf("src = %v, want %v", got, tt.want) - } - } - }) - } -} - -func TestAKSNodeConfigBuilder_validateRequiredFields(t *testing.T) { - type fields struct { - nodeBootstrapConfig *Configuration - } - tests := []struct { - name string - fields fields - wantErr bool - }{ - { - name: "Test with nil AuthConfig and expect error", - fields: fields{ - nodeBootstrapConfig: &Configuration{ - AuthConfig: nil, - }, - }, - wantErr: true, - }, - { - name: "Test with empty SubscriptionId and expect error", - fields: fields{ - nodeBootstrapConfig: &Configuration{ - AuthConfig: &AuthConfig{ - SubscriptionId: "", - }, - }, - }, - wantErr: true, - }, - { - name: "Test with required fields and expect no error", - fields: fields{ - nodeBootstrapConfig: &Configuration{ - AuthConfig: &AuthConfig{ - SubscriptionId: "some-subscription-id", - TenantId: "some-tenant-id", - }, - ClusterConfig: &ClusterConfig{ - ResourceGroup: "some-resource-group", - Location: "some-location", - ClusterNetworkConfig: &ClusterNetworkConfig{ - RouteTable: "some-route-table", - VnetName: "some-vnet-name", - }, - }, - CustomLinuxOsConfig: &CustomLinuxOSConfig{ - SwapFileSize: 2048, - }, - ApiServerConfig: &ApiServerConfig{ - ApiServerName: "some-api-server-name", - }, - }, - }, - wantErr: false, - }, - } - for _, tt := range tests { - t.Run(tt.name, func(t *testing.T) { - aksNodeConfigBuilder := NewAKSNodeConfigBuilder() - aksNodeConfigBuilder.ApplyConfiguration(tt.fields.nodeBootstrapConfig) - err := aksNodeConfigBuilder.validateRequiredFields() - if (err != nil) != tt.wantErr { - t.Errorf("aksNodeConfigBuilder.validateRequiredFields() error = %v, wantErr %v", err, tt.wantErr) - } - }) - } -} diff --git a/pkg/proto/aksnodeconfig/v1/httpproxyconfig.pb.go b/pkg/proto/aksnodeconfig/v1/httpproxyconfig.pb.go deleted file mode 100644 index d45db9b2e77..00000000000 --- a/pkg/proto/aksnodeconfig/v1/httpproxyconfig.pb.go +++ /dev/null @@ -1,177 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/httpproxyconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type HTTPProxyConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Proxy endpoint/URL using HTTP through which the traffic should be routed for making HTTP connections outside the cluster - HttpProxy string `protobuf:"bytes,1,opt,name=http_proxy,json=httpProxy,proto3" json:"http_proxy,omitempty"` - // Proxy endpoint/URL using HTTPS through which the traffic should be routed for making HTTPS connections outside the cluster - HttpsProxy string `protobuf:"bytes,2,opt,name=https_proxy,json=httpsProxy,proto3" json:"https_proxy,omitempty"` - // A list of entries including IPs, domains, or other network CIDRs that should not be accessed through the proxy - NoProxyEntries []string `protobuf:"bytes,3,rep,name=no_proxy_entries,json=noProxyEntries,proto3" json:"no_proxy_entries,omitempty"` - // Custom CA certificate that should be trusted by the proxy - ProxyTrustedCa string `protobuf:"bytes,4,opt,name=proxy_trusted_ca,json=proxyTrustedCa,proto3" json:"proxy_trusted_ca,omitempty"` -} - -func (x *HTTPProxyConfig) Reset() { - *x = HTTPProxyConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *HTTPProxyConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*HTTPProxyConfig) ProtoMessage() {} - -func (x *HTTPProxyConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use HTTPProxyConfig.ProtoReflect.Descriptor instead. -func (*HTTPProxyConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *HTTPProxyConfig) GetHttpProxy() string { - if x != nil { - return x.HttpProxy - } - return "" -} - -func (x *HTTPProxyConfig) GetHttpsProxy() string { - if x != nil { - return x.HttpsProxy - } - return "" -} - -func (x *HTTPProxyConfig) GetNoProxyEntries() []string { - if x != nil { - return x.NoProxyEntries - } - return nil -} - -func (x *HTTPProxyConfig) GetProxyTrustedCa() string { - if x != nil { - return x.ProxyTrustedCa - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDesc = []byte{ - 0x0a, 0x30, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x68, 0x74, 0x74, - 0x70, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x2e, 0x76, 0x31, 0x22, 0xa5, 0x01, 0x0a, 0x0f, 0x48, 0x54, 0x54, 0x50, 0x50, 0x72, 0x6f, - 0x78, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x1d, 0x0a, 0x0a, 0x68, 0x74, 0x74, 0x70, - 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x68, 0x74, - 0x74, 0x70, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x74, 0x74, 0x70, 0x73, - 0x5f, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x68, 0x74, - 0x74, 0x70, 0x73, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x12, 0x28, 0x0a, 0x10, 0x6e, 0x6f, 0x5f, 0x70, - 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x0e, 0x6e, 0x6f, 0x50, 0x72, 0x6f, 0x78, 0x79, 0x45, 0x6e, 0x74, 0x72, 0x69, - 0x65, 0x73, 0x12, 0x28, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x78, 0x79, 0x5f, 0x74, 0x72, 0x75, 0x73, - 0x74, 0x65, 0x64, 0x5f, 0x63, 0x61, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x70, 0x72, - 0x6f, 0x78, 0x79, 0x54, 0x72, 0x75, 0x73, 0x74, 0x65, 0x64, 0x43, 0x61, 0x42, 0xd5, 0x01, 0x0a, - 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x14, 0x48, 0x74, 0x74, 0x70, 0x70, 0x72, 0x6f, 0x78, 0x79, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, - 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, - 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, - 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, - 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_goTypes = []any{ - (*HTTPProxyConfig)(nil), // 0: aksnodeconfig.v1.HTTPProxyConfig -} -var file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_httpproxyconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/imdsrestrictionconfig.pb.go b/pkg/proto/aksnodeconfig/v1/imdsrestrictionconfig.pb.go deleted file mode 100644 index 5c9caae0b6c..00000000000 --- a/pkg/proto/aksnodeconfig/v1/imdsrestrictionconfig.pb.go +++ /dev/null @@ -1,160 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/imdsrestrictionconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type IMDSRestrictionConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Enable IMDS restriction for the node. - EnableImdsRestriction bool `protobuf:"varint,1,opt,name=enable_imds_restriction,json=enableImdsRestriction,proto3" json:"enable_imds_restriction,omitempty"` - // Insert IMDS restriction rule to mangle table. - InsertImdsRestrictionRuleToMangleTable bool `protobuf:"varint,2,opt,name=insert_imds_restriction_rule_to_mangle_table,json=insertImdsRestrictionRuleToMangleTable,proto3" json:"insert_imds_restriction_rule_to_mangle_table,omitempty"` -} - -func (x *IMDSRestrictionConfig) Reset() { - *x = IMDSRestrictionConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *IMDSRestrictionConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*IMDSRestrictionConfig) ProtoMessage() {} - -func (x *IMDSRestrictionConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use IMDSRestrictionConfig.ProtoReflect.Descriptor instead. -func (*IMDSRestrictionConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *IMDSRestrictionConfig) GetEnableImdsRestriction() bool { - if x != nil { - return x.EnableImdsRestriction - } - return false -} - -func (x *IMDSRestrictionConfig) GetInsertImdsRestrictionRuleToMangleTable() bool { - if x != nil { - return x.InsertImdsRestrictionRuleToMangleTable - } - return false -} - -var File_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDesc = []byte{ - 0x0a, 0x36, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x6d, 0x64, - 0x73, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xad, 0x01, 0x0a, 0x15, 0x49, - 0x4d, 0x44, 0x53, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x36, 0x0a, 0x17, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x69, - 0x6d, 0x64, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x15, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x49, 0x6d, 0x64, - 0x73, 0x52, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5c, 0x0a, 0x2c, - 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x5f, 0x69, 0x6d, 0x64, 0x73, 0x5f, 0x72, 0x65, 0x73, 0x74, - 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x75, 0x6c, 0x65, 0x5f, 0x74, 0x6f, 0x5f, - 0x6d, 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x5f, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x26, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x49, 0x6d, 0x64, 0x73, 0x52, 0x65, - 0x73, 0x74, 0x72, 0x69, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x75, 0x6c, 0x65, 0x54, 0x6f, 0x4d, - 0x61, 0x6e, 0x67, 0x6c, 0x65, 0x54, 0x61, 0x62, 0x6c, 0x65, 0x42, 0xdb, 0x01, 0x0a, 0x14, 0x63, - 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x76, 0x31, 0x42, 0x1a, 0x49, 0x6d, 0x64, 0x73, 0x72, 0x65, 0x73, 0x74, 0x72, 0x69, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, - 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, - 0x75, 0x72, 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, - 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, - 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_goTypes = []any{ - (*IMDSRestrictionConfig)(nil), // 0: aksnodeconfig.v1.IMDSRestrictionConfig -} -var file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_imdsrestrictionconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/kubebinaryconfig.pb.go b/pkg/proto/aksnodeconfig/v1/kubebinaryconfig.pb.go deleted file mode 100644 index 6e2f89bfe13..00000000000 --- a/pkg/proto/aksnodeconfig/v1/kubebinaryconfig.pb.go +++ /dev/null @@ -1,196 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/kubebinaryconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -// Kube Binary Config -type KubeBinaryConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // default kube binary url - KubeBinaryUrl string `protobuf:"bytes,1,opt,name=kube_binary_url,json=kubeBinaryUrl,proto3" json:"kube_binary_url,omitempty"` - // user's custom kube binary url - CustomKubeBinaryUrl string `protobuf:"bytes,2,opt,name=custom_kube_binary_url,json=customKubeBinaryUrl,proto3" json:"custom_kube_binary_url,omitempty"` - // privately cached kube binary url - PrivateKubeBinaryUrl string `protobuf:"bytes,3,opt,name=private_kube_binary_url,json=privateKubeBinaryUrl,proto3" json:"private_kube_binary_url,omitempty"` - // full path to the "pause" image. Used for --pod-infra-container-image. - PodInfraContainerImageUrl string `protobuf:"bytes,4,opt,name=pod_infra_container_image_url,json=podInfraContainerImageUrl,proto3" json:"pod_infra_container_image_url,omitempty"` - // Full path to the Linux credential provider (tar.gz) to use. - LinuxCredentialProviderUrl string `protobuf:"bytes,5,opt,name=linux_credential_provider_url,json=linuxCredentialProviderUrl,proto3" json:"linux_credential_provider_url,omitempty"` -} - -func (x *KubeBinaryConfig) Reset() { - *x = KubeBinaryConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *KubeBinaryConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KubeBinaryConfig) ProtoMessage() {} - -func (x *KubeBinaryConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KubeBinaryConfig.ProtoReflect.Descriptor instead. -func (*KubeBinaryConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *KubeBinaryConfig) GetKubeBinaryUrl() string { - if x != nil { - return x.KubeBinaryUrl - } - return "" -} - -func (x *KubeBinaryConfig) GetCustomKubeBinaryUrl() string { - if x != nil { - return x.CustomKubeBinaryUrl - } - return "" -} - -func (x *KubeBinaryConfig) GetPrivateKubeBinaryUrl() string { - if x != nil { - return x.PrivateKubeBinaryUrl - } - return "" -} - -func (x *KubeBinaryConfig) GetPodInfraContainerImageUrl() string { - if x != nil { - return x.PodInfraContainerImageUrl - } - return "" -} - -func (x *KubeBinaryConfig) GetLinuxCredentialProviderUrl() string { - if x != nil { - return x.LinuxCredentialProviderUrl - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDesc = []byte{ - 0x0a, 0x31, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x75, 0x62, - 0x65, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xab, 0x02, 0x0a, 0x10, 0x4b, 0x75, 0x62, 0x65, 0x42, 0x69, - 0x6e, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x26, 0x0a, 0x0f, 0x6b, 0x75, - 0x62, 0x65, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6b, 0x75, 0x62, 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x55, - 0x72, 0x6c, 0x12, 0x33, 0x0a, 0x16, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x6b, 0x75, 0x62, - 0x65, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x13, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x4b, 0x75, 0x62, 0x65, 0x42, 0x69, - 0x6e, 0x61, 0x72, 0x79, 0x55, 0x72, 0x6c, 0x12, 0x35, 0x0a, 0x17, 0x70, 0x72, 0x69, 0x76, 0x61, - 0x74, 0x65, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x5f, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x5f, 0x75, - 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x14, 0x70, 0x72, 0x69, 0x76, 0x61, 0x74, - 0x65, 0x4b, 0x75, 0x62, 0x65, 0x42, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x55, 0x72, 0x6c, 0x12, 0x40, - 0x0a, 0x1d, 0x70, 0x6f, 0x64, 0x5f, 0x69, 0x6e, 0x66, 0x72, 0x61, 0x5f, 0x63, 0x6f, 0x6e, 0x74, - 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x75, 0x72, 0x6c, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x19, 0x70, 0x6f, 0x64, 0x49, 0x6e, 0x66, 0x72, 0x61, 0x43, - 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, - 0x12, 0x41, 0x0a, 0x1d, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x5f, 0x63, 0x72, 0x65, 0x64, 0x65, 0x6e, - 0x74, 0x69, 0x61, 0x6c, 0x5f, 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x5f, 0x75, 0x72, - 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x1a, 0x6c, 0x69, 0x6e, 0x75, 0x78, 0x43, 0x72, - 0x65, 0x64, 0x65, 0x6e, 0x74, 0x69, 0x61, 0x6c, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, - 0x55, 0x72, 0x6c, 0x42, 0xd6, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x15, 0x4b, 0x75, - 0x62, 0x65, 0x62, 0x69, 0x6e, 0x61, 0x72, 0x79, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, - 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, - 0x6d, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, - 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, - 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, - 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, - 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, - 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_goTypes = []any{ - (*KubeBinaryConfig)(nil), // 0: aksnodeconfig.v1.KubeBinaryConfig -} -var file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_kubebinaryconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/kubeletconfig.pb.go b/pkg/proto/aksnodeconfig/v1/kubeletconfig.pb.go deleted file mode 100644 index a1420353704..00000000000 --- a/pkg/proto/aksnodeconfig/v1/kubeletconfig.pb.go +++ /dev/null @@ -1,391 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/kubeletconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type KubeletDisk int32 - -const ( - KubeletDisk_KD_UNSPECIFIED KubeletDisk = 0 - KubeletDisk_OS_DISK KubeletDisk = 1 - KubeletDisk_TEMP_DISK KubeletDisk = 2 -) - -// Enum value maps for KubeletDisk. -var ( - KubeletDisk_name = map[int32]string{ - 0: "KD_UNSPECIFIED", - 1: "OS_DISK", - 2: "TEMP_DISK", - } - KubeletDisk_value = map[string]int32{ - "KD_UNSPECIFIED": 0, - "OS_DISK": 1, - "TEMP_DISK": 2, - } -) - -func (x KubeletDisk) Enum() *KubeletDisk { - p := new(KubeletDisk) - *p = x - return p -} - -func (x KubeletDisk) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (KubeletDisk) Descriptor() protoreflect.EnumDescriptor { - return file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_enumTypes[0].Descriptor() -} - -func (KubeletDisk) Type() protoreflect.EnumType { - return &file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_enumTypes[0] -} - -func (x KubeletDisk) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use KubeletDisk.Descriptor instead. -func (KubeletDisk) EnumDescriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDescGZIP(), []int{0} -} - -type KubeletConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // A list of taints to apply to the node. - Taints []*Taint `protobuf:"bytes,1,rep,name=taints,proto3" json:"taints,omitempty"` - // A map of kubelet flags to their values. - KubeletFlags map[string]string `protobuf:"bytes,2,rep,name=kubelet_flags,json=kubeletFlags,proto3" json:"kubelet_flags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // A map of node labels to their values. - KubeletNodeLabels map[string]string `protobuf:"bytes,3,rep,name=kubelet_node_labels,json=kubeletNodeLabels,proto3" json:"kubelet_node_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - // A list of taints to apply to the node at startup. - StartupTaints []*Taint `protobuf:"bytes,4,rep,name=startup_taints,json=startupTaints,proto3" json:"startup_taints,omitempty"` - // The type of disk to use for the kubelet. - KubeletDiskType KubeletDisk `protobuf:"varint,5,opt,name=kubelet_disk_type,json=kubeletDiskType,proto3,enum=aksnodeconfig.v1.KubeletDisk" json:"kubelet_disk_type,omitempty"` - // Whether kubelet config should be enabled. - EnableKubeletConfigFile bool `protobuf:"varint,6,opt,name=enable_kubelet_config_file,json=enableKubeletConfigFile,proto3" json:"enable_kubelet_config_file,omitempty"` - // Base64 encoded content of the kubelet config file. - KubeletConfigFileContent string `protobuf:"bytes,7,opt,name=kubelet_config_file_content,json=kubeletConfigFileContent,proto3" json:"kubelet_config_file_content,omitempty"` - // Kubelet client private key - KubeletClientKey string `protobuf:"bytes,8,opt,name=kubelet_client_key,json=kubeletClientKey,proto3" json:"kubelet_client_key,omitempty"` - // The content of the kubelet client certificate file. - KubeletClientCertContent string `protobuf:"bytes,9,opt,name=kubelet_client_cert_content,json=kubeletClientCertContent,proto3" json:"kubelet_client_cert_content,omitempty"` - // The path used to mount docker images, emptyDir volumes, and kubelet data. - ContainerDataDir string `protobuf:"bytes,10,opt,name=container_data_dir,json=containerDataDir,proto3" json:"container_data_dir,omitempty"` -} - -func (x *KubeletConfig) Reset() { - *x = KubeletConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *KubeletConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*KubeletConfig) ProtoMessage() {} - -func (x *KubeletConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use KubeletConfig.ProtoReflect.Descriptor instead. -func (*KubeletConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *KubeletConfig) GetTaints() []*Taint { - if x != nil { - return x.Taints - } - return nil -} - -func (x *KubeletConfig) GetKubeletFlags() map[string]string { - if x != nil { - return x.KubeletFlags - } - return nil -} - -func (x *KubeletConfig) GetKubeletNodeLabels() map[string]string { - if x != nil { - return x.KubeletNodeLabels - } - return nil -} - -func (x *KubeletConfig) GetStartupTaints() []*Taint { - if x != nil { - return x.StartupTaints - } - return nil -} - -func (x *KubeletConfig) GetKubeletDiskType() KubeletDisk { - if x != nil { - return x.KubeletDiskType - } - return KubeletDisk_KD_UNSPECIFIED -} - -func (x *KubeletConfig) GetEnableKubeletConfigFile() bool { - if x != nil { - return x.EnableKubeletConfigFile - } - return false -} - -func (x *KubeletConfig) GetKubeletConfigFileContent() string { - if x != nil { - return x.KubeletConfigFileContent - } - return "" -} - -func (x *KubeletConfig) GetKubeletClientKey() string { - if x != nil { - return x.KubeletClientKey - } - return "" -} - -func (x *KubeletConfig) GetKubeletClientCertContent() string { - if x != nil { - return x.KubeletClientCertContent - } - return "" -} - -func (x *KubeletConfig) GetContainerDataDir() string { - if x != nil { - return x.ContainerDataDir - } - return "" -} - -type Taint struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` - Effect string `protobuf:"bytes,2,opt,name=effect,proto3" json:"effect,omitempty"` -} - -func (x *Taint) Reset() { - *x = Taint{} - mi := &file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *Taint) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Taint) ProtoMessage() {} - -func (x *Taint) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_msgTypes[1] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Taint.ProtoReflect.Descriptor instead. -func (*Taint) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDescGZIP(), []int{1} -} - -func (x *Taint) GetKey() string { - if x != nil { - return x.Key - } - return "" -} - -func (x *Taint) GetEffect() string { - if x != nil { - return x.Effect - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDesc = []byte{ - 0x0a, 0x2e, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6b, 0x75, 0x62, - 0x65, 0x6c, 0x65, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x76, 0x31, 0x22, 0xa9, 0x06, 0x0a, 0x0d, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2f, 0x0a, 0x06, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x61, 0x69, 0x6e, 0x74, 0x52, 0x06, 0x74, - 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x56, 0x0a, 0x0d, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, - 0x5f, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x61, - 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4b, 0x75, - 0x62, 0x65, 0x6c, 0x65, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, - 0x0c, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x66, 0x0a, - 0x13, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x61, - 0x62, 0x65, 0x6c, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x61, 0x6b, 0x73, - 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, - 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x4b, 0x75, 0x62, 0x65, - 0x6c, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x11, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x4c, - 0x61, 0x62, 0x65, 0x6c, 0x73, 0x12, 0x3e, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x72, 0x74, 0x75, 0x70, - 0x5f, 0x74, 0x61, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, - 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, - 0x2e, 0x54, 0x61, 0x69, 0x6e, 0x74, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x72, 0x74, 0x75, 0x70, 0x54, - 0x61, 0x69, 0x6e, 0x74, 0x73, 0x12, 0x49, 0x0a, 0x11, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, - 0x5f, 0x64, 0x69, 0x73, 0x6b, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x1d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x76, 0x31, 0x2e, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x52, - 0x0f, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x44, 0x69, 0x73, 0x6b, 0x54, 0x79, 0x70, 0x65, - 0x12, 0x3b, 0x0a, 0x1a, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x6b, 0x75, 0x62, 0x65, 0x6c, - 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x18, 0x06, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x17, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x4b, 0x75, 0x62, 0x65, - 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x3d, 0x0a, - 0x1b, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, - 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x18, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, - 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x6b, - 0x65, 0x79, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, - 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x4b, 0x65, 0x79, 0x12, 0x3d, 0x0a, 0x1b, 0x6b, 0x75, - 0x62, 0x65, 0x6c, 0x65, 0x74, 0x5f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x65, 0x72, - 0x74, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x18, 0x6b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x43, 0x65, - 0x72, 0x74, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x2c, 0x0a, 0x12, 0x63, 0x6f, 0x6e, - 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x5f, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x64, 0x69, 0x72, 0x18, - 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, - 0x44, 0x61, 0x74, 0x61, 0x44, 0x69, 0x72, 0x1a, 0x3f, 0x0a, 0x11, 0x4b, 0x75, 0x62, 0x65, 0x6c, - 0x65, 0x74, 0x46, 0x6c, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, - 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, - 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, 0x44, 0x0a, 0x16, 0x4b, 0x75, 0x62, 0x65, - 0x6c, 0x65, 0x74, 0x4e, 0x6f, 0x64, 0x65, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x73, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x31, - 0x0a, 0x05, 0x54, 0x61, 0x69, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x66, 0x66, - 0x65, 0x63, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x65, 0x66, 0x66, 0x65, 0x63, - 0x74, 0x2a, 0x3d, 0x0a, 0x0b, 0x4b, 0x75, 0x62, 0x65, 0x6c, 0x65, 0x74, 0x44, 0x69, 0x73, 0x6b, - 0x12, 0x12, 0x0a, 0x0e, 0x4b, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, - 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x53, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x10, - 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x54, 0x45, 0x4d, 0x50, 0x5f, 0x44, 0x49, 0x53, 0x4b, 0x10, 0x02, - 0x42, 0xd3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x4b, 0x75, 0x62, 0x65, 0x6c, - 0x65, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, 0x72, - 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, - 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, - 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 4) -var file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_goTypes = []any{ - (KubeletDisk)(0), // 0: aksnodeconfig.v1.KubeletDisk - (*KubeletConfig)(nil), // 1: aksnodeconfig.v1.KubeletConfig - (*Taint)(nil), // 2: aksnodeconfig.v1.Taint - nil, // 3: aksnodeconfig.v1.KubeletConfig.KubeletFlagsEntry - nil, // 4: aksnodeconfig.v1.KubeletConfig.KubeletNodeLabelsEntry -} -var file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_depIdxs = []int32{ - 2, // 0: aksnodeconfig.v1.KubeletConfig.taints:type_name -> aksnodeconfig.v1.Taint - 3, // 1: aksnodeconfig.v1.KubeletConfig.kubelet_flags:type_name -> aksnodeconfig.v1.KubeletConfig.KubeletFlagsEntry - 4, // 2: aksnodeconfig.v1.KubeletConfig.kubelet_node_labels:type_name -> aksnodeconfig.v1.KubeletConfig.KubeletNodeLabelsEntry - 2, // 3: aksnodeconfig.v1.KubeletConfig.startup_taints:type_name -> aksnodeconfig.v1.Taint - 0, // 4: aksnodeconfig.v1.KubeletConfig.kubelet_disk_type:type_name -> aksnodeconfig.v1.KubeletDisk - 5, // [5:5] is the sub-list for method output_type - 5, // [5:5] is the sub-list for method input_type - 5, // [5:5] is the sub-list for extension type_name - 5, // [5:5] is the sub-list for extension extendee - 0, // [0:5] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDesc, - NumEnums: 1, - NumMessages: 4, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_depIdxs, - EnumInfos: file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_enumTypes, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_kubeletconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/networkconfig.pb.go b/pkg/proto/aksnodeconfig/v1/networkconfig.pb.go deleted file mode 100644 index d7cd2fbc070..00000000000 --- a/pkg/proto/aksnodeconfig/v1/networkconfig.pb.go +++ /dev/null @@ -1,304 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/networkconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type NetworkPlugin int32 - -const ( - NetworkPlugin_NP_UNSPECIFIED NetworkPlugin = 0 - NetworkPlugin_NP_NONE NetworkPlugin = 1 - NetworkPlugin_NP_AZURE NetworkPlugin = 2 - NetworkPlugin_NP_KUBENET NetworkPlugin = 3 -) - -// Enum value maps for NetworkPlugin. -var ( - NetworkPlugin_name = map[int32]string{ - 0: "NP_UNSPECIFIED", - 1: "NP_NONE", - 2: "NP_AZURE", - 3: "NP_KUBENET", - } - NetworkPlugin_value = map[string]int32{ - "NP_UNSPECIFIED": 0, - "NP_NONE": 1, - "NP_AZURE": 2, - "NP_KUBENET": 3, - } -) - -func (x NetworkPlugin) Enum() *NetworkPlugin { - p := new(NetworkPlugin) - *p = x - return p -} - -func (x NetworkPlugin) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (NetworkPlugin) Descriptor() protoreflect.EnumDescriptor { - return file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_enumTypes[0].Descriptor() -} - -func (NetworkPlugin) Type() protoreflect.EnumType { - return &file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_enumTypes[0] -} - -func (x NetworkPlugin) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use NetworkPlugin.Descriptor instead. -func (NetworkPlugin) EnumDescriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDescGZIP(), []int{0} -} - -type NetworkPolicy int32 - -const ( - NetworkPolicy_NPO_UNSPECIFIED NetworkPolicy = 0 - NetworkPolicy_NPO_NONE NetworkPolicy = 1 - NetworkPolicy_NPO_AZURE NetworkPolicy = 2 - NetworkPolicy_NPO_CALICO NetworkPolicy = 3 -) - -// Enum value maps for NetworkPolicy. -var ( - NetworkPolicy_name = map[int32]string{ - 0: "NPO_UNSPECIFIED", - 1: "NPO_NONE", - 2: "NPO_AZURE", - 3: "NPO_CALICO", - } - NetworkPolicy_value = map[string]int32{ - "NPO_UNSPECIFIED": 0, - "NPO_NONE": 1, - "NPO_AZURE": 2, - "NPO_CALICO": 3, - } -) - -func (x NetworkPolicy) Enum() *NetworkPolicy { - p := new(NetworkPolicy) - *p = x - return p -} - -func (x NetworkPolicy) String() string { - return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) -} - -func (NetworkPolicy) Descriptor() protoreflect.EnumDescriptor { - return file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_enumTypes[1].Descriptor() -} - -func (NetworkPolicy) Type() protoreflect.EnumType { - return &file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_enumTypes[1] -} - -func (x NetworkPolicy) Number() protoreflect.EnumNumber { - return protoreflect.EnumNumber(x) -} - -// Deprecated: Use NetworkPolicy.Descriptor instead. -func (NetworkPolicy) EnumDescriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDescGZIP(), []int{1} -} - -type NetworkConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Network plugin to be used by the cluster. Options are NONE, AZURE, KUBENET. - NetworkPlugin NetworkPlugin `protobuf:"varint,1,opt,name=network_plugin,json=networkPlugin,proto3,enum=aksnodeconfig.v1.NetworkPlugin" json:"network_plugin,omitempty"` - // Network policy to be used by the cluster. - // This is still needed to compute ENSURE_NO_DUPE_PROMISCUOUS_BRIDGE. - // Other than that, it is not used by others. See the discussions here https://github.com/Azure/AgentBaker/pull/4241#discussion_r1554283228 - NetworkPolicy NetworkPolicy `protobuf:"varint,2,opt,name=network_policy,json=networkPolicy,proto3,enum=aksnodeconfig.v1.NetworkPolicy" json:"network_policy,omitempty"` - // URL to the vnet cni plugins tarball. - VnetCniPluginsUrl string `protobuf:"bytes,3,opt,name=vnet_cni_plugins_url,json=vnetCniPluginsUrl,proto3" json:"vnet_cni_plugins_url,omitempty"` - // URL to the cni plugins tarball. - CniPluginsUrl string `protobuf:"bytes,4,opt,name=cni_plugins_url,json=cniPluginsUrl,proto3" json:"cni_plugins_url,omitempty"` -} - -func (x *NetworkConfig) Reset() { - *x = NetworkConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *NetworkConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*NetworkConfig) ProtoMessage() {} - -func (x *NetworkConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use NetworkConfig.ProtoReflect.Descriptor instead. -func (*NetworkConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *NetworkConfig) GetNetworkPlugin() NetworkPlugin { - if x != nil { - return x.NetworkPlugin - } - return NetworkPlugin_NP_UNSPECIFIED -} - -func (x *NetworkConfig) GetNetworkPolicy() NetworkPolicy { - if x != nil { - return x.NetworkPolicy - } - return NetworkPolicy_NPO_UNSPECIFIED -} - -func (x *NetworkConfig) GetVnetCniPluginsUrl() string { - if x != nil { - return x.VnetCniPluginsUrl - } - return "" -} - -func (x *NetworkConfig) GetCniPluginsUrl() string { - if x != nil { - return x.CniPluginsUrl - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_networkconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDesc = []byte{ - 0x0a, 0x2e, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, - 0x76, 0x31, 0x22, 0xf8, 0x01, 0x0a, 0x0d, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x12, 0x46, 0x0a, 0x0e, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, - 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61, - 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, - 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x0d, 0x6e, - 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x46, 0x0a, 0x0e, - 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x0e, 0x32, 0x1f, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x2e, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x6f, - 0x6c, 0x69, 0x63, 0x79, 0x12, 0x2f, 0x0a, 0x14, 0x76, 0x6e, 0x65, 0x74, 0x5f, 0x63, 0x6e, 0x69, - 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x11, 0x76, 0x6e, 0x65, 0x74, 0x43, 0x6e, 0x69, 0x50, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x73, 0x55, 0x72, 0x6c, 0x12, 0x26, 0x0a, 0x0f, 0x63, 0x6e, 0x69, 0x5f, 0x70, 0x6c, 0x75, - 0x67, 0x69, 0x6e, 0x73, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, - 0x63, 0x6e, 0x69, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x73, 0x55, 0x72, 0x6c, 0x2a, 0x4e, 0x0a, - 0x0d, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x12, - 0x0a, 0x0e, 0x4e, 0x50, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, - 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x4e, 0x50, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, 0x01, 0x12, - 0x0c, 0x0a, 0x08, 0x4e, 0x50, 0x5f, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x10, 0x02, 0x12, 0x0e, 0x0a, - 0x0a, 0x4e, 0x50, 0x5f, 0x4b, 0x55, 0x42, 0x45, 0x4e, 0x45, 0x54, 0x10, 0x03, 0x2a, 0x51, 0x0a, - 0x0d, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x13, - 0x0a, 0x0f, 0x4e, 0x50, 0x4f, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, - 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4e, 0x50, 0x4f, 0x5f, 0x4e, 0x4f, 0x4e, 0x45, 0x10, - 0x01, 0x12, 0x0d, 0x0a, 0x09, 0x4e, 0x50, 0x4f, 0x5f, 0x41, 0x5a, 0x55, 0x52, 0x45, 0x10, 0x02, - 0x12, 0x0e, 0x0a, 0x0a, 0x4e, 0x50, 0x4f, 0x5f, 0x43, 0x41, 0x4c, 0x49, 0x43, 0x4f, 0x10, 0x03, - 0x42, 0xd3, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x12, 0x4e, 0x65, 0x74, 0x77, 0x6f, - 0x72, 0x6b, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, - 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, 0x72, - 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, - 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, - 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, - 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, - 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, - 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_goTypes = []any{ - (NetworkPlugin)(0), // 0: aksnodeconfig.v1.NetworkPlugin - (NetworkPolicy)(0), // 1: aksnodeconfig.v1.NetworkPolicy - (*NetworkConfig)(nil), // 2: aksnodeconfig.v1.NetworkConfig -} -var file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_depIdxs = []int32{ - 0, // 0: aksnodeconfig.v1.NetworkConfig.network_plugin:type_name -> aksnodeconfig.v1.NetworkPlugin - 1, // 1: aksnodeconfig.v1.NetworkConfig.network_policy:type_name -> aksnodeconfig.v1.NetworkPolicy - 2, // [2:2] is the sub-list for method output_type - 2, // [2:2] is the sub-list for method input_type - 2, // [2:2] is the sub-list for extension type_name - 2, // [2:2] is the sub-list for extension extendee - 0, // [0:2] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_networkconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDesc, - NumEnums: 2, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_depIdxs, - EnumInfos: file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_enumTypes, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_networkconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_networkconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/runcconfig.pb.go b/pkg/proto/aksnodeconfig/v1/runcconfig.pb.go deleted file mode 100644 index 2c4f4741426..00000000000 --- a/pkg/proto/aksnodeconfig/v1/runcconfig.pb.go +++ /dev/null @@ -1,154 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/runcconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type RuncConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The version of runc to use. - RuncVersion string `protobuf:"bytes,1,opt,name=runc_version,json=runcVersion,proto3" json:"runc_version,omitempty"` - // The URL to download the runc package from. - RuncPackageUrl string `protobuf:"bytes,2,opt,name=runc_package_url,json=runcPackageUrl,proto3" json:"runc_package_url,omitempty"` -} - -func (x *RuncConfig) Reset() { - *x = RuncConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *RuncConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RuncConfig) ProtoMessage() {} - -func (x *RuncConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RuncConfig.ProtoReflect.Descriptor instead. -func (*RuncConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *RuncConfig) GetRuncVersion() string { - if x != nil { - return x.RuncVersion - } - return "" -} - -func (x *RuncConfig) GetRuncPackageUrl() string { - if x != nil { - return x.RuncPackageUrl - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_runcconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDesc = []byte{ - 0x0a, 0x2b, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x75, 0x6e, - 0x63, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, - 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, - 0x59, 0x0a, 0x0a, 0x52, 0x75, 0x6e, 0x63, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x21, 0x0a, - 0x0c, 0x72, 0x75, 0x6e, 0x63, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x75, 0x6e, 0x63, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x28, 0x0a, 0x10, 0x72, 0x75, 0x6e, 0x63, 0x5f, 0x70, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, - 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x72, 0x75, 0x6e, 0x63, - 0x50, 0x61, 0x63, 0x6b, 0x61, 0x67, 0x65, 0x55, 0x72, 0x6c, 0x42, 0xd0, 0x01, 0x0a, 0x14, 0x63, - 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x52, 0x75, 0x6e, 0x63, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, - 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, - 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, - 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, - 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, - 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, - 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, - 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, - 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, - 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_goTypes = []any{ - (*RuncConfig)(nil), // 0: aksnodeconfig.v1.RuncConfig -} -var file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_runcconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_runcconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_runcconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/teleportconfig.pb.go b/pkg/proto/aksnodeconfig/v1/teleportconfig.pb.go deleted file mode 100644 index 0337f4f99c7..00000000000 --- a/pkg/proto/aksnodeconfig/v1/teleportconfig.pb.go +++ /dev/null @@ -1,155 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/teleportconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type TeleportConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // The status of the teleportd plugin. If true, the plugin is enabled. - Status bool `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` - // The URL to download the teleportd plugin. - TeleportdPluginDownloadUrl string `protobuf:"bytes,2,opt,name=teleportd_plugin_download_url,json=teleportdPluginDownloadUrl,proto3" json:"teleportd_plugin_download_url,omitempty"` -} - -func (x *TeleportConfig) Reset() { - *x = TeleportConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *TeleportConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TeleportConfig) ProtoMessage() {} - -func (x *TeleportConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TeleportConfig.ProtoReflect.Descriptor instead. -func (*TeleportConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *TeleportConfig) GetStatus() bool { - if x != nil { - return x.Status - } - return false -} - -func (x *TeleportConfig) GetTeleportdPluginDownloadUrl() string { - if x != nil { - return x.TeleportdPluginDownloadUrl - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_teleportconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDesc = []byte{ - 0x0a, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x65, 0x6c, - 0x65, 0x70, 0x6f, 0x72, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, - 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2e, 0x76, 0x31, 0x22, 0x6b, 0x0a, 0x0e, 0x54, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x41, 0x0a, - 0x1d, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x64, 0x5f, 0x70, 0x6c, 0x75, 0x67, 0x69, - 0x6e, 0x5f, 0x64, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x1a, 0x74, 0x65, 0x6c, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x64, 0x50, - 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x44, 0x6f, 0x77, 0x6e, 0x6c, 0x6f, 0x61, 0x64, 0x55, 0x72, 0x6c, - 0x42, 0xd4, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x13, 0x54, 0x65, 0x6c, 0x65, 0x70, - 0x6f, 0x72, 0x74, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, - 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, - 0x72, 0x65, 0x2f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, - 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, - 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, - 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, - 0x31, 0xca, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, - 0x61, 0x74, 0x61, 0xea, 0x02, 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_goTypes = []any{ - (*TeleportConfig)(nil), // 0: aksnodeconfig.v1.TeleportConfig -} -var file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_teleportconfig_proto != nil { - return - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_teleportconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_teleportconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/aksnodeconfig/v1/tlsbootstrappingconfig.pb.go b/pkg/proto/aksnodeconfig/v1/tlsbootstrappingconfig.pb.go deleted file mode 100644 index 30a97a45781..00000000000 --- a/pkg/proto/aksnodeconfig/v1/tlsbootstrappingconfig.pb.go +++ /dev/null @@ -1,178 +0,0 @@ -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.35.1 -// protoc (unknown) -// source: pkg/proto/aksnodeconfig/v1/tlsbootstrappingconfig.proto - -package aksnodeconfigv1 - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type TLSBootstrappingConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - // Enable secure TLS bootstrapping for the node. - EnableSecureTlsBootstrapping *bool `protobuf:"varint,1,opt,name=enable_secure_tls_bootstrapping,json=enableSecureTlsBootstrapping,proto3,oneof" json:"enable_secure_tls_bootstrapping,omitempty"` - // Only required until Secure TLS bootstrapping in place. Would use kubelet identity after that. - TlsBootstrappingToken string `protobuf:"bytes,2,opt,name=tls_bootstrapping_token,json=tlsBootstrappingToken,proto3" json:"tls_bootstrapping_token,omitempty"` - // Only used when secure TLS bootstrapping is enabled. This is the appserver appid that the node will use to bootstrap. - CustomSecureTlsBootstrappingAppserverAppid string `protobuf:"bytes,3,opt,name=custom_secure_tls_bootstrapping_appserver_appid,json=customSecureTlsBootstrappingAppserverAppid,proto3" json:"custom_secure_tls_bootstrapping_appserver_appid,omitempty"` -} - -func (x *TLSBootstrappingConfig) Reset() { - *x = TLSBootstrappingConfig{} - mi := &file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) -} - -func (x *TLSBootstrappingConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*TLSBootstrappingConfig) ProtoMessage() {} - -func (x *TLSBootstrappingConfig) ProtoReflect() protoreflect.Message { - mi := &file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_msgTypes[0] - if x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use TLSBootstrappingConfig.ProtoReflect.Descriptor instead. -func (*TLSBootstrappingConfig) Descriptor() ([]byte, []int) { - return file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDescGZIP(), []int{0} -} - -func (x *TLSBootstrappingConfig) GetEnableSecureTlsBootstrapping() bool { - if x != nil && x.EnableSecureTlsBootstrapping != nil { - return *x.EnableSecureTlsBootstrapping - } - return false -} - -func (x *TLSBootstrappingConfig) GetTlsBootstrappingToken() string { - if x != nil { - return x.TlsBootstrappingToken - } - return "" -} - -func (x *TLSBootstrappingConfig) GetCustomSecureTlsBootstrappingAppserverAppid() string { - if x != nil { - return x.CustomSecureTlsBootstrappingAppserverAppid - } - return "" -} - -var File_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto protoreflect.FileDescriptor - -var file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDesc = []byte{ - 0x0a, 0x37, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x6c, 0x73, - 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x63, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x10, 0x61, 0x6b, 0x73, 0x6e, 0x6f, - 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x22, 0xa5, 0x02, 0x0a, 0x16, - 0x54, 0x4c, 0x53, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x4a, 0x0a, 0x1f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, - 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x74, - 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x48, - 0x00, 0x52, 0x1c, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x53, 0x65, 0x63, 0x75, 0x72, 0x65, 0x54, - 0x6c, 0x73, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x88, - 0x01, 0x01, 0x12, 0x36, 0x0a, 0x17, 0x74, 0x6c, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, - 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x15, 0x74, 0x6c, 0x73, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, - 0x70, 0x70, 0x69, 0x6e, 0x67, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x63, 0x0a, 0x2f, 0x63, 0x75, - 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, 0x65, 0x5f, 0x74, 0x6c, 0x73, 0x5f, - 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5f, 0x61, 0x70, - 0x70, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x2a, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x53, 0x65, 0x63, 0x75, 0x72, - 0x65, 0x54, 0x6c, 0x73, 0x42, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, - 0x67, 0x41, 0x70, 0x70, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x41, 0x70, 0x70, 0x69, 0x64, 0x42, - 0x22, 0x0a, 0x20, 0x5f, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x73, 0x65, 0x63, 0x75, 0x72, - 0x65, 0x5f, 0x74, 0x6c, 0x73, 0x5f, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, - 0x69, 0x6e, 0x67, 0x42, 0xdc, 0x01, 0x0a, 0x14, 0x63, 0x6f, 0x6d, 0x2e, 0x61, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x76, 0x31, 0x42, 0x1b, 0x54, 0x6c, - 0x73, 0x62, 0x6f, 0x6f, 0x74, 0x73, 0x74, 0x72, 0x61, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x63, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x46, 0x67, 0x69, 0x74, - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x7a, 0x75, 0x72, 0x65, 0x2f, 0x41, 0x67, - 0x65, 0x6e, 0x74, 0x42, 0x61, 0x6b, 0x65, 0x72, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x2f, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x41, 0x58, 0x58, 0xaa, 0x02, 0x10, 0x41, 0x6b, 0x73, 0x6e, - 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x10, 0x41, - 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, 0x56, 0x31, 0xe2, - 0x02, 0x1c, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5c, - 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, - 0x11, 0x41, 0x6b, 0x73, 0x6e, 0x6f, 0x64, 0x65, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x3a, 0x3a, - 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDescOnce sync.Once - file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDescData = file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDesc -) - -func file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDescGZIP() []byte { - file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDescOnce.Do(func() { - file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDescData) - }) - return file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDescData -} - -var file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_msgTypes = make([]protoimpl.MessageInfo, 1) -var file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_goTypes = []any{ - (*TLSBootstrappingConfig)(nil), // 0: aksnodeconfig.v1.TLSBootstrappingConfig -} -var file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_depIdxs = []int32{ - 0, // [0:0] is the sub-list for method output_type - 0, // [0:0] is the sub-list for method input_type - 0, // [0:0] is the sub-list for extension type_name - 0, // [0:0] is the sub-list for extension extendee - 0, // [0:0] is the sub-list for field type_name -} - -func init() { file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_init() } -func file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_init() { - if File_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto != nil { - return - } - file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_msgTypes[0].OneofWrappers = []any{} - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDesc, - NumEnums: 0, - NumMessages: 1, - NumExtensions: 0, - NumServices: 0, - }, - GoTypes: file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_goTypes, - DependencyIndexes: file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_depIdxs, - MessageInfos: file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_msgTypes, - }.Build() - File_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto = out.File - file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_rawDesc = nil - file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_goTypes = nil - file_pkg_proto_aksnodeconfig_v1_tlsbootstrappingconfig_proto_depIdxs = nil -} diff --git a/pkg/proto/buf.gen.yaml b/pkg/proto/buf.gen.yaml deleted file mode 100644 index 4fb6653c9e4..00000000000 --- a/pkg/proto/buf.gen.yaml +++ /dev/null @@ -1,9 +0,0 @@ -version: v1 -managed: - enabled: true - go_package_prefix: - default: github.com/Azure/AgentBaker -plugins: - - plugin: buf.build/protocolbuffers/go - out: ./ - opt: paths=source_relative diff --git a/pkg/proto/buf.yaml b/pkg/proto/buf.yaml deleted file mode 100644 index a90762a592f..00000000000 --- a/pkg/proto/buf.yaml +++ /dev/null @@ -1,10 +0,0 @@ -version: v1 -breaking: - use: - - FILE -lint: - use: - - DEFAULT - #- COMMENTS - - UNARY_RPC - - PACKAGE_NO_IMPORT_CYCLE diff --git a/vhdbuilder/packer/generate-vhd-publishing-info.sh b/vhdbuilder/packer/generate-vhd-publishing-info.sh index 38bdda3ea6b..1eabecda447 100755 --- a/vhdbuilder/packer/generate-vhd-publishing-info.sh +++ b/vhdbuilder/packer/generate-vhd-publishing-info.sh @@ -118,5 +118,5 @@ else EOF fi -# Do not log sas token +# We don't create SAS URLs anymore, though just keep this here to be safe sed 's/?.*\",/?***\",/g' < vhd-publishing-info.json \ No newline at end of file diff --git a/vhdbuilder/packer/init-variables.sh b/vhdbuilder/packer/init-variables.sh index 806856a0aa8..dbe0e807def 100755 --- a/vhdbuilder/packer/init-variables.sh +++ b/vhdbuilder/packer/init-variables.sh @@ -81,7 +81,12 @@ fi if [ -z "${VNET_RG_NAME}" ]; then if [ "$MODE" == "linuxVhdMode" ]; then - VNET_RG_NAME="nodesig-${ENVIRONMENT}-${PACKER_BUILD_LOCATION}-pool-vnet-rg" + if [ "${ENVIRONMENT,,}" == "prod" ]; then + # TODO(cameissner): build out updated pool resources in prod so we don't have to pivot like this + VNET_RG_NAME="nodesig-${ENVIRONMENT}-${PACKER_BUILD_LOCATION}-agent-pool" + else + VNET_RG_NAME="nodesig-${ENVIRONMENT}-${PACKER_BUILD_LOCATION}-pool-vnet-rg" + fi fi if [ "$MODE" == "windowsVhdMode" ]; then if [[ "${POOL_NAME}" == *nodesigprod* ]]; then diff --git a/vhdbuilder/packer/test-scan-and-cleanup.sh b/vhdbuilder/packer/test-scan-and-cleanup.sh index a7afa545a54..d2e46a3a9dd 100755 --- a/vhdbuilder/packer/test-scan-and-cleanup.sh +++ b/vhdbuilder/packer/test-scan-and-cleanup.sh @@ -14,6 +14,7 @@ required_env_vars=( "UMSI_CLIENT_ID" "BUILD_RUN_NUMBER" "VHD_ARTIFACT_NAME" + "DRY_RUN" ) for v in "${required_env_vars[@]}"; do diff --git a/vhdbuilder/packer/windows-image.env b/vhdbuilder/packer/windows-image.env index 748979d0fd8..bce32e478c6 100644 --- a/vhdbuilder/packer/windows-image.env +++ b/vhdbuilder/packer/windows-image.env @@ -18,7 +18,7 @@ WINDOWS_2022_BASE_IMAGE_VERSION=20348.2849.241102 # CLI example to get the latest image version: # az vm image show --urn MicrosoftWindowsServer:WindowsServer:2022-datacenter-core-smalldisk-g2:latest WINDOWS_2022_GEN2_BASE_IMAGE_SKU=2022-datacenter-core-smalldisk-g2 -WINDOWS_2022_GEN2_BASE_IMAGE_VERSION=20348.2762.241006 +WINDOWS_2022_GEN2_BASE_IMAGE_VERSION=20348.2849.241102 # CLI example to get the latest image version: # az vm image show --urn MicrosoftWindowsServer:WindowsServer:23h2-datacenter-core:latest