Skip to content

Commit 0975a79

Browse files
authored
Merge pull request #31 from mlbiam/main
add ability to skip charts
2 parents 1e2ffe2 + f0ebc6d commit 0975a79

8 files changed

Lines changed: 238 additions & 173 deletions

File tree

.github/workflows/build-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ permissions:
55
contents: read
66
jobs:
77
build:
8-
runs-on: ubuntu-20.04
8+
runs-on: ubuntu-24.04
99
steps:
1010
- uses: actions/checkout@v2
1111
- uses: actions/setup-go@v3

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ go.work
2323
target
2424
ouctl
2525
openunison-control
26+
.vscode/

.vscode/launch.json

Lines changed: 0 additions & 29 deletions
This file was deleted.

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
export VERSION="0.0.13"
3+
export VERSION="0.0.15"
44

55
rm -rf target
66
mkdir -p target

cmd/installAuthPortal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ var installAuthPortalCmd = &cobra.Command{
2828

2929
pathToValuesYaml = args[0]
3030

31-
openunisonDeployment, err := openunison.NewOpenUnisonDeployment(namespace, operatorChart, orchestraChart, orchestraLoginPortalChart, pathToValuesYaml, secretFile, clusterManagementChart, pathToDbPassword, pathToSmtpPassword, skipClusterManagement, parseChartSlices(&additionalCharts), parseChartSlices(&preCharts), parseNamespaceLabels(&namespaceLabels))
31+
openunisonDeployment, err := openunison.NewOpenUnisonDeployment(namespace, operatorChart, orchestraChart, orchestraLoginPortalChart, pathToValuesYaml, secretFile, clusterManagementChart, pathToDbPassword, pathToSmtpPassword, skipClusterManagement, parseChartSlices(&additionalCharts), parseChartSlices(&preCharts), parseNamespaceLabels(&namespaceLabels), skipCharts)
3232

3333
if err != nil {
3434
panic(err)

cmd/installSatelite.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ var installSateliteCmd = &cobra.Command{
3232
controlPlaneCtxName := args[1]
3333
sateliteCtxName := args[2]
3434

35-
openunisonDeployment, err := openunison.NewSateliteDeployment(namespace, operatorChart, orchestraChart, orchestraLoginPortalChart, pathToValuesYaml, secretFile, controlPlaneCtxName, sateliteCtxName, addClusterChart, pathToSateliteYaml, parseChartSlices(&additionalCharts), parseChartSlices(&preCharts), parseNamespaceLabels(&namespaceLabels), controlPlaneOrchestraChartName, controlPlaneSecretName, skipCPIntegration)
35+
openunisonDeployment, err := openunison.NewSateliteDeployment(namespace, operatorChart, orchestraChart, orchestraLoginPortalChart, pathToValuesYaml, secretFile, controlPlaneCtxName, sateliteCtxName, addClusterChart, pathToSateliteYaml, parseChartSlices(&additionalCharts), parseChartSlices(&preCharts), parseNamespaceLabels(&namespaceLabels), controlPlaneOrchestraChartName, controlPlaneSecretName, skipCPIntegration, skipCharts)
3636

3737
if err != nil {
3838
panic(err)
@@ -67,4 +67,5 @@ func init() {
6767
installSateliteCmd.PersistentFlags().StringVarP(&controlPlaneSecretName, "control-plane-secret-name", "w", "orchestra-secrets-source", "The name of the secret on the control plane to store client secrets in")
6868

6969
installSateliteCmd.PersistentFlags().BoolVarP(&skipCPIntegration, "skip-controlplane-integration", "k", false, "Set to true if skipping the control plane integration step. Used when upgrading a satelite.")
70+
installSateliteCmd.PersistentFlags().StringSliceVarP(&skipCharts, "skip-charts", "i", []string{}, "Comma separated list of charts to skip during the deployment. May be used to run 'hot upgrades' that doesn't require restarts")
7071
}

cmd/root.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ var controlPlaneOrchestraChartName string
5151
var controlPlaneSecretName string
5252

5353
var skipCPIntegration bool
54+
var skipCharts []string
5455

5556
// Execute adds all child commands to the root command and sets flags appropriately.
5657
// This is called by main.main(). It only needs to happen once to the rootCmd.

0 commit comments

Comments
 (0)