Skip to content

Commit e3c69ae

Browse files
authored
build: Update license for Nutanix (#456)
1 parent 4d0fa65 commit e3c69ae

File tree

427 files changed

+608
-428
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

427 files changed

+608
-428
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
# To get started with Dependabot version updates, you'll need to specify which

.github/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
changelog:

.github/workflows/backport.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
on:

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
name: checks

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
name: codeql

.github/workflows/conventional-label.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
name: conventional-release-labels

.github/workflows/conventional-pr-title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
name: "conventional-pr-title"

.github/workflows/dependabot-automation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
name: dependabot

.github/workflows/devbox-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 D2iQ, Inc. All rights reserved.
1+
# Copyright 2024 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
name: devbox-update

.github/workflows/e2e.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 D2iQ, Inc. All rights reserved.
1+
# Copyright 2024 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
on:

.github/workflows/github-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
# Sample workflow for building and deploying a Hugo site to GitHub Pages

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
name: release-please-main

.github/workflows/release-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2021-2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
name: release

.github/workflows/stacked-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
name: stacked-prs

.github/workflows/synopsys.yaml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Copyright 2024 Nutanix. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
name: Black Duck Policy Check
5+
on:
6+
pull_request:
7+
branches:
8+
- main
9+
# Only scan when product source dependencies change.
10+
paths:
11+
- '**/go.mod'
12+
# Ignore source dependencies of build tooling.
13+
- '!docs/go.mod'
14+
push:
15+
branches:
16+
- main
17+
# Only scan when product source dependencies change.
18+
paths:
19+
- '**/go.mod'
20+
# Ignore source dependencies of build tooling.
21+
- '!docs/go.mod'
22+
23+
jobs:
24+
security:
25+
if: github.repository == 'nutanix-cloud-native/cluster-api-runtime-extensions-nutanix'
26+
runs-on: ubuntu-22.04
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
31+
- name: Install devbox
32+
uses: jetify-com/[email protected]
33+
with:
34+
enable-cache: true
35+
36+
- name: Go cache
37+
uses: actions/cache@v4
38+
with:
39+
path: |
40+
~/.cache/go-build
41+
~/go/pkg/mod
42+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
43+
restore-keys: |
44+
${{ runner.os }}-go-
45+
46+
- name: Build Project
47+
run: devbox run -- make build-snapshot
48+
49+
- name: Black Duck Full Scan
50+
if: ${{ github.event_name != 'pull_request' }}
51+
uses: synopsys-sig/[email protected]
52+
with:
53+
blackduck_url: ${{ secrets.BLACKDUCK_URL }}
54+
blackduck_token: ${{ secrets.BLACKDUCK_API_TOKEN }}
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
blackduck_scan_full: true
57+
blackduck_scan_failure_severities: 'BLOCKER,CRITICAL'
58+
59+
- name: Black Duck PR Scan
60+
if: ${{ github.event_name == 'pull_request' }}
61+
uses: synopsys-sig/[email protected]
62+
env:
63+
DETECT_PROJECT_VERSION_NAME: ${{ github.base_ref }}
64+
with:
65+
blackduck_url: ${{ secrets.BLACKDUCK_URL }}
66+
blackduck_token: ${{ secrets.BLACKDUCK_API_TOKEN }}
67+
github_token: ${{ secrets.GITHUB_TOKEN }}
68+
blackduck_scan_full: false
69+
blackduck_prComment_enabled: true

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2021-2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2021-2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
run:

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
project_name: cluster-api-runtime-extensions-nutanix

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
repos:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2023 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

44
REPO_ROOT := $(CURDIR)

README.md

Lines changed: 1 addition & 1 deletion

api/go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
module github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api
@@ -15,6 +15,7 @@ require (
1515
github.com/nutanix-cloud-native/prism-go-client v0.4.0
1616
github.com/onsi/gomega v1.33.1
1717
k8s.io/api v0.29.3
18+
k8s.io/apiextensions-apiserver v0.29.3
1819
k8s.io/apimachinery v0.29.3
1920
k8s.io/utils v0.0.0-20231127182322-b307cd553661
2021
sigs.k8s.io/cluster-api v1.7.1
@@ -69,7 +70,6 @@ require (
6970
gopkg.in/inf.v0 v0.9.1 // indirect
7071
gopkg.in/yaml.v2 v2.4.0 // indirect
7172
gopkg.in/yaml.v3 v3.0.1 // indirect
72-
k8s.io/apiextensions-apiserver v0.29.3 // indirect
7373
k8s.io/client-go v0.29.3 // indirect
7474
k8s.io/component-base v0.29.3 // indirect
7575
k8s.io/klog/v2 v2.120.1 // indirect

api/v1alpha1/addon_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 D2iQ, Inc. All rights reserved.
1+
// Copyright 2024 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/aws_clusterconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/aws_node_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/clusterconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/common_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/crds/caren.nutanix.com_awsclusterconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2024 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
---
44
apiVersion: apiextensions.k8s.io/v1

api/v1alpha1/crds/caren.nutanix.com_awsworkernodeconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2024 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
---
44
apiVersion: apiextensions.k8s.io/v1

api/v1alpha1/crds/caren.nutanix.com_dockerclusterconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2024 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
---
44
apiVersion: apiextensions.k8s.io/v1

api/v1alpha1/crds/caren.nutanix.com_dockernodeconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2024 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
---
44
apiVersion: apiextensions.k8s.io/v1

api/v1alpha1/crds/caren.nutanix.com_nutanixclusterconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2024 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
---
44
apiVersion: apiextensions.k8s.io/v1

api/v1alpha1/crds/caren.nutanix.com_nutanixnodeconfigs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023 D2iQ, Inc. All rights reserved.
1+
# Copyright 2024 Nutanix. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33
---
44
apiVersion: apiextensions.k8s.io/v1

api/v1alpha1/doc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
// Package v1alpha1 contains API Schema definitions for the CAPI extensions v1alpha1 API group

api/v1alpha1/docker_clusterconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/docker_node_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/groupversion_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/http_proxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/http_proxy_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1_test

api/v1alpha1/nodeconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 D2iQ, Inc. All rights reserved.
1+
// Copyright 2023 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/nutanix_clusterconfig_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 D2iQ, Inc. All rights reserved.
1+
// Copyright 2024 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/nutanix_node_types.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 D2iQ, Inc. All rights reserved.
1+
// Copyright 2024 Nutanix. All rights reserved.
22
// SPDX-License-Identifier: Apache-2.0
33

44
package v1alpha1

api/v1alpha1/zz_generated.deepcopy.go

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

api/variables/enums.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright 2023 Nutanix. All rights reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package variables
5+
6+
import (
7+
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
8+
)
9+
10+
func MustMarshalValuesToEnumJSON[T any](vals ...T) []apiextensionsv1.JSON {
11+
enumJSON := make([]apiextensionsv1.JSON, 0, len(vals))
12+
13+
for _, v := range vals {
14+
enumJSON = append(enumJSON, *MustMarshal(v))
15+
}
16+
17+
return enumJSON
18+
}

0 commit comments

Comments
 (0)