Skip to content

Commit

Permalink
chore: sketched next steps for trigger deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Bernd Warmuth <[email protected]>
  • Loading branch information
warber committed Oct 13, 2023
1 parent d325641 commit 561dde1
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions cmd/monaco/deploy/acc/deploy.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/*
* @license
* Copyright 2023 Dynatrace LLC
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package acc

import (
"github.com/dynatrace/dynatrace-configuration-as-code/v2/pkg/persistence/account"
"github.com/spf13/afero"
)

// deployAcc triggers the deployment of account management resources for a given monaco project
func deployAcc(fs afero.Fs, projectName string) error { // nolint:unused
accResources, err := account.Load(fs, projectName)
if err != nil {
return err
}

err = account.Validate(accResources)
if err != nil {
return err
}

// (tbd) convert acc resources to internal representation to be deployable and pass to pkg/deploy/acc::Deploy()

return nil
}

0 comments on commit 561dde1

Please sign in to comment.