File tree 2 files changed +11
-1
lines changed
olm/olm-template/manifests
source/rhoas/src/main/java/com/openshift/cloud
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,9 @@ spec:
105
105
spec :
106
106
containers :
107
107
- image : quay.io/{{organization}}/service-operator:{{version}}
108
+ env :
109
+ - name : CLOUD_SERVICES_API
110
+ value : https://api.openshift.com
108
111
imagePullPolicy : Always
109
112
name : rhoas-operator
110
113
resources :
Original file line number Diff line number Diff line change 10
10
import io .quarkus .runtime .QuarkusApplication ;
11
11
import io .quarkus .runtime .annotations .QuarkusMain ;
12
12
import javax .inject .Inject ;
13
+
14
+ import org .eclipse .microprofile .config .inject .ConfigProperty ;
13
15
import org .jboss .logging .Logger ;
14
16
15
17
@ QuarkusMain
@@ -25,15 +27,20 @@ public class RHOASOperator implements QuarkusApplication {
25
27
26
28
@ Inject CloudServiceAccountRequestController serviceAccountRequestController ;
27
29
30
+ @ ConfigProperty (name = "rhoas.client.apiBasePath" )
31
+ String clientBasePath ;
32
+
28
33
private static final Logger LOG = Logger .getLogger (RHOASOperator .class );
29
34
30
35
public static void main (String ... args ) {
31
- LOG .info ("Autoupdating RHOAS Operator starting" );
36
+ LOG .info ("RHOAS Operator starting" );
32
37
Quarkus .run (RHOASOperator .class , args );
33
38
}
34
39
35
40
@ Override
36
41
public int run (String ... args ) throws Exception {
42
+ LOG .info ("Using API URL: " + clientBasePath );
43
+
37
44
ControllerConfiguration <?> config = configuration .getConfigurationFor (connectionController );
38
45
LOG .info ("CR class: " + config .getCustomResourceClass ());
39
46
You can’t perform that action at this time.
0 commit comments