litmuschaos / litmus

Litmus helps SREs and developers practice chaos engineering in a Cloud-native way. Chaos experiments are published at the ChaosHub (https://hub.litmuschaos.io). Community notes is at https://hackmd.io/a4Zu_sH4TZGeih-xCimi3Q
https://litmuschaos.io
Apache License 2.0
4.43k stars 694 forks source link

Litmus-Installation should use Image-Digest #openshift #3445

Open bejay633 opened 2 years ago

bejay633 commented 2 years ago

What happened:

What you expected to happen: Images pulled from container-registry.internal instead of docker.io

Where can this issue be corrected? (optional) Helm and YAML-Files should provide image-Digest instead of version-tags. Example: docker.io/litmuschaos/litmusportal-frontend:latest = docker.io/litmuschaos/litmusportal-frontend@sha256:aaaaaa

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

cat <<EOF | kubectl apply -f -
apiVersion: operator.openshift.io/v1alpha1
kind: ImageContentSourcePolicy
metadata:
  name: litmus
spec:
  repositoryDigestMirrors:
    - mirrors:
        - container-registry.internal/litmuschaos/litmusportal-frontend
      source: docker.io/litmuschaos/litmusportal-frontend
    - mirrors:
        - container-registry.internal/litmuschaos/litmusportal-auth-server
      source: docker.io/litmuschaos/litmusportal-auth-server
    - mirrors:
        - container-registry.internal/litmuschaos/curl
      source: docker.io/litmuschaos/curl
    - mirrors:
        - container-registry.internal/library/mongo
      source: docker.io/mongo
    - mirrors:
        - container-registry.internal/litmuschaos/litmusportal-subscriber
      source: docker.io/litmuschaos/litmusportal-subscriber
    - mirrors:
        - container-registry.internal/litmuschaos/workflow-controller
      source: docker.io/litmuschaos/workflow-controller
    - mirrors:
        - container-registry.internal/litmuschaos/litmusportal-event-tracker
      source: docker.io/litmuschaos/litmusportal-event-tracker
    - mirrors:
        - container-registry.internal/litmuschaos/mongo
      source: docker.io/litmuschaos/mongo
    - mirrors:
        - container-registry.internal/litmuschaos/chaos-exporter
      source: docker.io/litmuschaos/chaos-exporter
EOF
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Pod
metadata:
  name: ubuntu
spec:
  containers:
  - name: ubuntu
    #image: docker.io/litmuschaos/litmusportal-frontend:latest
    command: [ "/bin/bash", "-c", "--" ]
    args: [ "while true; do sleep 30; done;" ]
EOF

Anything else we need to know?:

sips4711 commented 2 years ago

Same here...

sips4711 commented 2 years ago

Any News on that?