Skip to content

Commit

Permalink
Merge pull request #511 from annamcallister/operator-install-mode
Browse files Browse the repository at this point in the history
add option to gradle installOperator to set mode
  • Loading branch information
dwertent authored Jan 15, 2025
2 parents 250ef08 + 9a90cc7 commit 9b8c76a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion operator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,8 @@ helm-install: helm-install-dependencies ## Install operator using Helm.
--set paladin.image.repository=${PALADIN_IMAGE_NAME} \
--set paladin.image.tag=${PALADIN_IMAGE_TAG} \
--set paladin.image.pullPolicy=IfNotPresent \
--set prometheus.enabled=false
--set prometheus.enabled=false \
--set mode=${MODE}

.PHONY: helm-uninstall-dependencies
helm-uninstall-dependencies:
Expand Down
4 changes: 3 additions & 1 deletion operator/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ dependencies {

ext {
clusterName = project.hasProperty('clusterName') ? project.clusterName : 'paladin'
namespace = project.hasProperty('namespace') ? project.namespace : 'default' // Default namespace is 'default'
namespace = project.hasProperty('namespace') ? project.namespace : 'default' // Default namespace is 'default'
mode = project.hasProperty('mode') ? project.mode : 'devnet'
deleteCluster = project.hasProperty('deleteCluster') ? project.deleteCluster.toBoolean() : false // By default, do not delete the cluster
buildPaladin = project.hasProperty('buildPaladin') ? project.buildPaladin == 'true' : true // Default is to build Paladin
buildOperator = project.hasProperty('buildOperator') ? project.buildOperator == 'true' : true // Default is to build the operator
Expand Down Expand Up @@ -233,6 +234,7 @@ task installOperator(type: Exec, dependsOn: [installCrds, promoteKindImages, pre
args "OPERATOR_IMAGE_TAG=${operatorImageTag}"
args "PALADIN_IMAGE_NAME=${paladinImageName}"
args "PALADIN_IMAGE_TAG=${paladinImageTag}"
args "MODE=${mode}"
}


Expand Down

0 comments on commit 9b8c76a

Please sign in to comment.