File tree Expand file tree Collapse file tree 5 files changed +21
-14
lines changed Expand file tree Collapse file tree 5 files changed +21
-14
lines changed Original file line number Diff line number Diff line change 3232     - name : Image Build 
3333      run : | 
3434        make build 
35-         make image-build -e IMG=quay.io/project-codeflare /codeflare-operator:dev  
36-         make image-push -e IMG=quay.io/project-codeflare /codeflare-operator:dev  
35+         make image-build -e IMG=quay.io/rh-ee-obazylie /codeflare-operator:test1  
36+         make image-push -e IMG=quay.io/rh-ee-obazylie /codeflare-operator:test1  
3737
3838     - name : Logout from Quay.io 
3939      if : always() && steps.podman-login-quay.outcome == 'success' 
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ COPY pkg/ pkg/
1313
1414#  Build
1515USER  root
16- RUN  CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -tags strictfipsruntime -a -o manager main.go 
16+ RUN  CGO_ENABLED=1 GOOS=linux GOARCH=amd64 make docker-build 
1717
1818FROM  registry.access.redhat.com/ubi8/ubi-minimal:8.8
1919WORKDIR  /
2020COPY  --from=builder /workspace/manager .
2121
2222USER  65532:65532
23- ENTRYPOINT  ["/manager" ]
23+ ENTRYPOINT  ["/manager" ]
Original file line number Diff line number Diff line change @@ -155,6 +155,15 @@ build: fmt vet ## Build manager binary.
155155		"  \ 
156156		-o bin/manager main.go
157157
158+ .PHONY : docker-build
159+ docker-build : fmt vet # # Build manager binary.
160+ 	go build \ 
161+ 		-ldflags "  \ 
162+ 			-X ' main.OperatorVersion=$(BUILD_VERSION)'   \ 
163+ 			-X ' main.BuildDate=$(BUILD_DATE)'   \ 
164+ 		"  \ 
165+ 		-tags strictfipsruntime -a -o manager main.go
166+ 		
158167.PHONY : run
159168run : manifests fmt vet # # Run a controller from your host.
160169	go run ./main.go
@@ -376,4 +385,4 @@ image-mnist-job-test-build: ## Build container image with the MNIST job.
376385
377386.PHONY : image-mnist-job-test-push
378387image-mnist-job-test-push : image-mnist-job-test-build # # Push container image with the MNIST job.
379- 	podman push ${MNIST_JOB_TEST_IMG} 
388+ 	podman push ${MNIST_JOB_TEST_IMG} 
Original file line number Diff line number Diff line change 1- codeflare-operator-controller-image = quay.io/opendatahub/codeflare-operator:v1.3.0 
1+ codeflare-operator-controller-image = quay.io/opendatahub/codeflare-operator:v1.3.1 
2+ namespace = opendatahub 
Original file line number Diff line number Diff line change @@ -56,12 +56,11 @@ import (
5656)
5757
5858var  (
59- 	scheme             =  runtime .NewScheme ()
60- 	setupLog           =  ctrl .Log .WithName ("setup" )
61- 	OperatorVersion    =  "UNKNOWN" 
62- 	McadVersion        =  "UNKNOWN" 
63- 	InstaScaleVersion  =  "UNKNOWN" 
64- 	BuildDate          =  "UNKNOWN" 
59+ 	scheme           =  runtime .NewScheme ()
60+ 	setupLog         =  ctrl .Log .WithName ("setup" )
61+ 	OperatorVersion  =  "UNKNOWN" 
62+ 	BuildDate        =  "UNKNOWN" 
63+ 	JobTestVersion   =  "UNKNOWN" 
6564)
6665
6766func  init () {
@@ -90,8 +89,6 @@ func main() {
9089
9190	setupLog .Info ("Build info" ,
9291		"operatorVersion" , OperatorVersion ,
93- 		"mcadVersion" , McadVersion ,
94- 		"instaScaleVersion" , InstaScaleVersion ,
9592		"date" , BuildDate ,
9693	)
9794
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments