Skip to content
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

Generate NGF Policy Methods #1939

Open
kate-osborn opened this issue May 7, 2024 · 0 comments
Open

Generate NGF Policy Methods #1939

kate-osborn opened this issue May 7, 2024 · 0 comments
Labels
tech-debt Short-term pain, long-term benefit
Milestone

Comments

@kate-osborn
Copy link
Contributor

kate-osborn commented May 7, 2024

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.

@mpstefan mpstefan added the tech-debt Short-term pain, long-term benefit label May 20, 2024
@mpstefan mpstefan added this to the v1.4.0 milestone May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tech-debt Short-term pain, long-term benefit
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants