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
Unable to override resources and tolerations for an operator deployment #1298
Comments
I have tried to add a selector: apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: tracing-operator-subscription
namespace: fleet-system
spec:
channel: preview
name: tracing-operator
source: tracing-operator-catalog
sourceNamespace: fleet-system
config:
selector:
matchLabels:
name: tracing-operator
resources:
limits:
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
tolerations:
- key: workload-isolation.infra.fleet
operator: Equal
value: default
effect: NoSchedule Here is the generated deployment: apiVersion: extensions/v1beta1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
creationTimestamp: "2020-02-19T13:17:42Z"
generation: 1
labels:
olm.owner: tracing-operator.v0.3.0
olm.owner.kind: ClusterServiceVersion
olm.owner.namespace: fleet-system
name: tracing-operator
namespace: fleet-system
ownerReferences:
- apiVersion: operators.coreos.com/v1alpha1
blockOwnerDeletion: false
controller: false
kind: ClusterServiceVersion
name: tracing-operator.v0.3.0
uid: dd83fd50-d486-4a73-aec2-285aa6a5ebce
resourceVersion: "14661603"
selfLink: /apis/extensions/v1beta1/namespaces/fleet-system/deployments/tracing-operator
uid: 884382ea-c3fd-410e-974b-a6867530ec9d
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
name: tracing-operator
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
annotations:
alm-examples: '[]'
capabilities: Basic Install
olm.operatorGroup: fleet-operators
olm.operatorNamespace: fleet-system
olm.targetNamespaces: fleet-system
creationTimestamp: null
labels:
name: tracing-operator
spec:
containers:
- env:
- name: OPERATOR_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.annotations['olm.targetNamespaces']
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: OPERATOR_NAME
value: tracing-operator
image: gcr.io/tg-rdv/fleet/tracing-operator:v0.3.0
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz/liveness
port: http-metrics
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
name: tracing-operator
ports:
- containerPort: 8383
name: http-metrics
protocol: TCP
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz/readiness
port: http-metrics
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: tracing-operator
serviceAccountName: tracing-operator
terminationGracePeriodSeconds: 30 However, the |
Hello @secat, Thank you for using OLM and starting this discussion. As you said, Tolerations and Restrictions are not acted on by OLM. AFAIK, only the resources listed within the OLM-Book are supported at this time. I spoke with @tkashem offline, who had said that he based the SubscriptionConfig object on the kubernetes PodSpec definition, just to keep room for future growth as captured in the operator-config proposal. |
I marked this as a |
@umangachapagain You are welcome to work on this issue as you requested. |
2 similar comments
hey guys can anyone help me with my issue ? |
Fixed by #1334 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Should we close this out? It looks like #1334 implementation this functionality a while back but automation didn't pick up that PR. |
This issue is stale. Closed. Please feel free to reopen if needed. |
I am currently unable to override the
resources
andtolerations
field for an operator deployment. According to thesubscriptions.operators.coreos.com
CRD, there is a field namedsubscription.spec.config
to do so.I have deployed a
subscription
CR using the following manifest:Here is the status:
These overrides are missing in the automatic generated
installplan
CRD.Here is the generated
deployment
manifest:Also the
annotation
namedolm.targetNamespaces
is not injected inside the deployment.Am I missing something?
I am currently using:
The text was updated successfully, but these errors were encountered: