Skip to content

Commit

Permalink
update attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
maciaszczykm committed Apr 22, 2024
1 parent d5b3242 commit babc90d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion internal/resource/infrastructure_stack_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func (is *infrastructureStack) Attributes(ctx context.Context, d diag.Diagnostic
RepositoryID: is.Repository.Id.ValueString(),
ClusterID: is.ClusterId.ValueString(),
Git: is.Repository.Attributes(),
JobSpec: nil,
JobSpec: is.JobSpec.Attributes(),
Configuration: is.Configuration.Attributes(),
Approval: is.Approval.ValueBoolPointer(),
ReadBindings: is.Bindings.ReadAttributes(ctx, d),
Expand Down Expand Up @@ -179,6 +179,14 @@ type InfrastructureStackJobSpec struct {
ServiceAccount types.String `tfsdk:"service_account"`
}

func (isjs *InfrastructureStackJobSpec) Attributes() *gqlclient.GateJobAttributes {
if isjs == nil {
return nil
}

return &gqlclient.GateJobAttributes{} // TODO
}

func (isjs *InfrastructureStackJobSpec) From(spec *gqlclient.JobGateSpecFragment) {
if isjs == nil {
return
Expand Down

0 comments on commit babc90d

Please sign in to comment.