-
Notifications
You must be signed in to change notification settings - Fork 158
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
fix: add missing label on Authronio CR to have istio sidecar #1490
Conversation
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
This will not work, labels from Operator CR are not propagated to Deployment's That's why we have opendatahub-operator/controllers/dscinitialization/servicemesh_setup.go Lines 216 to 238 in fe44f28
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: dhirajsb The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@bartoszmajsak this is a prerequisite to allow Authorino to copy that label to it's deployment. I'm not sure whether it actually does that or not. |
@dhirajsb Please read the comment in the code I linked above.
Then how come you |
I looked at the code in Authorino again (Kuadrant/authorino-operator#91) and it should work by quickly looking at unit tests, but there seems to be a bug, as after applying: ❯ kubectl apply -f -<<EOF
apiVersion: operator.authorino.kuadrant.io/v1beta1
kind: Authorino
metadata:
name: authorino
labels:
sidecar.istio.io/inject: "true"
spec:
image: quay.io/kuadrant/authorino:latest
replicas: 1
clusterWide: true
listener:
tls:
enabled: false
oidcServer:
tls:
enabled: false
EOF
authorino.operator.authorino.kuadrant.io/authorino created my deployment looks like that: apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: "2025-01-09T17:46:27Z"
generation: 1
labels:
sidecar.istio.io/inject: "true"
name: authorino
namespace: default
ownerReferences:
- apiVersion: operator.authorino.kuadrant.io/v1beta1
blockOwnerDeletion: true
controller: true
kind: Authorino
name: authorino
uid: 26155b7b-3ef0-4fb6-98d8-741a0c180f6f
resourceVersion: "584"
uid: f64c0bca-a799-4d15-b3e9-1c5018671b35
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
authorino-resource: authorino
control-plane: controller-manager
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
authorino-resource: authorino
control-plane: controller-manager
spec:
containers:
- image: quay.io/kuadrant/authorino:latest
imagePullPolicy: Always
name: authorino
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: authorino-authorino
serviceAccountName: authorino-authorino
terminationGracePeriodSeconds: 30
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2025-01-09T17:46:38Z"
lastUpdateTime: "2025-01-09T17:46:38Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
- lastTransitionTime: "2025-01-09T17:46:27Z"
lastUpdateTime: "2025-01-09T17:46:38Z"
message: ReplicaSet "authorino-589494f86b" has successfully progressed.
reason: NewReplicaSetAvailable
status: "True"
type: Progressing
observedGeneration: 1
readyReplicas: 1
replicas: 1
updatedReplicas: 1 /cc @guicassolato |
@bartoszmajsak: GitHub didn't allow me to request PR reviews from the following users: guicassolato. Note that only opendatahub-io members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
i will close my PR as deployment.injection.patch.tmpl should do the work |
FYI I opened PR with the fix in Authorino Operator Kuadrant/authorino-operator#236. Once this is merged and available in the version you rely on the aforementioned YAML patch can be entirely removed. |
@bartoszmajsak after your Authorino fix goes in, we still need to add this label to the Authorino CR, correct? That's why I appoved this PR. |
i will wait for mentioned PR get into Authorino release first then make a new PR with this (add label) change and cleanup patch template in one go. |
But merging this now will be a source of confusion, as it has no effect on the behavior in the cluster. I think it's better to add it when it actually can be properly verified (together with removal of the current patchy approach). @zdtsw it will also require removing |
…flux/component-updates/odh-dashboard-v2-17 chore(deps): update odh-dashboard-v2-17 to d46a387
Description
How Has This Been Tested?
Screenshot or short clip
Merge criteria