Skip to content

Commit

Permalink
remove tags not needed
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Shankar <[email protected]>
  • Loading branch information
vivekshankar1 committed Jan 29, 2025
1 parent 3fc9475 commit 077cdcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
11 changes: 1 addition & 10 deletions components/automate-cli/cmd/chef-automate/genA2haRbTmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,6 @@ aws do
{{ if .Aws.Config.XCustomer }} customer "{{ .Aws.Config.XCustomer }}" {{ else }} customer "{{ .Aws.Config.XCustomer }}" {{ end }}
### DEPRECATED: AWS Tag: Production flag - set true for production environment
{{ if .Aws.Config.XProduction }} production "{{ .Aws.Config.XProduction }}" {{ else }} production "{{ .Aws.Config.XProduction }}" {{ end }}
tags({"X-Contact"=>"{{ .Aws.Config.XContact }}", "X-Dept"=>"{{ .Aws.Config.XDept }}", "X-Project"=>"{{ .Aws.Config.XProject }}", "X-Customer"=>"{{ .Aws.Config.XCustomer }}", "X-Production"=>"{{ .Aws.Config.XProduction }}", "ephemeral"=>"{{ .Aws.Config.XEphemeral }}", "team"=>"{{ .Aws.Config.XTeam }}", "owner"=>"{{ .Aws.Config.XOwner }}", "application"=>"{{ .Aws.Config.XApplication }}", "solutions"=>"{{ .Aws.Config.XSolutions }}, "expiration"=>"{{ .Aws.Config.XExpiration }}"})
### DEPRECATED: Below tags are used for CHEF AWS infrastructure tagging
{{ if .Aws.Config.XEphemeral }} ephemeral "{{ .Aws.Config.XEphemeral }}" {{ else }} # ephemeral "{{ .Aws.Config.XEphemeral }}" {{ end }}
{{ if .Aws.Config.XTeam }} team "{{ .Aws.Config.XTeam }}" {{ else }} # team "{{ .Aws.Config.XTeam }}" {{ end }}
{{ if .Aws.Config.XOwner }} owner "{{ .Aws.Config.XOwner }}" {{ else }} # owner "{{ .Aws.Config.XOwner }}" {{ end }}
{{ if .Aws.Config.XApplication }} application "{{ .Aws.Config.XApplication }}" {{ else }} # application "{{ .Aws.Config.XApplication }}" {{ end }}
{{ if .Aws.Config.XSolutions }} solutions "{{ .Aws.Config.XSolutions }}" {{ else }} # solutions "{{ .Aws.Config.XSolutions }}" {{ end }}
{{ if .Aws.Config.XName }} Name "{{ .Aws.Config.XName }}" {{ else }} # Name "{{ .Aws.Config.XName }}" {{ end }}
{{ if .Aws.Config.XExpiration }} expiration "{{ .Aws.Config.XExpiration }}" {{ else }} # expiration "{{ .Aws.Config.XExpiration }}" {{ end }}
tags({"X-Contact"=>"{{ .Aws.Config.XContact }}", "X-Dept"=>"{{ .Aws.Config.XDept }}", "X-Project"=>"{{ .Aws.Config.XProject }}", "X-Customer"=>"{{ .Aws.Config.XCustomer }}", "X-Production"=>"{{ .Aws.Config.XProduction }}", "ephemeral"=>"{{ .Aws.Config.XEphemeral }}", "team"=>"{{ .Aws.Config.XTeam }}", "owner"=>"{{ .Aws.Config.XOwner }}", "application"=>"{{ .Aws.Config.XApplication }}", "solutions"=>"{{ .Aws.Config.XSolutions }}", "expiration"=>"{{ .Aws.Config.XExpiration }}"})
end
`
9 changes: 1 addition & 8 deletions components/automate-cluster-ctl/lib/cluster/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,7 @@ def self.restore_deploy_symlink(path)
{
"X-Contact" => configuration[:contact],
"X-Dept" => configuration[:dept],
"X-Project" => configuration[:project],
"ephemeral" => configuration[:ephemeral],
"team" => configuration[:team],
"owner" => configuration[:owner],
"application" => configuration[:application],
"solutions" => configuration[:solutions],
"Name" => configuration[:Name],
"expiration" => configuration[:expiration],
"X-Project" => configuration[:project]
}
end
end
Expand Down

0 comments on commit 077cdcc

Please sign in to comment.