-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'BRASS-594' into 'master'
Allow specifying arbitrary annotations Closes BRASS-594 See merge request devops-program/helm-charts!363
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# This test covers setting annotation for PD. | ||
### SECTION:PARAMETERS ### | ||
releaseName: annotation | ||
# Set skipTest to true to make the script skip this test | ||
skipTest: false | ||
### SECTION:VALUES ### | ||
# Set typical Helm values here | ||
pingdirectory: | ||
enabled: true | ||
annotations: | ||
external-dns.alpha.kubernetes.io/myannotation: "mycustomannotation" | ||
services: | ||
clusterExternalDNSHostname: set1.west.ping-multi-cluster.com | ||
dataExternalDNSHostname: us.west.ping-multi-cluster.com | ||
|
||
### SECTION:EXPECTED ### | ||
|
||
# Validate that expected annotations are generated | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
external-dns.alpha.kubernetes.io/hostname: set1.west.ping-multi-cluster.com | ||
external-dns.alpha.kubernetes.io/myannotation: mycustomannotation | ||
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true" | ||
name: annotation-pingdirectory-cluster | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
external-dns.alpha.kubernetes.io/hostname: us.west.ping-multi-cluster.com | ||
external-dns.alpha.kubernetes.io/myannotation: mycustomannotation | ||
name: annotation-pingdirectory | ||
--- | ||
apiVersion: apps/v1 | ||
kind: StatefulSet | ||
metadata: | ||
annotations: | ||
external-dns.alpha.kubernetes.io/myannotation: mycustomannotation | ||
name: annotation-pingdirectory | ||
--- |