-
Notifications
You must be signed in to change notification settings - Fork 44
[patch] Support Opt-Out Metrics Reporting Flags in GitOps Automation #1857
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
Open
ashleytate614
wants to merge
12
commits into
master
Choose a base branch
from
mascore-9752
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
eb0f7e1
[patch] Add adoption metrics reporting flag for gitops
ashleytate614 33f24db
[patch] update .secrets.baseline
ashleytate614 04d04eb
[patch] Update again
ashleytate614 1a69f6b
Merge branch 'master' into mascore-9752
ashleytate614 7d62b93
[patch] add additional opt out flags
ashleytate614 59b53a7
[patch] update secrets baseline
ashleytate614 1f4f275
[patch] update secrets.baseline
ashleytate614 0cd8e0f
[patch] set flags to false
ashleytate614 db19e23
Merge branch 'master' into mascore-9752
ashleytate614 23acba7
[patch] upgrade buildx
ashleytate614 21f2524
[patch] update flag names
ashleytate614 daef5c0
Merge branch 'master' into mascore-9752
ashleytate614 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -122,6 +122,15 @@ spec: | |
| - name: mas_wipe_mongo_data | ||
| type: string | ||
| default: "false" | ||
| - name: mas_feature_usage | ||
| type: string | ||
| default: "true" | ||
| - name: mas_deployment_progression | ||
| type: string | ||
| default: "true" | ||
| - name: mas_usability_metrics | ||
| type: string | ||
| default: "true" | ||
| - name: suite_spec_additional_properties_yaml | ||
| type: string | ||
| default: "" | ||
|
|
@@ -244,6 +253,12 @@ spec: | |
| value: $(params.mas_pod_template_yaml) | ||
| - name: MAS_WIPE_MONGO_DATA | ||
| value: $(params.mas_wipe_mongo_data) | ||
| - name: MAS_FEATURE_USAGE | ||
| value: $(params.mas_feature_usage) | ||
| - name: MAS_DEPLOYMENT_PROGRESSION | ||
| value: $(params.mas_deployment_progression) | ||
| - name: MAS_USABILITY_METRICS | ||
| value: $(params.mas_usability_metrics) | ||
| - name: SUITE_SPEC_ADDITIONAL_PROPERTIES_YAML | ||
| value: $(params.suite_spec_additional_properties_yaml) | ||
| - name: SUITE_SPEC_SETTINGS_ADDITIONAL_PROPERTIES_YAML | ||
|
|
@@ -326,6 +341,15 @@ spec: | |
| if [[ -z "${DELETE_WILDCARDS}" ]]; then | ||
| DELETE_WILDCARDS="false" | ||
| fi | ||
| if [[ -z "${MAS_FEATURE_USAGE}" ]]; then | ||
| MAS_FEATURE_USAGE="false" | ||
| fi | ||
| if [[ -z "${MAS_DEPLOYMENT_PROGRESSION}" ]]; then | ||
| MAS_DEPLOYMENT_PROGRESSION="false" | ||
|
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 the flag is missing, i think we should set the default to true |
||
| fi | ||
| if [[ -z "${MAS_USABILITY_METRICS}" ]]; then | ||
| MAS_USABILITY_METRICS="false" | ||
|
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 the flag is missing, i think we should set the default to true |
||
| fi | ||
|
|
||
| sed -n -e 's/^.*api.fvtsaas.//p' | cut -d: -f1 | ||
| mkdir -p /tmp/init-suite | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If the flag is missing, i think we should set the default to true
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.
This is by design. If the flag is set to false Tekton interprets that as an empty string. So we need to set the flag back to false if we get an empty string in Tekton. At this point the flag would be true if it wasn't set yet. I tested this behavior.

https://github.com/ibm-mas/cli/blob/mascore-9752/tekton/src/tasks/gitops/gitops-suite.yml.j2#L324