Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect tag: ...-distroless #51040

Open
howardjohn opened this issue May 14, 2024 · 2 comments · May be fixed by #51302
Open

Detect tag: ...-distroless #51040

howardjohn opened this issue May 14, 2024 · 2 comments · May be fixed by #51302
Labels
area/ambient Issues related to ambient mesh area/user experience help wanted Indicates a PR/Issue that needs community help

Comments

@howardjohn
Copy link
Member

From slack:

"""
is distroless default in 1.22 ambient profile? was just on 1.21.x and minimal profile

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  profile: ambient
  hub: gcr.io/istio-release
  tag: {{ istioVersion }}-distroless

getting image pull errors now
Back-off pulling image "gcr.io/istio-release/pilot:1.22.0-distroless-distroless"

The issue is tag: {{ istioVersion }}-distroless
This is the old way to configure the image type. Now there is variant
Ambient defaults to vartiant: distroless
So you end up with <hub>/image:<tag>-<variant>

You should do

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  profile: ambient
  hub: gcr.io/istio-release
  tag: {{ istioVersion }}

for ambient
or if you want distroless off-ambient

apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
  hub: gcr.io/istio-release
  tag: {{ istioVersion }}
  variant: distroless

Probably we should automatically detect/warn/fix this case
"""


We can probably detect this in istioctl and warn or automatically correct it

@howardjohn howardjohn added area/user experience area/ambient Issues related to ambient mesh help wanted Indicates a PR/Issue that needs community help labels May 14, 2024
nicole-lihui added a commit to nicole-lihui/istio that referenced this issue May 30, 2024
@nicole-lihui
Copy link
Member

I tried to solve the problem.
and then I found that users could not use custom variant(The configuration parameters are not exposed and cannot be verified)

generate config: unknown field "variant" in v1alpha1.Values

@howardjohn
Copy link
Member Author

It is values.global.variant=debug, sorry my initial example was wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ambient Issues related to ambient mesh area/user experience help wanted Indicates a PR/Issue that needs community help
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants