- 
                Notifications
    You must be signed in to change notification settings 
- Fork 554
feat: hibernate devtron app #6356
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
      
      
    
  
     Merged
                    Changes from 3 commits
      Commits
    
    
            Show all changes
          
          
            17 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      ab8eeb3
              
                added support for uploadedBy in charts listing
              
              
                RajeevRanjan27 8abc45b
              
                added the scripts
              
              
                RajeevRanjan27 a43337b
              
                added the script to migrate the existing data into new Column
              
              
                RajeevRanjan27 e671ad6
              
                added the changes for ent compatible
              
              
                RajeevRanjan27 0d65dc3
              
                Merge branch 'develop' into feat-hibernate-devtron-app
              
              
                RajeevRanjan27 c208acf
              
                modified the script name
              
              
                RajeevRanjan27 7b38984
              
                resolve oss commnets
              
              
                RajeevRanjan27 e6c4cbb
              
                removed the extra field from struct
              
              
                RajeevRanjan27 88eb9dc
              
                refactored the code and removed code duplicacy
              
              
                RajeevRanjan27 6d6e0c5
              
                added return in start-stop
              
              
                RajeevRanjan27 64c29dc
              
                added the check for the stategy missed and specific type trigger
              
              
                RajeevRanjan27 7fa886e
              
                Merge branch 'develop' into feat-hibernate-devtron-app
              
              
                RajeevRanjan27 bb86cf4
              
                took merge and corrected the script name
              
              
                RajeevRanjan27 8194a87
              
                added the script for deleting the created extra entries of hibernatio…
              
              
                RajeevRanjan27 a2bb1d5
              
                Merge branch 'develop' into feat-hibernate-devtron-app
              
              
                RajeevRanjan27 3300ef6
              
                added the routes
              
              
                RajeevRanjan27 cc7bcee
              
                Merge branch 'develop' into feat-hibernate-devtron-app
              
              
                nishant-d 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
      
      Oops, something went wrong.
      
    
  
  
    
      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
    
  
  
    
              
        
          
          
            8 changes: 8 additions & 0 deletions
          
          8 
        
  pkg/deployment/manifest/deploymentTemplate/chartResourceConfig/chartResourceConfigService.go
  
  
      
      
   
        
      
      
    
  
    
      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,8 @@ | ||
| package chartResourceConfig | ||
|  | ||
| import "github.com/devtron-labs/devtron/pkg/resourceQualifiers" | ||
|  | ||
| func GetStopTemplate(scope *resourceQualifiers.Scope) (string, error) { | ||
| stopTemplate := `{"replicaCount":0,"autoscaling":{"MinReplicas":0,"MaxReplicas":0 ,"enabled": false},"kedaAutoscaling":{"minReplicaCount":0,"maxReplicaCount":0 ,"enabled": false}}` | ||
| return stopTemplate, nil | ||
| } | 
  
    
      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,7 @@ | ||
| -- Drop the unique index if it exists | ||
| DROP INDEX IF EXISTS public.chart_ref_schema_unique_active_idx; | ||
|  | ||
| -- Drop columns if they exist | ||
| ALTER TABLE public.chart_ref_schema | ||
| DROP COLUMN IF EXISTS resourceType, | ||
| DROP COLUMN IF EXISTS resourceValue; | 
  
    
      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,21 @@ | ||
| Begin; | ||
|  | ||
| ALTER TABLE public.chart_ref_schema | ||
| ADD COLUMN IF NOT EXISTS resourceType INT NOT NULL DEFAULT 0; | ||
|  | ||
| ALTER TABLE public.chart_ref_schema | ||
|         
                  RajeevRanjan27 marked this conversation as resolved.
              Outdated
          
            Show resolved
            Hide resolved | ||
| ALTER COLUMN resourceType DROP DEFAULT; | ||
|  | ||
| ALTER TABLE public.chart_ref_schema | ||
| ADD COLUMN IF NOT EXISTS resourceValue TEXT; | ||
|  | ||
| -- Migrate data from old column "schema" to "resourceValue" | ||
| UPDATE public.chart_ref_schema | ||
| SET resourceValue = schema | ||
| WHERE schema IS NOT NULL; | ||
|  | ||
| CREATE UNIQUE INDEX chart_ref_schema_unique_active_idx | ||
| ON public.chart_ref_schema (name, resourceType) | ||
| WHERE active = TRUE; | ||
|  | ||
| End; | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
      
      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.