kudobuilder / kudo

Kubernetes Universal Declarative Operator (KUDO)
https://kudo.dev
Apache License 2.0
1.17k stars 103 forks source link

first-operator sample pipe-task does not work on OCP 4.7.45 #1810

Open dove-young opened 2 years ago

dove-young commented 2 years ago

What happened:

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

apiVersion: v1
kind: Pod
spec:
  volumes:
  - name: shared-data
    emptyDir: {}
  initContainers:
    - name: init
      image: busybox
      command: [ "/bin/sh", "-c" ]
      args:
        - wget -O /tmp/index.html 'http://cowsay.morecode.org/say?message=Good+things+come+when+you+least+expect+them&format=html' && tail -f /tmp/index.html
      volumeMounts:
        - name: shared-data
          mountPath: /tmp

[root@st2 ~]# [root@st2 ~]# kubectl kudo uninstall --instance first-operator-instance instance.kudo.dev/v1beta1/first-operator-instance deleted

[root@st2 ~]# [root@st2 ~]# kubectl kudo install ./first-operator -v 9 repo configs: { name:community, url:https://kudo-repository.storage.googleapis.com/v1 }

repository used { name:community, url:https://kudo-repository.storage.googleapis.com/v1 } acquiring kudo client getting operator package determining package type of /root/first-operator local operator discovered: /root/first-operator folder walking through directory first-operator folder walking through directory templates Preparing default/first-operator:0.1.0 for installation parameters in use: map[] operator.kudo.dev default/first-operator unchanged operatorversion default/first-operator-1.7.9-0.1.0 already installed instance first-operator-instance created in namespace default instance default/first-operator-instance created [root@st2 ~]#


- then I tried to update operator version and tried to use `kubectl kudo upgrade`, the `pipe-task` did not come again. 

[root@st2-bastion-dev21 ~]# kubectl kudo get all List of current installed operators including versions and instances in namespace "default": . └── first-operator └── first-operator-1.7.9-0.1.0 └── first-operator-instance

[root@st2 ~]# ^C [root@st2 ~]# kubectl kudo upgrade first-operator --instance first-operator-instance operatorversion default/first-operator-0.2.0 created instance default/first-operator-instance updated [root@st2 ~]# kubectl kudo get all List of current installed operators including versions and instances in namespace "default": . └── first-operator ├── first-operator-0.2.0 │   └── first-operator-instance └── first-operator-1.7.9-0.1.0

[root@st2 ~]#



**Environment**:
- Kubernetes version (use `kubectl version`):
- Kudo version (use `kubectl kudo version`): 
- Operator:
- operatorVersion:
- Cloud provider or hardware configuration:
- OS (e.g. from /etc/os-release):
- Kernel (e.g. `uname -a`):
- Install tools:
- Others: