mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-18 17:55:44 +00:00
Incorporate required API changes
* Use `LocalObjectReference` and `NamespacedObjectKindReference` from `meta` package, as required by controller API changes. * Remove `Update` field from created `ImageUpdateAutomation`, as the API changed and the default is now defined in the Custom Resource Definition. Signed-off-by: Hidde Beydals <hello@hidde.co>
This commit is contained in:
parent
1bca31f32c
commit
ac6c6e3a30
11 changed files with 41 additions and 38 deletions
|
|
@ -23,11 +23,11 @@ import (
|
|||
"strings"
|
||||
"time"
|
||||
|
||||
corev1 "k8s.io/api/core/v1"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"sigs.k8s.io/yaml"
|
||||
|
||||
kustomizev1 "github.com/fluxcd/kustomize-controller/api/v1beta1"
|
||||
"github.com/fluxcd/pkg/apis/meta"
|
||||
sourcev1 "github.com/fluxcd/source-controller/api/v1beta1"
|
||||
|
||||
"github.com/fluxcd/flux2/pkg/manifestgen"
|
||||
|
|
@ -52,7 +52,7 @@ func Generate(options Options) (*manifestgen.Manifest, error) {
|
|||
Reference: &sourcev1.GitRepositoryRef{
|
||||
Branch: options.Branch,
|
||||
},
|
||||
SecretRef: &corev1.LocalObjectReference{
|
||||
SecretRef: &meta.LocalObjectReference{
|
||||
Name: options.Name,
|
||||
},
|
||||
GitImplementation: options.GitImplementation,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue