Skip to content

Commit

Permalink
build: Allow past year in license header (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmidyson committed Oct 5, 2023
1 parent ede08b8 commit dc47fdf
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/capi-runtime-extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ A Helm chart for capi-runtime-extensions
| deployDefaultClusterClasses | bool | `true` | |
| deployment.replicas | int | `1` | |
| env | object | `{}` | |
| hooks.CalicoCNI.defaultInstallationConfigMaps.AWSCluster.configMap.content | string | `""` | |
| hooks.CalicoCNI.defaultInstallationConfigMaps.AWSCluster.configMap.name | string | `"calico-cni-installation-awscluster"` | |
| hooks.CalicoCNI.defaultInstallationConfigMaps.AWSCluster.create | bool | `true` | |
| hooks.CalicoCNI.defaultInstallationConfigMaps.DockerCluster.configMap.content | string | `""` | |
| hooks.CalicoCNI.defaultInstallationConfigMaps.DockerCluster.configMap.name | string | `"calico-cni-installation-dockercluster"` | |
| hooks.CalicoCNI.defaultInstallationConfigMaps.DockerCluster.create | bool | `true` | |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright 2023 D2iQ, Inc. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

{{- if .Values.hooks.CalicoCNI.defaultInstallationConfigMaps.AWSCluster.create }}
apiVersion: v1
kind: ConfigMap
metadata:
name: '{{ .Values.hooks.CalicoCNI.defaultInstallationConfigMaps.AWSCluster.configMap.name }}'
data:
calico-installation: |
{{- if .Values.hooks.CalicoCNI.defaultInstallationConfigMaps.AWSCluster.configMap.content -}}
{{ .Values.hooks.CalicoCNI.defaultInstallationConfigMaps.AWSCluster.configMap.content | nindent 4}}
{{- else -}}
# This section includes base Calico installation configuration.
# For more information, see: https://docs.projectcalico.org/reference/installation/api
apiVersion: operator.tigera.io/v1
kind: Installation
metadata:
name: default
spec:
cni:
type: Calico
# Configures Calico networking.
calicoNetwork:
# Note: The ipPools section cannot be modified post-install.
ipPools:
- blockSize: 26
cidr: {{ .Values.hooks.CalicoCNI.defaultPodSubnet }}
encapsulation: IPIP
natOutgoing: Enabled
nodeSelector: all()
bgp: Enabled
nodeMetricsPort: 9091
typhaMetricsPort: 9093
{{- end -}}
{{- end -}}
5 changes: 5 additions & 0 deletions charts/capi-runtime-extensions/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ hooks:
configMap:
name: calico-cni-installation-dockercluster
content: ""
AWSCluster:
create: true
configMap:
name: calico-cni-installation-awscluster
content: ""

deployDefaultClusterClasses: true

Expand Down
1 change: 1 addition & 0 deletions pkg/handlers/generic/lifecycle/cni/calico/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func (c *CalicoCNIConfig) AddFlags(prefix string, flags *pflag.FlagSet) {
prefix+".default-provider-installation-configmap-names",
map[string]string{
"DockerCluster": "calico-cni-installation-dockercluster",
"AWSCluster": "calico-cni-installation-awscluster",
},
"map of provider cluster implementation type to default installation ConfigMap name",
)
Expand Down

0 comments on commit dc47fdf

Please sign in to comment.