Skip to content

Commit 121c3f1

Browse files
committed
Addressed the blocking issues raised by Lukasz in review.
1. Added standard Apache 2.0 copyright header. 2. Fixed kubeconfig overwrite: respects user provided value ( defaults to CRC path ) Signed-off-by: Malinga Tembo <mtembo@redhat.com>
1 parent d483c6f commit 121c3f1

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

hooks/playbooks/install-openstack-lightspeed.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
---
2+
# Copyright Red Hat, Inc.
3+
# All Rights Reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License"); you may
6+
# not use this file except in compliance with the License. You may obtain
7+
# a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
# License for the specific language governing permissions and limitations
15+
# under the License.
216

317
- name: Deploy OpenStack Lightspeed operator
418
hosts: "{{ cifmw_target_hook_host | default('localhost') }}"
@@ -11,8 +25,8 @@
1125
openstack_lightspeed_catalog_image: "{{ cifmw_openstack_lightspeed_catalog_image | default('quay.io/openstack-lightspeed/operator-catalog:latest') }}"
1226
openstack_lightspeed_catalog_name: "{{ cifmw_openstack_lightspeed_catalog_name | default('openstack-lightspeed-catalog') }}"
1327

14-
# Kubeconfig path
15-
cifmw_openshift_kubeconfig: "{{ ansible_env.HOME }}/.crc/machines/crc/kubeconfig"
28+
# Kubeconfig path - use user-provided or default to CRC location
29+
cifmw_openshift_kubeconfig: "{{ cifmw_openshift_kubeconfig | default(ansible_env.HOME ~ '/.crc/machines/crc/kubeconfig') }}"
1630
environment:
1731
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
1832

0 commit comments

Comments
 (0)