Skip to content

Commit cdb55e4

Browse files
committed
fix: add miss license and fix some license tooling
1 parent a014846 commit cdb55e4

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

operator/.mockery.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ dir: "{{.InterfaceDir}}/mock"
33
filename: "{{.InterfaceName }}.go"
44
quiet: False
55
with-expecter: true
6-
boilerplate-file: "boilerplate/boilerplate.go.txt"
6+
boilerplate-file: "../boilerplate/boilerplate.go.txt"
77
packages:
88
## external packages
99
k8s.io/client-go/util/workqueue:
@@ -30,10 +30,10 @@ packages:
3030
github.com/NVIDIA/skyhook/internal/dal:
3131
config:
3232
all: True
33-
boilerplate-file: "boilerplate/boilerplate.go.txt"
33+
boilerplate-file: "../boilerplate/boilerplate.go.txt"
3434
github.com/NVIDIA/skyhook/internal/controller:
3535
config:
3636
all: True
37-
boilerplate-file: "boilerplate/boilerplate.go.txt"
37+
boilerplate-file: "../boilerplate/boilerplate.go.txt"
3838
interfaces:
3939
SkyhookNodes:

operator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and Cust
101101
.PHONY: generate
102102
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
103103
$(CONTROLLER_GEN) object paths="./..."
104-
$(MAKE) fmt ## fix up license headers
104+
$(MAKE) license-fmt ## fix up license headers
105105

106106
.PHONY: generate-mocks
107107
generate-mocks: mockery ## Generate code for interface mocking

operator/api/v1alpha1/zz_generated.deepcopy.go

Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/monitor.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
11
#!/bin/bash
2+
3+
# Copyright (c) NVIDIA CORPORATION. All rights reserved.
4+
#
5+
# Licensed under the Apache License, Version 2.0 (the "License");
6+
# you may not use this file except in compliance with the License.
7+
# You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
17+
218
if [ -f $PWD/monitor.txt ]; then
319
echo "cpu"
420
cut -d" " -f1 ~/git_repos/dgx/infra/skyhook-operator/monitor.txt |sed 's/m//g'| sort -rn | head -5

0 commit comments

Comments
 (0)