Skip to content

Generate NGF Policy Methods #1939

Open
Open
@kate-osborn

Description

@kate-osborn

As a developer
I want to be able to generate the methods shown below for all NGF Policy types
So that I don't have to duplicate boilerplate code every time I add a policy.

func (p *ClientSettingsPolicy) GetTargetRef() v1alpha2.PolicyTargetReference {
	return p.Spec.TargetRef
}

func (p *ClientSettingsPolicy) GetPolicyStatus() v1alpha2.PolicyStatus {
	return p.Status
}

func (p *ClientSettingsPolicy) SetPolicyStatus(status v1alpha2.PolicyStatus) {
	p.Status = status
}

Look into generating policy functions to determine if two policies conflict.

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogCurrently unprioritized work. May change with user feedback or as the product progresses.good first issueGood for newcomerstech-debtShort-term pain, long-term benefit

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions