- Notifications
You must be signed in to change notification settings - Fork 25
[VC-45804] Add cluster name and description to CyberArk Discovery and Context snapshot #730
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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. Generated by |
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. Autogenerated by |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,11 @@ | ||
{{- if .Values.config.configmap.name }} | ||
You are using a custom configuration in the following ConfigMap: {{ .Values.config.configmap.name | quote }}. | ||
| ||
DEPRECATION: The `cluster_id` configuration field is deprecated. | ||
If your configuration contains `cluster_id`, it will continue to work as a | ||
fallback, but please migrate to `cluster_name` to avoid ambiguity. | ||
{{- end }} | ||
| ||
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've added a snapshot test for this using matchSnapshotRaw. See: | ||
{{- if .Values.authentication.venafiConnection.enabled }} | ||
- Check the VenafiConnection exists: "{{ .Values.authentication.venafiConnection.namespace }}/{{ .Values.authentication.venafiConnection.name }}" | ||
> kubectl get VenafiConnection -n {{ .Values.authentication.venafiConnection.namespace }} {{ .Values.authentication.venafiConnection.name }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
| @@ -9,7 +9,7 @@ metadata: | |
{{- include "venafi-kubernetes-agent.labels" . | nindent 4 }} | ||
data: | ||
config.yaml: |- | ||
cluster_id: {{ .Values.config.clusterName | quote }} | ||
cluster_name: {{ .Values.config.clusterName | quote }} | ||
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 worried that this might be backwards incompatible; I worried that if the user rolls back the agent upgrade they'll be running an old version of the agent and it will fail to parse this new config file field, but actually I think it's safe. If the user has populated the configmap using Helm template and values, then if they roll back the helm release, it should revert to the previous version of the configmap. | ||
cluster_description: {{ .Values.config.clusterDescription | quote }} | ||
server: {{ .Values.config.server | quote }} | ||
period: {{ .Values.config.period | quote }} | ||
|
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.
Autogenerated by
make ark-generate
.