Skip to content

Commit

Permalink
create conditional-policies.yaml file before its called
Browse files Browse the repository at this point in the history
rh-pre-commit.version: 2.3.2
rh-pre-commit.check-secrets: ENABLED
  • Loading branch information
Omar-AlJaljuli committed Jan 28, 2025
1 parent 13b2fdb commit 71428cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .ibm/pipelines/jobs/operator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ deploy_rhdh_operator() {
initiate_operator_deployments() {
configure_namespace "${OPERATOR_MANAGER}"
install_rhdh_operator "${DIR}" "${OPERATOR_MANAGER}"

create_conditional_policies_operator /tmp/conditional-policies.yaml

configure_namespace "${NAME_SPACE}"
deploy_test_backstage_provider "${NAME_SPACE}"
local rhdh_base_url="https://backstage-${RELEASE_NAME}-${NAME_SPACE}.${K8S_CLUSTER_ROUTER_BASE}"
Expand All @@ -47,7 +48,6 @@ initiate_operator_deployments() {

configure_namespace "${NAME_SPACE_RBAC}"
local rbac_rhdh_base_url="https://backstage-${RELEASE_NAME_RBAC}-${NAME_SPACE_RBAC}.${K8S_CLUSTER_ROUTER_BASE}"
create_conditional_policies_operator /tmp/conditional-policies.yaml
apply_yaml_files "${DIR}" "${NAME_SPACE_RBAC}" "${rbac_rhdh_base_url}"
create_dynamic_plugins_config "${DIR}/value_files/${HELM_CHART_RBAC_VALUE_FILE_NAME}" "/tmp/configmap-dynamic-plugins-rbac.yaml"
oc apply -f /tmp/configmap-dynamic-plugins-rbac.yaml -n "${NAME_SPACE_RBAC}"
Expand Down

0 comments on commit 71428cb

Please sign in to comment.