-
Notifications
You must be signed in to change notification settings - Fork 437
[Modules] Extend managedClusters with flux config #2678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
bc4d672
Adding flux extension
MariusStorhaug e843b2e
move other tests for speed
MariusStorhaug 696d1b3
removed reade refs to other tests
MariusStorhaug 7cd43d3
min test
MariusStorhaug 34b69cb
update readme
MariusStorhaug e5c8a0f
test minimal fluxconfig
MariusStorhaug 4cb6d80
enable commit/branch based CI
MariusStorhaug fa14636
*Test flux ext + config
MariusStorhaug e942898
restore workflow file
MariusStorhaug 0a81b78
fix for flux config
MariusStorhaug f02301d
fix for defaults
MariusStorhaug 8794a3d
fix flux config name
MariusStorhaug f991f19
added flux settings and configurations
MariusStorhaug 5bd3564
fix config name
MariusStorhaug 8b664ac
refresh readme
MariusStorhaug 1eaf247
Merge branch 'main' of https://github.com/Azure/ResourceModules into …
MariusStorhaug 629db00
shorter name
MariusStorhaug e830603
fix readme
MariusStorhaug 7229cef
fixing deployment names/lengths
MariusStorhaug fe00284
moving tests back
MariusStorhaug 620ec80
refreshing readme
MariusStorhaug 156ebb5
Update modules/Microsoft.ContainerService/managedClusters/deploy.bicep
ac802b3
Added flux configuration settings and fixed dependsOn
MariusStorhaug 41ee43a
refreshed docs
MariusStorhaug 49d0a69
renamed test minfluxdouble to flux with more features
MariusStorhaug 60d1e89
refresh
MariusStorhaug 447d016
Merge branch 'main' of https://github.com/Azure/ResourceModules into …
MariusStorhaug a4057f3
added secure to fluxConfigurationProtectedSettings
MariusStorhaug 29f2435
remove the minflux test
MariusStorhaug 157fde5
update readme
MariusStorhaug dfab334
added some params
MariusStorhaug File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
108 changes: 108 additions & 0 deletions
108
modules/Microsoft.ContainerService/managedClusters/.test/flux/deploy.test.bicep
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| targetScope = 'subscription' | ||
|
|
||
| // ========== // | ||
| // Parameters // | ||
| // ========== // | ||
|
|
||
| @description('Optional. The name of the resource group to deploy for testing purposes.') | ||
| @maxLength(90) | ||
| param resourceGroupName string = 'ms.containerservice.managedclusters-${serviceShort}-rg' | ||
|
|
||
| @description('Optional. The location to deploy resources to.') | ||
| param location string = deployment().location | ||
|
|
||
| @description('Optional. A short identifier for the kind of deployment. Should be kept short to not run into resource-name length-constraints.') | ||
| param serviceShort string = 'csmmf2' | ||
|
|
||
| @description('Optional. Enable telemetry via a Globally Unique Identifier (GUID).') | ||
| param enableDefaultTelemetry bool = true | ||
|
|
||
| // ============ // | ||
| // Dependencies // | ||
| // ============ // | ||
|
|
||
| // General resources | ||
| // ================= | ||
| resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = { | ||
| name: resourceGroupName | ||
| location: location | ||
| } | ||
|
|
||
| module testDeployment '../../deploy.bicep' = { | ||
| scope: resourceGroup | ||
| name: '${uniqueString(deployment().name, location)}-test-${serviceShort}' | ||
| params: { | ||
| name: '${serviceShort}001' | ||
| enableDefaultTelemetry: enableDefaultTelemetry | ||
| systemAssignedIdentity: true | ||
| primaryAgentPoolProfile: [ | ||
| { | ||
| name: 'systempool' | ||
| count: 1 | ||
| vmSize: 'Standard_DS2_v2' | ||
| mode: 'System' | ||
| } | ||
| ] | ||
| fluxReleaseTrain: 'Stable' | ||
| fluxVersion: '' | ||
| fluxConfigurationProtectedSettings: {} | ||
| fluxConfigurationSettings: { | ||
| 'helm-controller.enabled': 'true' | ||
| 'source-controller.enabled': 'true' | ||
| 'kustomize-controller.enabled': 'true' | ||
| 'notification-controller.enabled': 'true' | ||
| 'image-automation-controller.enabled': 'false' | ||
| 'image-reflector-controller.enabled': 'false' | ||
| } | ||
| fluxConfigurations: [ | ||
| { | ||
| namespace: 'flux-system' | ||
| scope: 'cluster' | ||
| gitRepository: { | ||
| repositoryRef: { | ||
| branch: 'main' | ||
| } | ||
| sshKnownHosts: '' | ||
| syncIntervalInSeconds: 300 | ||
| timeoutInSeconds: 180 | ||
| url: 'https://github.com/mspnp/aks-baseline' | ||
| } | ||
| } | ||
| { | ||
| namespace: 'flux-system-helm' | ||
| scope: 'cluster' | ||
| gitRepository: { | ||
| repositoryRef: { | ||
| branch: 'main' | ||
| } | ||
| sshKnownHosts: '' | ||
| syncIntervalInSeconds: 300 | ||
| timeoutInSeconds: 180 | ||
| url: 'https://github.com/Azure/gitops-flux2-kustomize-helm-mt' | ||
| } | ||
| kustomizations: { | ||
| infra: { | ||
| path: './infrastructure' | ||
| dependsOn: [] | ||
| timeoutInSeconds: 600 | ||
| syncIntervalInSeconds: 600 | ||
| validation: 'none' | ||
| prune: true | ||
| } | ||
| apps: { | ||
| path: './apps/staging' | ||
| dependsOn: [ | ||
| { | ||
| kustomizationName: 'infra' | ||
| } | ||
| ] | ||
| timeoutInSeconds: 600 | ||
| syncIntervalInSeconds: 600 | ||
| retryIntervalInSeconds: 600 | ||
| prune: true | ||
| } | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.