-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
endpoints resolver and manager (#11)
* endpoints resolver and manager * fix version info * increase log verbosity * refactor function names * setup field indexer for policy reference * update manager UTs * do not ignore not found error for updates * fix periodic reconcile * comment service cluster IP resolver function * add endpoint resolver UTs
- Loading branch information
Showing
12 changed files
with
1,760 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package policyendpoints | ||
|
||
import ( | ||
policyinfo "github.com/aws/amazon-network-policy-controller-k8s/api/v1alpha1" | ||
"sigs.k8s.io/controller-runtime/pkg/client" | ||
) | ||
|
||
const ( | ||
IndexKeyPolicyReferenceName = "spec.policyRef.name" | ||
) | ||
|
||
// IndexFunctionPolicyReferenceName is IndexFunc for "PolicyReference" index. | ||
func IndexFunctionPolicyReferenceName(obj client.Object) []string { | ||
policyEndpoint := obj.(*policyinfo.PolicyEndpoint) | ||
return []string{policyEndpoint.Spec.PolicyRef.Name} | ||
} |
Oops, something went wrong.