-
Notifications
You must be signed in to change notification settings - Fork 21
i-76238: Remove gitea #947
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
Merged
+371
−485
Merged
Changes from 84 commits
Commits
Show all changes
96 commits
Select commit
Hold shift + click to select a range
48b5e9a
WIP gitea-less deployment
scottmbaker e6bcbee
some debugging
scottmbaker 896adfe
fix stuff
scottmbaker 498183b
merge the proxy profile
scottmbaker cf1a91a
remove the cluster profile too
scottmbaker 2f3e73b
must pass through orchestratordeployment
scottmbaker e9ba8bf
debugging
scottmbaker 9381cfa
merge the cluster template in
scottmbaker d1ffb73
Merge branch 'main' into experiment/no-gitea
harishb93 15e49aa
Merge branch 'main' into experiment/no-gitea
harishb93 f0a7a31
Merge branch 'main' into experiment/no-gitea
harishb93 573a75c
Merge branch 'main' into experiment/no-gitea
harishb93 d0901df
Merge branch 'main' into experiment/no-gitea
harishb93 88a5cd5
Merge branch 'main' into experiment/no-gitea
harishb93 e3f70cd
Merge branch 'main' into experiment/no-gitea
harishb93 5b05a1a
Merge branch 'main' into experiment/no-gitea
harishb93 2f446a4
Splitting pre-orch tasks from kind cluster creation command
harishb93 fb7dff1
Merge branch 'main' into experiment/no-gitea
harishb93 55e1232
Flag based gitea install for coder
harishb93 44d8063
Merge branch 'main' into experiment/no-gitea
harishb93 a9378b7
Merge branch 'main' into experiment/no-gitea
harishb93 4a6a6f6
Merge branch 'main' into experiment/no-gitea
harishb93 33a8ee7
Merge branch 'main' into experiment/no-gitea
harishb93 a144e58
Lint issue fix
harishb93 fdba9c3
Reverting generate changes for pipeline
harishb93 540d28f
Fixes for pipeline run
harishb93 94ef6bf
Updating on_prem installer for gitea installation
harishb93 fdd7e25
Merge branch 'main' into experiment/no-gitea
harishb93 e4e8f94
Fixing aoenabled flag logic
harishb93 a0dc342
Removing diff.diff
harishb93 49c8236
Merge branch 'main' into experiment/no-gitea
harishb93 4df2959
Merge branch 'main' into experiment/no-gitea
harishb93 eaae81b
Merge branch 'main' into experiment/no-gitea
harishb93 5ca150e
Fixing deployRepoURL and utilsRepoURL for all profiles
harishb93 4062c9a
Merge branch 'main' into experiment/no-gitea
harishb93 155ad8f
Fixing onprem_orch_install script to set INSTALL_GITEA before unsetting
harishb93 7d62388
Fixing gitea onprem and upgrade paths logic
harishb93 9d4c8fa
Moving INSTALL_GITEA flag
harishb93 f7b2268
Merge branch 'main' into experiment/no-gitea
harishb93 85f453a
INSTALL_GITEA flag logic change
harishb93 ec911dd
gitea pod wait logic change
harishb93 858b2fa
Debug: removing argo-diagnositics logs from git
harishb93 886006e
Merge branch 'main' into experiment/no-gitea
harishb93 39a2b18
Merge branch 'main' into experiment/no-gitea
harishb93 9b35e97
Revert git action changes
harishb93 2ae47ac
Merge branch 'main' into experiment/no-gitea
harishb93 2be6943
Merge branch 'main' into experiment/no-gitea
harishb93 0319a6c
Test ippools changes - To be reverted
harishb93 08d07cf
debug - Print cluster files and ignore case match of gitea
harishb93 9ca77a0
Merge branch 'main' into experiment/no-gitea
harishb93 54ba548
Merge branch 'main' into experiment/no-gitea
harishb93 3484047
Merge branch 'main' into experiment/no-gitea
harishb93 63b858d
Changing useLocalValues to true for onprem and onprem-oxm profiles
harishb93 bfe1670
Changing useLocalValues value for tpl file
harishb93 d228eba
Merge branch 'main' into experiment/no-gitea
harishb93 59939c3
Merge branch 'main' into experiment/no-gitea
harishb93 8c90f74
Merge branch 'main' into experiment/no-gitea
harishb93 d2415a3
Merge branch 'main' into experiment/no-gitea
harishb93 87c903e
Merge branch 'main' into experiment/no-gitea
harishb93 75264f0
Merge branch 'main' into experiment/no-gitea
harishb93 cc47901
Merge branch 'main' into experiment/no-gitea
harishb93 f5a4f53
Merge branch 'main' into experiment/no-gitea
harishb93 7bcbcd0
Merge branch 'main' into experiment/no-gitea
harishb93 8cba9e7
Merge branch 'main' into experiment/no-gitea
harishb93 9ea6a77
Merge branch 'main' into experiment/no-gitea
harishb93 36c89cb
Merge branch 'main' into experiment/no-gitea
harishb93 c666339
Adding documentation
harishb93 9663276
Adding documentation fix
harishb93 15738eb
Fixing markdown file lint
harishb93 662ee4f
Merge branch 'main' into experiment/no-gitea
harishb93 55f5bf3
Merge branch 'main' into experiment/no-gitea
harishb93 4ba0dd2
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel 5a47ccf
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel e4a98f6
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel bb48ac6
removed onprem.yaml file and removed gitea cred when not needed
PalashGoelIntel 650f360
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel cd9049d
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel 9db7b04
Update cluster_aws.tpl
PalashGoelIntel 9e0d7d9
Update cluster.tpl
PalashGoelIntel 39153b1
Update cluster.tpl
PalashGoelIntel 9d38374
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel f0a4023
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel 9cf4531
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel 21e5ab6
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel 9068c0d
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel fc05a91
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel f004610
removed changes after merge
PalashGoelIntel 3904721
changes for review comments
PalashGoelIntel 87e1f6b
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel d17c545
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel 7890a91
changes for review comments
PalashGoelIntel 2fe7088
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel d276aee
Merge branch 'main' into experiment/no-gitea
sunil-parida f049e84
Merge branch 'main' into experiment/no-gitea
PalashGoelIntel 45772ac
Update cluster_onprem.tpl
sunil-parida 0dc6ec8
Merge branch 'main' into experiment/no-gitea
sunil-parida 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
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
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
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,78 @@ | ||
| # Eliminate Gitea as a pre-installer dependency | ||
|
|
||
| As part of the [platform installer simplification](platform-installer-simplification.md), one of the goals is to decouple | ||
| the platform from a mandatory internal Gitea instance, making it an optional component required only for specific | ||
| features (like App Orchestration). This document outlines the below architectural and code changes introduced. | ||
|
|
||
| ## 1. Optional Gitea Installation | ||
|
|
||
| The most significant change is that the internal Gitea service is no longer installed by default. It is now | ||
| conditionally deployed based on whether **App Orchestration (AO)** is enabled for the target cluster. | ||
|
|
||
| ### Logic & Implementation | ||
|
|
||
| The system determines whether to install Gitea by checking the cluster's configuration profile for the inclusion of the | ||
| App Orchestration component. | ||
|
|
||
| #### Magefile (`mage/`) | ||
|
|
||
| - **Detection**: A new method `isAOEnabled(targetEnv)` was added to `mage/config.go`. | ||
| - It reads the cluster configuration file (`orch-configs/clusters/<env>.yaml`). | ||
| - It parses the `clusterValues` list. | ||
| - It returns `true` if it finds a reference to `enable-app-orch.yaml`. | ||
| - **Deployment**: In `mage/deploy.go`, the `gitea` function now wraps the helm install command and account creation | ||
| logic in a conditional block: | ||
|
|
||
| ```go | ||
| aoEnabled, _ := (Config{}).isAOEnabled(targetEnv) | ||
| if aoEnabled { | ||
| // Install Gitea helm chart | ||
| // Create accounts (argocd, apporch, clusterorch) | ||
| } | ||
| ``` | ||
|
|
||
| #### On-Prem Installer (`on-prem-installers/`) | ||
|
|
||
| - **Shell Script**: `onprem/onprem_orch_install.sh` performs a similar check using `grep`. | ||
| - It scans the generated profile YAML for `enable-app-orch.yaml`. | ||
| - It sets the environment variable `INSTALL_GITEA="true"` or `"false"`. | ||
| - This variable is passed to the `apt-get install` command for the Gitea package. | ||
| - **Go Installer**: The `cmd/onprem-orch-installer/main.go` binary reads the `INSTALL_GITEA` environment variable. | ||
| - If `false`, it skips the step of pushing artifact tarballs to the internal Gitea repo. | ||
| - It modifies the `getGiteaServiceURL` function to handle cases where the service might not exist (though currently | ||
| it defaults to a placeholder if not installed). | ||
|
|
||
| ## 2. Deployment Repository Source Change | ||
|
|
||
| The default source of truth for the Orchestrator's ArgoCD applications has shifted from the internal Gitea instance to | ||
| the public GitHub repository. | ||
|
|
||
| ### Key Changes | ||
|
|
||
| - **Default URL**: | ||
| - In `mage/config.go` and `installer/cluster.tpl`, the `deployRepoURL` default value was changed from: | ||
| `https://gitea-http.gitea.svc.cluster.local/argocd/edge-manageability-framework` | ||
| to: | ||
| `https://github.com/open-edge-platform/edge-manageability-framework` | ||
| - **ArgoCD Configuration**: | ||
| - `mage/argo.go`: The `repoAdd` function was updated. It now checks if credentials (`gitUser`, `gitToken`) are | ||
| provided. If they are empty (which is the case for public GitHub), it adds the repository without authentication | ||
| flags. | ||
| - **Removal of Sync Logic**: | ||
| - Previously, `mage deploy` would automatically synchronize the local `orch-configs` and `argocd` directories to the | ||
| internal Gitea instance using `updateDeployRepo`. | ||
| - This logic has been removed from the main deployment flow in `mage/deploy.go`. The assumption is that deployments | ||
| now pull from upstream, or users must manually configure a different repo if they want to deploy local changes. | ||
|
|
||
| ## 3. Configuration Refactoring | ||
|
|
||
| Several changes were made to how cluster configurations are processed to support this flexibility. | ||
|
|
||
| - **Template Merging (`mage/config.go`)**: | ||
| - The `parseClusterValues` function was enhanced to support "self-merging". It can now read a cluster template and | ||
| merge it with itself to resolve internal references. | ||
| - Logic was added to programmatically merge the `proxyProfile` into the cluster values, reducing the reliance on | ||
| complex Helm template logic for proxy settings. | ||
| - **Cluster Template (`orch-configs/templates/cluster.tpl`)**: | ||
| - Simplified the template by removing explicit conditional inclusions for proxy profiles, as this is now handled by | ||
| the Go code in `mage`. | ||
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
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
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
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
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
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.
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.