Skip to content

Commit

Permalink
Merge pull request #91 from francescotimperi/osh-testing
Browse files Browse the repository at this point in the history
chore: various fix to deploy the operator on openshift
  • Loading branch information
francescotimperi authored Aug 8, 2023
2 parents 7c217c4 + 9b58675 commit 47e49a1
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 28 deletions.
8 changes: 4 additions & 4 deletions deploy/minio/01-minio-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ spec:
- name: MINIO_ROOT_PASSWORD
value: minio123
ports:
- containerPort: 9000
hostPort: 9000
- containerPort: 9090
hostPort: 9090
- name: api
containerPort: 9000
- name: content
containerPort: 9090
volumeMounts:
- name: storage # must match the volume name, above
mountPath: "/storage"
2 changes: 1 addition & 1 deletion deploy/nginx-static/nginx-static-sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
command: ['sh', '-c', "until nslookup minio.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for minio; sleep 2; done"]
containers:
- name: nuvolaris-static
image: nginx
image: bitnami/nginx:1.25.1
ports:
- containerPort: 80
volumeMounts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.9.2
creationTimestamp: null
name: kubegres.kubegres.reactive-tech.io
spec:
group: kubegres.reactive-tech.io
Expand Down
14 changes: 3 additions & 11 deletions deploy/nuvolaris-permissions/nuvolaris-kubegres-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,27 +149,19 @@ rules:
resources:
- kubegres
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- "*"
- apiGroups:
- kubegres.reactive-tech.io
resources:
- kubegres/finalizers
verbs:
- update
- "*"
- apiGroups:
- kubegres.reactive-tech.io
resources:
- kubegres/status
verbs:
- get
- patch
- update
- "*"
- apiGroups:
- storage.k8s.io
resources:
Expand Down
6 changes: 3 additions & 3 deletions deploy/nuvolaris-permissions/operator-roles.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ rules:
resources: ["middlewares"]
verbs: ["get","patch","list","update","watch","create","delete"]

# required for kubegres
- apiGroups: ["kubegres.reactive-tech.io"]
resources: ["kubegres","kubegres/finalizers","kubegres/status"]
# required for kubegres #resources:
- apiGroups: ["kubegres.reactive-tech.io"]
resources: ["kubegres","kubegres/status","kubegres/finalizers"]
verbs: ["get","patch","list","update","watch","create","delete"]

---
Expand Down
2 changes: 1 addition & 1 deletion nuvolaris/minio.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create(owner=None):
tplp = ["00-minio-pvc.yaml","01-minio-dep.yaml","02-minio-svc.yaml"]

if runtime == "openshift":
tplp.append("security-set-attach.yaml")
tplp.append("security-dep-attach.yaml")

kust = kus.patchTemplates("minio", tplp, data)
spec = kus.kustom_list("minio", kust, templates=[], data=data)
Expand Down
8 changes: 4 additions & 4 deletions nuvolaris/templates/01-minio-dep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ spec:
- name: MINIO_ROOT_PASSWORD
value: {{minio_root_password}}
ports:
- containerPort: 9000
hostPort: 9000
- containerPort: 9090
hostPort: 9090
- name: api
containerPort: 9000
- name: content
containerPort: 9090
volumeMounts:
- name: storage # must match the volume name, above
mountPath: "/storage"
2 changes: 1 addition & 1 deletion nuvolaris/templates/nginx-static-sts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ spec:
command: ['sh', '-c', "until nslookup {{minio_host}}.$(cat /var/run/secrets/kubernetes.io/serviceaccount/namespace).svc.cluster.local; do echo waiting for minio; sleep 2; done"]
containers:
- name: nuvolaris-static
image: nginx
image: bitnami/nginx:1.25.1
ports:
- containerPort: 80
volumeMounts:
Expand Down
4 changes: 2 additions & 2 deletions tests/openshift/whisk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ metadata:
namespace: nuvolaris
spec:
nuvolaris:
apihost: $APIHOST_OSH
apihost: api.apps.nuvolaris.osh.n9s.cc #$APIHOST_OSH
components:
# start openwhisk controller
openwhisk: true
Expand All @@ -39,7 +39,7 @@ spec:
# start cron based action parser
cron: true
# tls enabled or not
tls: true
tls: false
# minio enabled or not
minio: true
# minio static enabled or not
Expand Down

0 comments on commit 47e49a1

Please sign in to comment.