-
Notifications
You must be signed in to change notification settings - Fork 473
Use CAAPH to install cloud-provider-azure in tests #4413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| apiVersion: addons.cluster.x-k8s.io/v1alpha1 | ||
| kind: HelmChartProxy | ||
| metadata: | ||
| name: cloud-provider-azure-chart-ci | ||
| spec: | ||
| clusterSelector: | ||
| matchLabels: | ||
| cloud-provider: "azure-ci" | ||
| repoURL: https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo | ||
| chartName: cloud-provider-azure | ||
| releaseName: cloud-provider-azure-oot | ||
| valuesTemplate: | | ||
| infra: | ||
| clusterName: {{ .Cluster.metadata.name }} | ||
| cloudControllerManager: | ||
| cloudConfig: ${CLOUD_CONFIG:-"/etc/kubernetes/azure.json"} | ||
| cloudConfigSecretName: ${CONFIG_SECRET_NAME:-""} | ||
| clusterCIDR: {{ .Cluster.spec.clusterNetwork.pods.cidrBlocks | join "," }} | ||
| imageName: ${CCM_IMAGE_NAME:-""} | ||
| imageRepository: ${IMAGE_REGISTRY:-""} | ||
| imageTag: ${IMAGE_TAG_CCM:-""} | ||
| logVerbosity: ${CCM_LOG_VERBOSITY:-4} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd need to verify this, but I'm not sure that envsubst supports setting default values when the variable isn't set (like in bash/zsh).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| replicas: ${CCM_COUNT:-1} | ||
| enableDynamicReloading: ${ENABLE_DYNAMIC_RELOADING:-false} | ||
| cloudNodeManager: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If it's possible to use bash
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It might be possible to use |
||
| imageName: ${CNM_IMAGE_NAME:-""} | ||
| imageRepository: ${IMAGE_REGISTRY:-""} | ||
| imageTag: ${IMAGE_TAG_CNM:-""} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| apiVersion: addons.cluster.x-k8s.io/v1alpha1 | ||
| kind: HelmChartProxy | ||
| metadata: | ||
| name: cloud-provider-azure-chart-flatcar | ||
| spec: | ||
| clusterSelector: | ||
| matchLabels: | ||
| cloud-provider: "azure-flatcar" | ||
| repoURL: https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo | ||
| chartName: cloud-provider-azure | ||
| releaseName: cloud-provider-azure-oot | ||
| valuesTemplate: | | ||
| infra: | ||
| clusterName: {{ .Cluster.metadata.name }} | ||
| cloudControllerManager: | ||
| clusterCIDR: {{ .Cluster.spec.clusterNetwork.pods.cidrBlocks | join "," }} | ||
| logVerbosity: 4 | ||
| caCertDir: /usr/share/ca-certificates |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| apiVersion: addons.cluster.x-k8s.io/v1alpha1 | ||
| kind: HelmChartProxy | ||
| metadata: | ||
| name: cloud-provider-azure-chart | ||
| spec: | ||
| clusterSelector: | ||
| matchLabels: | ||
| cloud-provider: "azure" | ||
| repoURL: https://raw.githubusercontent.com/kubernetes-sigs/cloud-provider-azure/master/helm/repo | ||
| chartName: cloud-provider-azure | ||
| releaseName: cloud-provider-azure-oot | ||
| valuesTemplate: | | ||
| infra: | ||
| clusterName: {{ .Cluster.metadata.name }} | ||
| cloudControllerManager: | ||
| clusterCIDR: {{ .Cluster.spec.clusterNetwork.pods.cidrBlocks | join "," }} | ||
| logVerbosity: 4 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we still want to use
E2E_ARGS="-kubetest.use-ci-artifacts"as the variable configuring the CI artifacts?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should_build_ccmalready encompassesE2E_ARGS="-kubetest.use-ci-artifacts"and other cases where we want to use a CI version of CCM in the context of ci-entrypoint.shhttps://github.com/kubernetes-sigs/cluster-api-provider-azure/blob/main/hack/util.sh#L44