Skip to content

Commit

Permalink
Moving COSI temporarily out of the code
Browse files Browse the repository at this point in the history
Signed-off-by: jackyalbo <[email protected]>
(cherry picked from commit aa38ce0)
  • Loading branch information
jackyalbo authored and liranmauda committed Feb 13, 2024
1 parent fa32743 commit 8806024
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 50 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/run_cosi_test.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: COSI integration Tests
on: [push, pull_request, workflow_dispatch]
# SHOULD BE RETURNED ONCE COSI IS BACK
# on: [push, pull_request, workflow_dispatch]
on: []

jobs:
run-cosi-test:
Expand Down
45 changes: 24 additions & 21 deletions deploy/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ spec:
path: token
# For testing purposes change the audience to api
audience: openshift
- name: socket
emptyDir: {}
# SHOULD BE RETURNED ONCE COSI IS BACK
# - name: socket
# emptyDir: {}
- name: noobaa-ca-inject
configMap:
name: noobaa-ca-inject
Expand All @@ -45,8 +46,9 @@ spec:
readOnly: true
- name: noobaa-ca-inject
mountPath: /etc/pki/ca-trust/extracted/pem
- name: socket
mountPath: /var/lib/cosi
# SHOULD BE RETURNED ONCE COSI IS BACK
# - name: socket
# mountPath: /var/lib/cosi
resources:
limits:
cpu: "250m"
Expand All @@ -62,20 +64,21 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: objectstorage-provisioner-sidecar
image: COSI_SIDECAR_IMAGE
args:
- "--v=5"
resources:
limits:
cpu: "100m"
memory: "512Mi"
imagePullPolicy: Always
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- mountPath: /var/lib/cosi
name: socket
# SHOULD BE RETURNED ONCE COSI IS BACK
# - name: objectstorage-provisioner-sidecar
# image: COSI_SIDECAR_IMAGE
# args:
# - "--v=5"
# resources:
# limits:
# cpu: "100m"
# memory: "512Mi"
# imagePullPolicy: Always
# env:
# - name: POD_NAMESPACE
# valueFrom:
# fieldRef:
# fieldPath: metadata.namespace
# volumeMounts:
# - mountPath: /var/lib/cosi
# name: socket
47 changes: 25 additions & 22 deletions pkg/bundle/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -5898,7 +5898,7 @@ spec:
sourceNamespace: default
`

const Sha256_deploy_operator_yaml = "8f48fc9ae60e1ef5f25d6b1a7a6cd0a6e76f055eb0fc3f4dd5068d304ed111be"
const Sha256_deploy_operator_yaml = "1a2c110adc6763047d158e9021ea716e8d16ce734c0302c569b02e114189dff8"

const File_deploy_operator_yaml = `apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -5929,8 +5929,9 @@ spec:
path: token
# For testing purposes change the audience to api
audience: openshift
- name: socket
emptyDir: {}
# SHOULD BE RETURNED ONCE COSI IS BACK
# - name: socket
# emptyDir: {}
- name: noobaa-ca-inject
configMap:
name: noobaa-ca-inject
Expand All @@ -5947,8 +5948,9 @@ spec:
readOnly: true
- name: noobaa-ca-inject
mountPath: /etc/pki/ca-trust/extracted/pem
- name: socket
mountPath: /var/lib/cosi
# SHOULD BE RETURNED ONCE COSI IS BACK
# - name: socket
# mountPath: /var/lib/cosi
resources:
limits:
cpu: "250m"
Expand All @@ -5964,23 +5966,24 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: objectstorage-provisioner-sidecar
image: COSI_SIDECAR_IMAGE
args:
- "--v=5"
resources:
limits:
cpu: "100m"
memory: "512Mi"
imagePullPolicy: Always
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- mountPath: /var/lib/cosi
name: socket
# SHOULD BE RETURNED ONCE COSI IS BACK
# - name: objectstorage-provisioner-sidecar
# image: COSI_SIDECAR_IMAGE
# args:
# - "--v=5"
# resources:
# limits:
# cpu: "100m"
# memory: "512Mi"
# imagePullPolicy: Always
# env:
# - name: POD_NAMESPACE
# valueFrom:
# fieldRef:
# fieldPath: metadata.namespace
# volumeMounts:
# - mountPath: /var/lib/cosi
# name: socket
`

const Sha256_deploy_role_yaml = "ce3cbcb74a9309158d7cf71ef38e747fe76c1bc0fb0f15d3e5404a746ce988e1"
Expand Down
7 changes: 2 additions & 5 deletions pkg/controller/add_cosi.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
package controller

import (
"github.com/noobaa/noobaa-operator/v5/pkg/controller/cosi"
)

func init() {
// AddToManagerFuncs is a list of functions to create controllers and add them to a manager.
AddToManagerFuncs = append(AddToManagerFuncs, cosi.Add)
// SHOULD BE RETURNED ONCE COSI IS BACK
// AddToManagerFuncs = append(AddToManagerFuncs, cosi.Add)
}
3 changes: 2 additions & 1 deletion pkg/operator/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ func LoadOperatorConf(cmd *cobra.Command) *Conf {
c.Deployment.Spec.Template.Spec.ImagePullSecrets =
[]corev1.LocalObjectReference{{Name: options.ImagePullSecret}}
}
c.Deployment.Spec.Template.Spec.Containers[1].Image = options.CosiSideCarImage
// SHOULD BE RETURNED ONCE COSI IS BACK
// c.Deployment.Spec.Template.Spec.Containers[1].Image = options.CosiSideCarImage

return c
}
Expand Down

0 comments on commit 8806024

Please sign in to comment.