Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
e77aa6fb
"lib/bindings/vscode:/vscode.git/clone" did not exist on "008683d6e03e390ea2ee72d5912124b2cb1625ad"
Unverified
Commit
e77aa6fb
authored
Nov 07, 2025
by
Thomas Montfort
Committed by
GitHub
Nov 07, 2025
Browse files
feat: adding operator gen check to CI (#4139)
parent
0c66b2d2
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
62 additions
and
1 deletion
+62
-1
.github/workflows/container-validation-backends.yml
.github/workflows/container-validation-backends.yml
+13
-0
deploy/cloud/operator/Makefile
deploy/cloud/operator/Makefile
+36
-0
deploy/cloud/operator/config/rbac/role.yaml
deploy/cloud/operator/config/rbac/role.yaml
+13
-1
No files found.
.github/workflows/container-validation-backends.yml
View file @
e77aa6fb
...
@@ -75,6 +75,19 @@ jobs:
...
@@ -75,6 +75,19 @@ jobs:
run
:
|
run
:
|
cd deploy/cloud/operator
cd deploy/cloud/operator
docker build --target tester --progress=plain --build-arg DOCKER_PROXY=${ECR_HOSTNAME}/dockerhub/ .
docker build --target tester --progress=plain --build-arg DOCKER_PROXY=${ECR_HOSTNAME}/dockerhub/ .
-
name
:
Set up Go
uses
:
actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00
# v6.0.0
with
:
go-version
:
'
1.24'
-
name
:
Check for uncommitted changes
shell
:
bash
env
:
ECR_HOSTNAME
:
${{ secrets.AWS_ACCOUNT_ID }}.dkr.ecr.${{ secrets.AWS_DEFAULT_REGION }}.amazonaws.com
run
:
|
sudo apt-get update && sudo apt-get install -y make
cd deploy/cloud/operator
make check
-
name
:
Build Container
-
name
:
Build Container
id
:
build-image
id
:
build-image
shell
:
bash
shell
:
bash
...
...
deploy/cloud/operator/Makefile
View file @
e77aa6fb
...
@@ -44,6 +44,19 @@ help: ## Display this help.
...
@@ -44,6 +44,19 @@ help: ## Display this help.
##@ Development
##@ Development
.PHONY
:
check
check
:
generate manifests generate-api-docs
@
echo
"> Checking for uncommitted changes"
@
if
[
-n
"
$$
(git status --porcelain)"
]
;
then
\
echo
"ERROR: Git tree is dirty after running validation steps."
;
\
echo
"Please check the diff to identify the step that dirtied the tree."
;
\
git
--no-pager
status
;
\
git
--no-pager
diff
;
\
exit
1
;
\
fi
@
echo
"> Check complete"
.PHONY
:
ensure-yq
.PHONY
:
ensure-yq
ensure-yq
:
ensure-yq
:
@
if
!
command
-v
yq &> /dev/null
;
then
\
@
if
!
command
-v
yq &> /dev/null
;
then
\
...
@@ -100,6 +113,29 @@ manifests: controller-gen ensure-yq ## Generate WebhookConfiguration, ClusterRol
...
@@ -100,6 +113,29 @@ manifests: controller-gen ensure-yq ## Generate WebhookConfiguration, ClusterRol
if
[
-d
"../helm/crds/templates/"
]
;
then
\
if
[
-d
"../helm/crds/templates/"
]
;
then
\
cp
config/crd/bases/
*
.yaml ../helm/crds/templates/
;
\
cp
config/crd/bases/
*
.yaml ../helm/crds/templates/
;
\
fi
fi
echo
"Adding NVIDIA header to RBAC files"
for
file
in
config/rbac/
*
.yaml
;
do
\
if
[
-f
"
$$
file"
]
&&
!
head
-20
"
$$
file"
|
grep
-q
"NVIDIA CORPORATION"
;
then
\
{
printf
'%s\n'
\
'# 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.'
\
''
;
\
cat
"
$$
file"
;
\
}
>
"
$$
file.tmp"
&&
mv
"
$$
file.tmp"
"
$$
file"
;
\
fi
;
\
done
.PHONY
:
generate
.PHONY
:
generate
generate
:
controller-gen
##
Generate code containing DeepCopy
,
DeepCopyInto
,
and DeepCopyObject method implementations.
generate
:
controller-gen
##
Generate code containing DeepCopy
,
DeepCopyInto
,
and DeepCopyObject method implementations.
...
...
deploy/cloud/operator/config/rbac/role.yaml
View file @
e77aa6fb
# SPDX-FileCopyrightText: Copyright (c) 2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-FileCopyrightText: Copyright (c)
2024-
2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
# 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.
---
---
apiVersion
:
rbac.authorization.k8s.io/v1
apiVersion
:
rbac.authorization.k8s.io/v1
...
...
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