Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
26fe79dc
Unverified
Commit
26fe79dc
authored
Apr 23, 2025
by
julienmancuso
Committed by
GitHub
Apr 23, 2025
Browse files
feat: rename operator CRDs (#795)
parent
a03fd307
Changes
48
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
96 additions
and
392 deletions
+96
-392
deploy/dynamo/operator/cmd/main.go
deploy/dynamo/operator/cmd/main.go
+8
-8
deploy/dynamo/operator/config/crd/bases/nvidia.com_dynamocomponentdeployments.yaml
...nfig/crd/bases/nvidia.com_dynamocomponentdeployments.yaml
+11
-11
deploy/dynamo/operator/config/crd/bases/nvidia.com_dynamocomponentrequests.yaml
.../config/crd/bases/nvidia.com_dynamocomponentrequests.yaml
+14
-40
deploy/dynamo/operator/config/crd/bases/nvidia.com_dynamocomponents.yaml
...perator/config/crd/bases/nvidia.com_dynamocomponents.yaml
+8
-30
deploy/dynamo/operator/config/crd/bases/nvidia.com_dynamographdeployments.yaml
...r/config/crd/bases/nvidia.com_dynamographdeployments.yaml
+7
-7
deploy/dynamo/operator/config/crd/kustomization.yaml
deploy/dynamo/operator/config/crd/kustomization.yaml
+7
-7
deploy/dynamo/operator/config/rbac/dynamonim_editor_role.yaml
...oy/dynamo/operator/config/rbac/dynamonim_editor_role.yaml
+0
-42
deploy/dynamo/operator/config/rbac/dynamonim_viewer_role.yaml
...oy/dynamo/operator/config/rbac/dynamonim_viewer_role.yaml
+0
-38
deploy/dynamo/operator/config/rbac/dynamonimdeployment_editor_role.yaml
...operator/config/rbac/dynamonimdeployment_editor_role.yaml
+0
-42
deploy/dynamo/operator/config/rbac/dynamonimdeployment_viewer_role.yaml
...operator/config/rbac/dynamonimdeployment_viewer_role.yaml
+0
-38
deploy/dynamo/operator/config/rbac/dynamonimrequest_editor_role.yaml
...mo/operator/config/rbac/dynamonimrequest_editor_role.yaml
+0
-42
deploy/dynamo/operator/config/rbac/dynamonimrequest_viewer_role.yaml
...mo/operator/config/rbac/dynamonimrequest_viewer_role.yaml
+0
-38
deploy/dynamo/operator/config/rbac/kustomization.yaml
deploy/dynamo/operator/config/rbac/kustomization.yaml
+6
-6
deploy/dynamo/operator/config/rbac/role.yaml
deploy/dynamo/operator/config/rbac/role.yaml
+11
-11
deploy/dynamo/operator/config/samples/kustomization.yaml
deploy/dynamo/operator/config/samples/kustomization.yaml
+4
-4
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha1_dynamocomponentdeployment.yaml
...amples/nvidia.com_v1alpha1_dynamocomponentdeployment.yaml
+2
-2
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha1_dynamocomponentrequest.yaml
...g/samples/nvidia.com_v1alpha1_dynamocomponentrequest.yaml
+2
-2
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha1_dynamographdeployment.yaml
...ig/samples/nvidia.com_v1alpha1_dynamographdeployment.yaml
+3
-3
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha_dynamocomponent.yaml
...or/config/samples/nvidia.com_v1alpha_dynamocomponent.yaml
+2
-2
deploy/dynamo/operator/internal/consts/consts.go
deploy/dynamo/operator/internal/consts/consts.go
+11
-19
No files found.
deploy/dynamo/operator/cmd/main.go
View file @
26fe79dc
...
...
@@ -176,39 +176,39 @@ func main() {
setupLog
.
Error
(
err
,
"unable to create etcd client"
)
os
.
Exit
(
1
)
}
if
err
=
(
&
controller
.
Dynamo
Nim
DeploymentReconciler
{
if
err
=
(
&
controller
.
Dynamo
Component
DeploymentReconciler
{
Client
:
mgr
.
GetClient
(),
Scheme
:
mgr
.
GetScheme
(),
Recorder
:
mgr
.
GetEventRecorderFor
(
"dynamo
-
deployment"
),
Recorder
:
mgr
.
GetEventRecorderFor
(
"dynamo
component
deployment"
),
Config
:
ctrlConfig
,
NatsAddr
:
natsAddr
,
EtcdAddr
:
etcdAddr
,
EtcdStorage
:
etcd
.
NewStorage
(
cli
),
UseVirtualService
:
istioVirtualServiceGateway
!=
""
,
})
.
SetupWithManager
(
mgr
);
err
!=
nil
{
setupLog
.
Error
(
err
,
"unable to create controller"
,
"controller"
,
"Dynamo
Nim
Deployment"
)
setupLog
.
Error
(
err
,
"unable to create controller"
,
"controller"
,
"Dynamo
Component
Deployment"
)
os
.
Exit
(
1
)
}
if
err
=
(
&
controller
.
Dynamo
Nim
RequestReconciler
{
if
err
=
(
&
controller
.
Dynamo
Component
RequestReconciler
{
Client
:
mgr
.
GetClient
(),
Scheme
:
mgr
.
GetScheme
(),
Recorder
:
mgr
.
GetEventRecorderFor
(
"dynamo-image-builder"
),
Config
:
ctrlConfig
,
})
.
SetupWithManager
(
mgr
);
err
!=
nil
{
setupLog
.
Error
(
err
,
"unable to create controller"
,
"controller"
,
"Dynamo
Nim
Request"
)
setupLog
.
Error
(
err
,
"unable to create controller"
,
"controller"
,
"Dynamo
Component
Request"
)
os
.
Exit
(
1
)
}
if
err
=
(
&
controller
.
DynamoDeploymentReconciler
{
if
err
=
(
&
controller
.
Dynamo
Graph
DeploymentReconciler
{
Client
:
mgr
.
GetClient
(),
Scheme
:
mgr
.
GetScheme
(),
Recorder
:
mgr
.
GetEventRecorderFor
(
"dynamodeployment"
),
Recorder
:
mgr
.
GetEventRecorderFor
(
"dynamo
graph
deployment"
),
Config
:
ctrlConfig
,
VirtualServiceGateway
:
istioVirtualServiceGateway
,
IngressControllerClassName
:
ingressControllerClassName
,
IngressControllerTLSSecret
:
ingressControllerTLSSecretName
,
IngressHostSuffix
:
ingressHostSuffix
,
})
.
SetupWithManager
(
mgr
);
err
!=
nil
{
setupLog
.
Error
(
err
,
"unable to create controller"
,
"controller"
,
"DynamoDeployment"
)
setupLog
.
Error
(
err
,
"unable to create controller"
,
"controller"
,
"Dynamo
Graph
Deployment"
)
os
.
Exit
(
1
)
}
//+kubebuilder:scaffold:builder
...
...
deploy/dynamo/
helm/platform/components/operator/charts/dynamo-crds/crd
s/nvidia.com_dynamo
nim
deployments.yaml
→
deploy/dynamo/
operator/config/crd/base
s/nvidia.com_dynamo
component
deployments.yaml
View file @
26fe79dc
...
...
@@ -19,20 +19,20 @@ kind: CustomResourceDefinition
metadata
:
annotations
:
controller-gen.kubebuilder.io/version
:
v0.16.4
name
:
dynamo
nim
deployments.nvidia.com
name
:
dynamo
component
deployments.nvidia.com
spec
:
group
:
nvidia.com
names
:
kind
:
Dynamo
Nim
Deployment
listKind
:
Dynamo
Nim
DeploymentList
plural
:
dynamo
nim
deployments
singular
:
dynamo
nim
deployment
kind
:
Dynamo
Component
Deployment
listKind
:
Dynamo
Component
DeploymentList
plural
:
dynamo
component
deployments
singular
:
dynamo
component
deployment
scope
:
Namespaced
versions
:
-
additionalPrinterColumns
:
-
description
:
B
ent
o
jsonPath
:
.spec.
b
ent
o
name
:
B
ent
o
-
description
:
Dynamo compon
ent
jsonPath
:
.spec.
dynamoCompon
ent
name
:
DynamoCompon
ent
type
:
string
-
description
:
Available
jsonPath
:
.status.conditions[?(@.type=='Available')].status
...
...
@@ -389,9 +389,9 @@ spec:
minReplicas
:
type
:
integer
type
:
object
dynamo
Namespace
:
dynamo
Component
:
type
:
string
dynamoN
im
:
dynamoN
amespace
:
type
:
string
dynamoTag
:
type
:
string
...
...
@@ -2798,7 +2798,7 @@ spec:
serviceName
:
type
:
string
required
:
-
dynamo
Nim
-
dynamo
Component
-
dynamoTag
type
:
object
status
:
...
...
deploy/dynamo/operator/config/crd/bases/nvidia.com_dynamo
nim
requests.yaml
→
deploy/dynamo/operator/config/crd/bases/nvidia.com_dynamo
component
requests.yaml
View file @
26fe79dc
...
...
@@ -19,36 +19,32 @@ kind: CustomResourceDefinition
metadata
:
annotations
:
controller-gen.kubebuilder.io/version
:
v0.16.4
name
:
dynamo
nim
requests.nvidia.com
name
:
dynamo
component
requests.nvidia.com
spec
:
group
:
nvidia.com
names
:
kind
:
Dynamo
Nim
Request
listKind
:
Dynamo
Nim
RequestList
plural
:
dynamo
nim
requests
singular
:
dynamo
nim
request
kind
:
Dynamo
Component
Request
listKind
:
Dynamo
Component
RequestList
plural
:
dynamo
component
requests
singular
:
dynamo
component
request
scope
:
Namespaced
versions
:
-
additionalPrinterColumns
:
-
description
:
Bento Tag
jsonPath
:
.spec.
bentoTag
name
:
Bento-Tag
-
description
:
Dynamo component
jsonPath
:
.spec.
dynamoComponent
name
:
DynamoComponent
type
:
string
-
description
:
Download URL
jsonPath
:
.spec.downloadUrl
name
:
Download-Url
type
:
string
-
description
:
Image
jsonPath
:
.spec.image
name
:
Image
type
:
string
-
description
:
Image Exists
jsonPath
:
.status.conditions[?(@.type=='ImageExists')].status
name
:
Image-Exists
type
:
string
-
description
:
B
ent
o
Available
jsonPath
:
.status.conditions[?(@.type=='
B
ent
o
Available')].status
name
:
B
ent
o
-Available
-
description
:
Dynamo Compon
ent Available
jsonPath
:
.status.conditions[?(@.type=='
DynamoCompon
entAvailable')].status
name
:
DynamoCompon
ent-Available
type
:
string
-
jsonPath
:
.metadata.creationTimestamp
name
:
Age
...
...
@@ -65,17 +61,10 @@ spec:
type
:
object
spec
:
properties
:
bentoTag
:
type
:
string
buildArgs
:
items
:
type
:
string
type
:
array
context
:
properties
:
bentomlVersion
:
type
:
string
type
:
object
dockerConfigJsonSecretName
:
type
:
string
downloadUrl
:
...
...
@@ -105,6 +94,8 @@ spec:
x-kubernetes-map-type
:
atomic
type
:
object
type
:
array
dynamoComponent
:
type
:
string
image
:
type
:
string
imageBuildTimeout
:
...
...
@@ -1422,29 +1413,12 @@ spec:
type
:
object
type
:
array
type
:
object
models
:
items
:
properties
:
downloadUrl
:
type
:
string
size
:
anyOf
:
-
type
:
integer
-
type
:
string
pattern
:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string
:
true
tag
:
type
:
string
required
:
-
tag
type
:
object
type
:
array
ociRegistryInsecure
:
type
:
boolean
serviceName
:
type
:
string
required
:
-
bentoTag
-
dynamoComponent
type
:
object
status
:
properties
:
...
...
deploy/dynamo/
helm/platform/components/operator/charts/dynamo-crds/crd
s/nvidia.com_dynamo
nim
s.yaml
→
deploy/dynamo/
operator/config/crd/base
s/nvidia.com_dynamo
component
s.yaml
View file @
26fe79dc
...
...
@@ -19,14 +19,14 @@ kind: CustomResourceDefinition
metadata
:
annotations
:
controller-gen.kubebuilder.io/version
:
v0.16.4
name
:
dynamo
nim
s.nvidia.com
name
:
dynamo
component
s.nvidia.com
spec
:
group
:
nvidia.com
names
:
kind
:
Dynamo
Nim
listKind
:
Dynamo
Nim
List
plural
:
dynamo
nim
s
singular
:
dynamo
nim
kind
:
Dynamo
Component
listKind
:
Dynamo
Component
List
plural
:
dynamo
component
s
singular
:
dynamo
component
scope
:
Namespaced
versions
:
-
name
:
v1alpha1
...
...
@@ -41,11 +41,8 @@ spec:
type
:
object
spec
:
properties
:
context
:
properties
:
bentomlVersion
:
dynamoComponent
:
type
:
string
type
:
object
image
:
type
:
string
imagePullSecrets
:
...
...
@@ -57,30 +54,11 @@ spec:
type
:
object
x-kubernetes-map-type
:
atomic
type
:
array
models
:
items
:
properties
:
downloadUrl
:
type
:
string
size
:
anyOf
:
-
type
:
integer
-
type
:
string
pattern
:
^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string
:
true
tag
:
type
:
string
required
:
-
tag
type
:
object
type
:
array
serviceName
:
type
:
string
tag
:
type
:
string
required
:
-
dynamoComponent
-
image
-
tag
type
:
object
status
:
properties
:
...
...
deploy/dynamo/operator/config/crd/bases/nvidia.com_dynamodeployments.yaml
→
deploy/dynamo/operator/config/crd/bases/nvidia.com_dynamo
graph
deployments.yaml
View file @
26fe79dc
...
...
@@ -19,14 +19,14 @@ kind: CustomResourceDefinition
metadata
:
annotations
:
controller-gen.kubebuilder.io/version
:
v0.16.4
name
:
dynamodeployments.nvidia.com
name
:
dynamo
graph
deployments.nvidia.com
spec
:
group
:
nvidia.com
names
:
kind
:
DynamoDeployment
listKind
:
DynamoDeploymentList
plural
:
dynamodeployments
singular
:
dynamodeployment
kind
:
Dynamo
Graph
Deployment
listKind
:
Dynamo
Graph
DeploymentList
plural
:
dynamo
graph
deployments
singular
:
dynamo
graph
deployment
scope
:
Namespaced
versions
:
-
name
:
v1alpha1
...
...
@@ -41,7 +41,7 @@ spec:
type
:
object
spec
:
properties
:
dynamo
Nim
:
dynamo
Graph
:
type
:
string
envs
:
items
:
...
...
@@ -2855,7 +2855,7 @@ spec:
type
:
object
type
:
object
required
:
-
dynamo
Nim
-
dynamo
Graph
type
:
object
status
:
properties
:
...
...
deploy/dynamo/operator/config/crd/kustomization.yaml
View file @
26fe79dc
...
...
@@ -17,10 +17,10 @@
# since it depends on service name and namespace that are out of this kustomize package.
# It should be run by config/default
resources
:
-
bases/nvidia.com_dynamo
nim
deployments.yaml
-
bases/nvidia.com_dynamo
nim
requests.yaml
-
bases/nvidia.com_dynamo
nim
s.yaml
-
bases/nvidia.com_dynamodeployments.yaml
-
bases/nvidia.com_dynamo
component
deployments.yaml
-
bases/nvidia.com_dynamo
component
requests.yaml
-
bases/nvidia.com_dynamo
component
s.yaml
-
bases/nvidia.com_dynamo
graph
deployments.yaml
#+kubebuilder:scaffold:crdkustomizeresource
patches
:
[]
...
...
@@ -30,9 +30,9 @@ patches: []
# [CERTMANAGER] To enable cert-manager, uncomment all the sections with [CERTMANAGER] prefix.
# patches here are for enabling the CA injection for each CRD
#- path: patches/cainjection_in_dynamo
nim
deployments.yaml
#- path: patches/cainjection_in_dynamo
nim
requests.yaml
#- path: patches/cainjection_in_dynamo
nim
s.yaml
#- path: patches/cainjection_in_dynamo
component
deployments.yaml
#- path: patches/cainjection_in_dynamo
component
requests.yaml
#- path: patches/cainjection_in_dynamo
component
s.yaml
#+kubebuilder:scaffold:crdkustomizecainjectionpatch
# [WEBHOOK] To enable webhook, uncomment the following section
...
...
deploy/dynamo/operator/config/rbac/dynamonim_editor_role.yaml
deleted
100644 → 0
View file @
a03fd307
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# permissions for end users to edit dynamonims.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
labels
:
app.kubernetes.io/name
:
dynamo-kubernetes-operator
app.kubernetes.io/managed-by
:
kustomize
name
:
dynamonim-editor-role
rules
:
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonims
verbs
:
-
create
-
delete
-
get
-
list
-
patch
-
update
-
watch
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonims/status
verbs
:
-
get
deploy/dynamo/operator/config/rbac/dynamonim_viewer_role.yaml
deleted
100644 → 0
View file @
a03fd307
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# permissions for end users to view dynamonims.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
labels
:
app.kubernetes.io/name
:
dynamo-kubernetes-operator
app.kubernetes.io/managed-by
:
kustomize
name
:
dynamonim-viewer-role
rules
:
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonims
verbs
:
-
get
-
list
-
watch
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonims/status
verbs
:
-
get
deploy/dynamo/operator/config/rbac/dynamonimdeployment_editor_role.yaml
deleted
100644 → 0
View file @
a03fd307
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# permissions for end users to edit dynamonimdeployments.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
labels
:
app.kubernetes.io/name
:
dynamo-kubernetes-operator
app.kubernetes.io/managed-by
:
kustomize
name
:
dynamonimdeployment-editor-role
rules
:
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonimdeployments
verbs
:
-
create
-
delete
-
get
-
list
-
patch
-
update
-
watch
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonimdeployments/status
verbs
:
-
get
deploy/dynamo/operator/config/rbac/dynamonimdeployment_viewer_role.yaml
deleted
100644 → 0
View file @
a03fd307
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# permissions for end users to view dynamonimdeployments.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
labels
:
app.kubernetes.io/name
:
dynamo-kubernetes-operator
app.kubernetes.io/managed-by
:
kustomize
name
:
dynamonimdeployment-viewer-role
rules
:
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonimdeployments
verbs
:
-
get
-
list
-
watch
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonimdeployments/status
verbs
:
-
get
deploy/dynamo/operator/config/rbac/dynamonimrequest_editor_role.yaml
deleted
100644 → 0
View file @
a03fd307
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# permissions for end users to edit dynamonimrequests.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
labels
:
app.kubernetes.io/name
:
dynamo-kubernetes-operator
app.kubernetes.io/managed-by
:
kustomize
name
:
dynamonimrequest-editor-role
rules
:
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonimrequests
verbs
:
-
create
-
delete
-
get
-
list
-
patch
-
update
-
watch
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonimrequests/status
verbs
:
-
get
deploy/dynamo/operator/config/rbac/dynamonimrequest_viewer_role.yaml
deleted
100644 → 0
View file @
a03fd307
# SPDX-FileCopyrightText: Copyright (c) 2024-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# permissions for end users to view dynamonimrequests.
apiVersion
:
rbac.authorization.k8s.io/v1
kind
:
ClusterRole
metadata
:
labels
:
app.kubernetes.io/name
:
dynamo-kubernetes-operator
app.kubernetes.io/managed-by
:
kustomize
name
:
dynamonimrequest-viewer-role
rules
:
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonimrequests
verbs
:
-
get
-
list
-
watch
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamonimrequests/status
verbs
:
-
get
deploy/dynamo/operator/config/rbac/kustomization.yaml
View file @
26fe79dc
...
...
@@ -35,10 +35,10 @@ resources:
# default, aiding admins in cluster management. Those roles are
# not used by the Project itself. You can comment the following lines
# if you do not want those helpers be installed with your Project.
# - dynamo
nim
_editor_role.yaml
# - dynamo
nim
_viewer_role.yaml
# - dynamo
nim
request_editor_role.yaml
# - dynamo
nim
request_viewer_role.yaml
# - dynamo
nim
deployment_editor_role.yaml
# - dynamo
nim
deployment_viewer_role.yaml
# - dynamo
component
_editor_role.yaml
# - dynamo
component
_viewer_role.yaml
# - dynamo
component
request_editor_role.yaml
# - dynamo
component
request_viewer_role.yaml
# - dynamo
component
deployment_editor_role.yaml
# - dynamo
component
deployment_viewer_role.yaml
deploy/dynamo/operator/config/rbac/role.yaml
View file @
26fe79dc
...
...
@@ -128,10 +128,10 @@ rules:
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamodeployments
-
dynamo
nimdeploymen
ts
-
dynamo
nimreques
ts
-
dynamo
nim
s
-
dynamo
component
deployments
-
dynamo
componentreques
ts
-
dynamo
componen
ts
-
dynamo
graphdeployment
s
verbs
:
-
create
-
delete
...
...
@@ -143,18 +143,18 @@ rules:
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamodeployments/finalizers
-
dynamo
nimdeploymen
ts/finalizers
-
dynamo
nimreques
ts/finalizers
-
dynamo
component
deployments/finalizers
-
dynamo
componentreques
ts/finalizers
-
dynamo
graphdeploymen
ts/finalizers
verbs
:
-
update
-
apiGroups
:
-
nvidia.com
resources
:
-
dynamodeployments/status
-
dynamo
nimdeploymen
ts/status
-
dynamo
nimreques
ts/status
-
dynamo
nim
s/status
-
dynamo
component
deployments/status
-
dynamo
componentreques
ts/status
-
dynamo
componen
ts/status
-
dynamo
graphdeployment
s/status
verbs
:
-
get
-
patch
...
...
deploy/dynamo/operator/config/samples/kustomization.yaml
View file @
26fe79dc
...
...
@@ -15,8 +15,8 @@
## Append samples of your project ##
resources
:
-
nvidia.com_v1alpha1_dynamo
nim
deployment.yaml
-
nvidia.com_v1alpha1_dynamo
nim
request.yaml
-
nvidia.com_v1alpha1_dynamo
nim
.yaml
-
nvidia.com_v1alpha1_dynamodeployment.yaml
-
nvidia.com_v1alpha1_dynamo
component
deployment.yaml
-
nvidia.com_v1alpha1_dynamo
component
request.yaml
-
nvidia.com_v1alpha1_dynamo
component
.yaml
-
nvidia.com_v1alpha1_dynamo
graph
deployment.yaml
#+kubebuilder:scaffold:manifestskustomizesamples
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha1_dynamo
nim
deployment.yaml
→
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha1_dynamo
component
deployment.yaml
View file @
26fe79dc
...
...
@@ -14,11 +14,11 @@
# limitations under the License.
apiVersion
:
nvidia.com/v1alpha1
kind
:
Dynamo
Nim
Deployment
kind
:
Dynamo
Component
Deployment
metadata
:
labels
:
app.kubernetes.io/name
:
dynamo-kubernetes-operator
app.kubernetes.io/managed-by
:
kustomize
name
:
dynamo
nim
deployment-sample
name
:
dynamo
component
deployment-sample
spec
:
# TODO(user): Add fields here
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha1_dynamo
nim
request.yaml
→
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha1_dynamo
component
request.yaml
View file @
26fe79dc
...
...
@@ -14,11 +14,11 @@
# limitations under the License.
apiVersion
:
nvidia.com/v1alpha1
kind
:
Dynamo
Nim
Request
kind
:
Dynamo
Component
Request
metadata
:
labels
:
app.kubernetes.io/name
:
dynamo-kubernetes-operator
app.kubernetes.io/managed-by
:
kustomize
name
:
dynamo
nim
request-sample
name
:
dynamo
component
request-sample
spec
:
# TODO(user): Add fields here
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha1_dynamodeployment.yaml
→
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha1_dynamo
graph
deployment.yaml
View file @
26fe79dc
...
...
@@ -14,12 +14,12 @@
# limitations under the License.
apiVersion
:
nvidia.com/v1alpha1
kind
:
DynamoDeployment
kind
:
Dynamo
Graph
Deployment
metadata
:
labels
:
app.kubernetes.io/name
:
dynamo-kubernetes-operator
app.kubernetes.io/managed-by
:
kustomize
name
:
dynamodeployment-sample
name
:
dynamo
graph
deployment-sample
spec
:
# TODO(user): Add fields here
# EXAMPLE: dynamo
Nim
: basic:dev
# EXAMPLE: dynamo
Component
: basic:dev
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha_dynamo
nim
.yaml
→
deploy/dynamo/operator/config/samples/nvidia.com_v1alpha_dynamo
component
.yaml
View file @
26fe79dc
...
...
@@ -14,11 +14,11 @@
# limitations under the License.
apiVersion
:
nvidia.com/v1alpha1
kind
:
Dynamo
Nim
kind
:
Dynamo
Component
metadata
:
labels
:
app.kubernetes.io/name
:
dynamo-kubernetes-operator
app.kubernetes.io/managed-by
:
kustomize
name
:
dynamo
nim
-sample
name
:
dynamo
component
-sample
spec
:
# TODO(user): Add fields here
deploy/dynamo/operator/internal/consts/consts.go
View file @
26fe79dc
...
...
@@ -12,7 +12,7 @@ const (
DynamoImageBuilderComponentName
=
"dynamo-image-builder"
Dynamo
DeploymentComponentApiServer
=
"api-server"
Dynamo
ApiServerComponentName
=
"api-server"
InternalImagesDynamoComponentsDownloaderDefault
=
"quay.io/bentoml/bento-downloader:0.0.3"
InternalImagesKanikoDefault
=
"gcr.io/kaniko-project/executor:debug"
...
...
@@ -27,12 +27,6 @@ const (
EnvDynamoServicePort
=
"PORT"
// tracking envars
EnvDynamoDeploymentUID
=
"DYNAMO_DEPLOYMENT_UID"
EnvDynamoDeploymentName
=
"DYNAMO_DEPLOYMENT_NAME"
EnvDynamoDeploymentNamespace
=
"DYNAMO_DEPLOYMENT_NAMESPACE"
EnvDockerRegistryServer
=
"DOCKER_REGISTRY_SERVER"
EnvDockerRegistryInClusterServer
=
"DOCKER_REGISTRY_IN_CLUSTER_SERVER"
EnvDockerRegistryUsername
=
"DOCKER_REGISTRY_USERNAME"
...
...
@@ -51,16 +45,14 @@ const (
EnvDynamoImageBuilderNamespace
=
"DYNAMO_IMAGE_BUILDER_NAMESPACE"
KubeLabelDynamoSelector
=
"nvidia.com/selector"
KubeLabelDynamoRepository
=
"nvidia.com/dynamo-repository"
KubeLabelDynamoVersion
=
"nvidia.com/dynamo-version"
KubeLabelDynamoDeployment
=
"nvidia.com/dynamo-deployment"
KubeLabelDynamoDeploymentComponentType
=
"nvidia.com/dynamo-deployment-component-type"
KubeLabelDynamoComponent
=
"nvidia.com/dynamo-component"
KubeLabelDynamoDeploymentTargetType
=
"nvidia.com/dynamo-deployment-target-type"
KubeLabelDynamoCreator
=
"nvidia.com/dynamo-creator"
KubeLabelDynamoComponentType
=
"nvidia.com/dynamo-component-type"
KubeLabelIsDynamoImageBuilder
=
"nvidia.com/is-dynamo-image-builder"
KubeLabelDynamoRequest
=
"nvidia.com/dynamo-request"
KubeLabelDynamo
Component
Request
=
"nvidia.com/dynamo-
component-
request"
KubeLabelValueFalse
=
"false"
KubeLabelValueTrue
=
"true"
...
...
@@ -77,7 +69,7 @@ const (
// nolint: gosec
KubeSecretNameRegcred
=
"dynamo-regcred"
KubeAnnotationDynamo
Nim
RequestHash
=
"nvidia.com/dynamo-request-hash"
KubeAnnotationDynamo
Nim
RequestImageBuiderHash
=
"nvidia.com/dynamo-request-image-builder-hash"
KubeAnnotationDynamo
Nim
StorageNS
=
"nvidia.com/dynamo-storage-namespace"
KubeAnnotationDynamo
Component
RequestHash
=
"nvidia.com/dynamo-request-hash"
KubeAnnotationDynamo
Component
RequestImageBuiderHash
=
"nvidia.com/dynamo-request-image-builder-hash"
KubeAnnotationDynamo
Component
StorageNS
=
"nvidia.com/dynamo-storage-namespace"
)
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment