Skip to content

Commit

Permalink
Merge pull request #540 from adrianchiris/align-templates
Browse files Browse the repository at this point in the history
Align templates and generate files
  • Loading branch information
adrianchiris authored May 24, 2023
2 parents 5312799 + d860200 commit 84b492e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deployment/network-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ operator:
- key: "node-role.kubernetes.io/control-plane"
operator: In
values: [ "" ]
repository: nvcr.io/nvstaging/mellanox
repository: nvcr.io/nvidia/cloud-native
image: network-operator
# imagePullSecrets: []
nameOverride: ""
Expand Down
2 changes: 2 additions & 0 deletions hack/release.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ type Release struct {
Multus *mellanoxv1alpha1.ImageSpec
Ipoib *mellanoxv1alpha1.ImageSpec
IpamPlugin *mellanoxv1alpha1.ImageSpec
NvIPAM *mellanoxv1alpha1.ImageSpec
}

func readDefaults(releaseDefaults string) Release {
Expand Down Expand Up @@ -86,6 +87,7 @@ func readEnvironmentVariables(release *Release) {
initWithEnvVariale("MULTUS", release.Multus)
initWithEnvVariale("IPOIB", release.Ipoib)
initWithEnvVariale("IPAM_PLUGIN", release.Ipoib)
initWithEnvVariale("NV_IPAM", release.NvIPAM)
}

func main() {
Expand Down
4 changes: 4 additions & 0 deletions hack/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,7 @@ IpamPlugin:
image: whereabouts
repository: ghcr.io/k8snetworkplumbingwg
version: v0.6.1-amd64
NvIpam:
image: nvidia-k8s-ipam
repository: ghcr.io/mellanox
version: v0.0.2
11 changes: 11 additions & 0 deletions hack/templates/values/values.template
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ nfd:
psp:
enabled: false

upgradeCRDs: true

sriovNetworkOperator:
enabled: false
# inject additional values to nodeSelector for config daemon
Expand Down Expand Up @@ -230,6 +232,15 @@ ibKubernetes:
pKeyGUIDPoolRangeEnd: "02:FF:FF:FF:FF:FF:FF:FF"
ufmSecret: # specify the secret name here

nvIpam:
deploy: false
image: {{ .NvIPAM.Image }}
repository: {{ .NvIPAM.Repository }}
version: {{ .NvIPAM.Version }}
# imagePullSecrets: []
# network pool configuration as described in https://github.com/Mellanox/nvidia-k8s-ipam
config: ''

secondaryNetwork:
deploy: true
cniPlugins:
Expand Down

0 comments on commit 84b492e

Please sign in to comment.