-
Notifications
You must be signed in to change notification settings - Fork 105
Deploy ToolHive Operator into OpenShift (#1063) #1253
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
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
95da812
Deploy ToolHive Operator into OpenShift (#1063)
RoddieKieley 77c9100
Merge branch 'main' into issue1063
ChrisJBurns 88752f6
Merged main.
RoddieKieley 7177140
Address minor extraneous config, debug logging, and OpenShift values.…
RoddieKieley 2f79a3a
Fix failing single test and operator deployment from custom helm char…
RoddieKieley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,180 @@ | ||
# -- Override the name of the chart | ||
nameOverride: "" | ||
# -- Provide a fully-qualified name override for resources | ||
fullnameOverride: "toolhive-operator" | ||
|
||
# -- All values for the operator deployment and associated resources | ||
operator: | ||
|
||
# -- Number of replicas for the operator deployment | ||
replicaCount: 1 | ||
|
||
# -- List of image pull secrets to use | ||
imagePullSecrets: [] | ||
# -- Container image for the operator | ||
image: ghcr.io/stacklok/toolhive/operator:v0.2.0 | ||
# -- Image pull policy for the operator container | ||
imagePullPolicy: IfNotPresent | ||
|
||
# -- Image to use for Toolhive runners | ||
toolhiveRunnerImage: ghcr.io/stacklok/toolhive/proxyrunner:v0.2.0 | ||
|
||
# -- Host for the proxy deployed by the operator | ||
proxyHost: 0.0.0.0 | ||
|
||
# -- Environment variables to set in the operator container | ||
env: {} | ||
|
||
# -- List of ports to expose from the operator container | ||
ports: | ||
- containerPort: 8080 | ||
name: metrics | ||
protocol: TCP | ||
- containerPort: 8081 | ||
name: health | ||
protocol: TCP | ||
|
||
# -- Annotations to add to the operator pod | ||
podAnnotations: {} | ||
# -- Labels to add to the operator pod | ||
podLabels: {} | ||
|
||
# -- Pod security context settings | ||
podSecurityContext: | ||
runAsNonRoot: true | ||
seccompProfile: | ||
type: RuntimeDefault | ||
|
||
# -- Container security context settings for the operator | ||
containerSecurityContext: | ||
allowPrivilegeEscalation: false | ||
readOnlyRootFilesystem: true | ||
runAsNonRoot: true | ||
runAsUser: | ||
capabilities: | ||
drop: | ||
- ALL | ||
|
||
# -- Liveness probe configuration for the operator | ||
livenessProbe: | ||
httpGet: | ||
path: /healthz | ||
port: health | ||
initialDelaySeconds: 15 | ||
periodSeconds: 20 | ||
# -- Readiness probe configuration for the operator | ||
readinessProbe: | ||
httpGet: | ||
path: /readyz | ||
port: health | ||
initialDelaySeconds: 5 | ||
periodSeconds: 10 | ||
|
||
# -- Configuration for horizontal pod autoscaling | ||
autoscaling: | ||
# -- Enable autoscaling for the operator | ||
enabled: false | ||
# -- Minimum number of replicas | ||
minReplicas: 1 | ||
# -- Maximum number of replicas | ||
maxReplicas: 100 | ||
# -- Target CPU utilization percentage for autoscaling | ||
targetCPUUtilizationPercentage: 80 | ||
# -- Target memory utilization percentage for autoscaling (uncomment to enable) | ||
# targetMemoryUtilizationPercentage: 80 | ||
|
||
# -- Resource requests and limits for the operator container | ||
resources: | ||
limits: | ||
cpu: 500m | ||
memory: 384Mi | ||
requests: | ||
cpu: 10m | ||
memory: 192Mi | ||
|
||
# -- RBAC configuration for the operator | ||
rbac: | ||
# -- Scope of the RBAC configuration. | ||
# - cluster: The operator will have cluster-wide permissions via ClusterRole and ClusterRoleBinding. | ||
# - namespace: The operator will have permissions to manage resources in the namespaces specified in `allowedNamespaces`. | ||
# The operator will have a ClusterRole and RoleBinding for each namespace in `allowedNamespaces`. | ||
scope: cluster | ||
# -- List of namespaces that the operator is allowed to have permissions to manage. | ||
# Only used if scope is set to "namespace". | ||
allowedNamespaces: [] | ||
|
||
# -- Service account configuration for the operator | ||
serviceAccount: | ||
# -- Specifies whether a service account should be created | ||
create: true | ||
# -- Automatically mount a ServiceAccount's API credentials | ||
automountServiceAccountToken: true | ||
# -- Annotations to add to the service account | ||
annotations: {} | ||
# -- Labels to add to the service account | ||
labels: {} | ||
# -- The name of the service account to use. If not set and create is true, a name is generated. | ||
name: "toolhive-operator" | ||
|
||
# -- Leader election role configuration | ||
leaderElectionRole: | ||
# -- Name of the role for leader election | ||
name: toolhive-operator-leader-election-role | ||
binding: | ||
# -- Name of the role binding for leader election | ||
name: toolhive-operator-leader-election-rolebinding | ||
# -- Rules for the leader election role | ||
rules: | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- configmaps | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- update | ||
- patch | ||
- delete | ||
- apiGroups: | ||
- coordination.k8s.io | ||
resources: | ||
- leases | ||
verbs: | ||
- get | ||
- list | ||
- watch | ||
- create | ||
- update | ||
- patch | ||
- delete | ||
- apiGroups: | ||
- "" | ||
resources: | ||
- events | ||
verbs: | ||
- create | ||
- patch | ||
|
||
# -- Additional volumes to mount on the operator pod | ||
volumes: [] | ||
# - name: foo | ||
# secret: | ||
# secretName: mysecret | ||
# optional: false | ||
|
||
# -- Additional volume mounts on the operator container | ||
volumeMounts: [] | ||
# - name: foo | ||
# mountPath: "/etc/foo" | ||
# readOnly: true | ||
|
||
# -- Node selector for the operator pod | ||
nodeSelector: {} | ||
|
||
# -- Tolerations for the operator pod | ||
tolerations: [] | ||
|
||
# -- Affinity settings for the operator pod | ||
affinity: {} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.