Skip to content

Commit 8448eb8

Browse files
committed
build: Update license for Nutanix
1 parent 184abec commit 8448eb8

File tree

398 files changed

+504
-396
lines changed

Some content is hidden

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

398 files changed

+504
-396
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

.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: 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
module github.com/nutanix-cloud-native/cluster-api-runtime-extensions-nutanix/api

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 2023 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 2023 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 2023 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 2023 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 2023 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 2023 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/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+
}

api/variables/eums_test.go

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
// Copyright 2023 Nutanix. All rights reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
package variables
4+
5+
import (
6+
"testing"
7+
8+
"github.com/onsi/gomega"
9+
)
10+
11+
func TestValuesToEnumJSON(t *testing.T) {
12+
t.Parallel()
13+
14+
testCases := []struct {
15+
name string
16+
input []interface{}
17+
expected []interface{}
18+
}{{
19+
name: "Empty input",
20+
input: []any{},
21+
expected: []interface{}{},
22+
}, {
23+
name: "Single value",
24+
input: []any{"value1"},
25+
expected: []interface{}{`"value1"`},
26+
}, {
27+
name: "Multiple values",
28+
input: []interface{}{"value1", "value2", "value3"},
29+
expected: []interface{}{`"value1"`, `"value2"`, `"value3"`},
30+
}, {
31+
name: "Multiple integer values",
32+
input: []interface{}{1, 2, 3},
33+
expected: []interface{}{`1`, `2`, `3`},
34+
}, {
35+
name: "Multiple integer array values",
36+
input: []interface{}{[]int{1, 2}, []int{2, 3}, []int{49, 64}},
37+
expected: []interface{}{`[1,2]`, `[2,3]`, `[49,64]`},
38+
}, {
39+
name: "Multiple string array values",
40+
input: []interface{}{
41+
[]string{"value1", "value2"},
42+
[]string{"value2", "value3"},
43+
[]string{"value49", "value64"},
44+
},
45+
expected: []interface{}{
46+
`["value1","value2"]`,
47+
`["value2","value3"]`,
48+
`["value49","value64"]`,
49+
},
50+
}}
51+
52+
for i := range testCases {
53+
tt := testCases[i]
54+
55+
t.Run(tt.name, func(t *testing.T) {
56+
t.Parallel()
57+
58+
g := gomega.NewWithT(t)
59+
60+
// Call the function under test
61+
jsonData := MustMarshalValuesToEnumJSON(tt.input...)
62+
63+
// Assert the result
64+
g.Expect(jsonData).To(gomega.HaveLen(len(tt.expected)))
65+
for i, expected := range tt.expected {
66+
g.Expect(string(jsonData[i].Raw)).To(gomega.Equal(expected))
67+
}
68+
})
69+
}
70+
}

api/variables/json.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright 2023 Nutanix. All rights reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package variables
5+
6+
import (
7+
"encoding/json"
8+
"fmt"
9+
10+
apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
11+
)
12+
13+
func MustMarshal(val any) *apiextensionsv1.JSON {
14+
marshaled, err := json.Marshal(val)
15+
if err != nil {
16+
panic(fmt.Errorf("failed to marshal enum value: %w", err))
17+
}
18+
19+
return &apiextensionsv1.JSON{Raw: marshaled}
20+
}

charts/chart_schema.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
name: str()

charts/cluster-api-runtime-extensions-nutanix/Chart.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
apiVersion: v2

charts/cluster-api-runtime-extensions-nutanix/README.md

Lines changed: 1 addition & 1 deletion

charts/cluster-api-runtime-extensions-nutanix/README.md.gotmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
Copyright 2023 D2iQ, Inc. All rights reserved.
2+
Copyright 2023 Nutanix. All rights reserved.
33
SPDX-License-Identifier: Apache-2.0
44
-->
55

charts/cluster-api-runtime-extensions-nutanix/templates/ccm/aws/manifests/aws-ccm-v1.27.1-configmap.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
#=================================================================

charts/cluster-api-runtime-extensions-nutanix/templates/ccm/aws/manifests/aws-ccm-v1.28.1-configmap.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
#=================================================================

charts/cluster-api-runtime-extensions-nutanix/templates/ccm/nutanix/manifests/helm-addon-installation.yaml

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
{{- if .Values.hooks.ccm.nutanix.helmAddonStrategy.defaultValueTemplateConfigMap.create }}

0 commit comments

Comments
 (0)