diff --git a/config/config/crds.yml b/config/config/crds.yml index 5848883c5..38e4f0424 100644 --- a/config/config/crds.yml +++ b/config/config/crds.yml @@ -160,6 +160,9 @@ spec: description: Specifies namespace in destination cluster (optional) type: string type: object + defaultNamespace: + description: Specifies the default namespace to install the App resources, by default this is same as the App's namespace (optional; v0.48.0+) + type: string deploy: items: properties: @@ -773,6 +776,9 @@ spec: description: Specifies namespace in destination cluster (optional) type: string type: object + defaultNamespace: + description: Specifies the default namespace to install the App resources, by default this is same as the App's namespace (optional; v0.48.0+) + type: string deploy: items: properties: @@ -1502,6 +1508,9 @@ spec: description: Specifies namespace in destination cluster (optional) type: string type: object + defaultNamespace: + description: Specifies the default namespace to install the Package resources, by default this is same as the PackageInstall namespace (optional; v0.48.0+) + type: string noopDelete: description: When NoopDelete set to true, PackageInstall deletion should delete PackageInstall/App CR but preserve App's associated resources. type: boolean diff --git a/hack/dependencies.yml b/hack/dependencies.yml index 80791b2a4..67b0ec702 100644 --- a/hack/dependencies.yml +++ b/hack/dependencies.yml @@ -22,18 +22,19 @@ repo: vmware-tanzu/carvel-kbld urlTemplate: https://github.com/vmware-tanzu/carvel-{{.Name}}/releases/download/{{.Version}}/{{.Name}}-{{.OS}}-{{.Arch}} version: v0.37.4 +# To be updated after official kapp release - checksums: darwin: - amd64: e71048d2b11a2c10258079cc134d7d2c2b6584429202a6212306380d3a8c0a30 - arm64: 3660dd8efe83c1356e05255307fa6f65825ba694d96b93bc38c6a43d7e6d7a8c + amd64: ac1f2bd9f43f0d77465f8f4e4b2540a498c6fd3228d7e8452e360d66e04344c7 + arm64: 0954a8343d1ef7dac131e2212efd6ff1e2f39c898a242f280c4889e6acfc38e3 linux: - amd64: b253ea9cf6add07f9497955147dc12e8612c24c36dc9929c9a4fecdc76752bd3 - arm64: 25491298f6783a8b337d2ebdecf749f7750cf10260fe37086315a9c7da0b558f + amd64: cc1cca783173badd5e74edc1f10decfcae85525cfece73b3d43acfda1eaccbe5 + arm64: 59a8ddcacf82cec055f0ca9e66b1ea90ade138792db1b1ddaa72d653cc6d93ba dev: true name: kapp repo: vmware-tanzu/carvel-kapp urlTemplate: https://github.com/vmware-tanzu/carvel-{{.Name}}/releases/download/{{.Version}}/{{.Name}}-{{.OS}}-{{.Arch}} - version: v0.58.0 + version: v0.59.0 - checksums: darwin: amd64: 6a5290066d8fbe26aa0603902825bbca55b97f011e97949677eb937ace2d2e3e diff --git a/pkg/apis/kappctrl/v1alpha1/generated.pb.go b/pkg/apis/kappctrl/v1alpha1/generated.pb.go index cfac16db2..772f7cff0 100644 --- a/pkg/apis/kappctrl/v1alpha1/generated.pb.go +++ b/pkg/apis/kappctrl/v1alpha1/generated.pb.go @@ -1113,166 +1113,167 @@ func init() { } var fileDescriptor_e972ccf085273df7 = []byte{ - // 2535 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0x4d, 0x6c, 0x1b, 0xc7, - 0x15, 0xf6, 0x8a, 0x94, 0x28, 0x3e, 0xfd, 0x58, 0x1e, 0x5b, 0x0d, 0xab, 0x36, 0xa2, 0xb1, 0x01, - 0x82, 0x18, 0xad, 0x49, 0x58, 0x70, 0x5c, 0xa3, 0x05, 0x0a, 0x88, 0x92, 0x25, 0xcb, 0xb2, 0x6c, - 0x62, 0x28, 0xbb, 0x71, 0xda, 0xc4, 0x59, 0x2e, 0x47, 0xe4, 0x96, 0xcb, 0xdd, 0xed, 0xee, 0x2c, - 0x2d, 0x06, 0x29, 0xd0, 0x3f, 0x14, 0x69, 0x53, 0xa0, 0x46, 0x81, 0xa4, 0x45, 0x0b, 0xf4, 0x52, - 0xa0, 0xf7, 0xa2, 0x3d, 0xe6, 0x52, 0xf4, 0x62, 0xa0, 0x28, 0x10, 0x20, 0x97, 0xf4, 0xc2, 0xd6, - 0xec, 0xa9, 0xc7, 0x22, 0xb7, 0x9c, 0x8a, 0xf9, 0xd9, 0x3f, 0x92, 0x32, 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53, 0xc7, 0xf8, 0xc6, 0x14, 0x34, 0xe2, - 0x32, 0x47, 0x35, 0xe2, 0x86, 0xb7, 0x2c, 0xfb, 0xcc, 0x6c, 0xd9, 0x2f, 0x15, 0x38, 0xd3, 0xf6, - 0xeb, 0xc4, 0xb5, 0x08, 0x25, 0x9e, 0xac, 0xc5, 0xa4, 0x03, 0xc0, 0x27, 0xa8, 0x9f, 0x94, 0x5c, - 0x59, 0x1e, 0xf4, 0x8b, 0x67, 0x76, 0x87, 0x01, 0xf1, 0xa8, 0x0e, 0xe8, 0x5d, 0x05, 0x16, 0x23, - 0xea, 0x7a, 0x75, 0x27, 0x70, 0x0a, 0x27, 0x79, 0x37, 0x77, 0x13, 0x00, 0x15, 0x34, 0xe8, 0x17, - 0x17, 0x93, 0x34, 0x3c, 0xa4, 0x84, 0x7a, 0x0e, 0xd0, 0xa8, 0x37, 0x53, 0xd7, 0xe0, 0xf4, 0x50, - 0x2c, 0x9a, 0x78, 0x8f, 0xd5, 0xcf, 0xf1, 0x82, 0x66, 0xc4, 0x49, 0xab, 0xbf, 0x9f, 0x4a, 0x08, - 0x63, 0x3e, 0x0a, 0x1d, 0x42, 0xc6, 0x69, 0x06, 0xdf, 0xe7, 0x5e, 0x4b, 0xcf, 0x2d, 0x56, 0xb7, - 0xab, 0xc2, 0x43, 0x55, 0xb7, 0xab, 0x98, 0x41, 0x46, 0xcb, 0x98, 0x3a, 0xc2, 0x1d, 0x1d, 0x42, - 0x46, 0x6b, 0x06, 0x91, 0x35, 0x45, 0xd5, 0xd6, 0x9b, 0xd2, 0x79, 0xae, 0x37, 0x09, 0x66, 0x90, - 0xea, 0x87, 0x4a, 0x62, 0x2f, 0x24, 0x13, 0x7a, 0x5f, 0x81, 0x73, 0x8e, 0x6b, 0x74, 0x99, 0x51, - 0x49, 0xcf, 0xab, 0x0d, 0xd5, 0x86, 0x56, 0x8a, 0xd6, 0x1b, 0x83, 0x5a, 0x29, 0x0c, 0xfa, 0xc5, - 0x73, 0xe3, 0x46, 0xf0, 0x58, 0x2d, 0xc7, 0xad, 0xaa, 0xba, 0x5d, 0xfd, 0xac, 0xaf, 0x6a, 0x1b, - 0x5e, 0x38, 0x86, 0xd8, 0x63, 0x54, 0x84, 0x7f, 0x50, 0xe0, 0x8b, 0x23, 0xde, 0x6e, 0xd3, 0x7e, - 0x60, 0x3d, 0xd0, 0xdc, 0xc6, 0x7a, 0x75, 0x07, 0x3d, 0x54, 0x60, 0xda, 0xa0, 0xa4, 0x13, 0x74, - 0x60, 0xda, 0x69, 0xba, 0xd9, 0x18, 0xf0, 0x0e, 0x25, 0x9d, 0x58, 0xff, 0x8c, 0x69, 0x80, 0x85, - 0x22, 0xea, 0xdf, 0xb2, 0x70, 0x7e, 0xd2, 0xd4, 0xe3, 0x05, 0xa6, 0x03, 0x83, 0x98, 0x8d, 0x58, - 0x75, 0x1e, 0x06, 0xa6, 0xad, 0x60, 0x00, 0x47, 0x3c, 0x47, 0x78, 0xf7, 0xcc, 0x33, 0xe0, 0xdd, - 0x7f, 0xa7, 0xc0, 0x32, 0x93, 0xb3, 0x11, 0xca, 0x0f, 0xb4, 0xcb, 0xa6, 0xa6, 0xdd, 0xe7, 0x07, - 0xfd, 0xe2, 0xf2, 0xee, 0x38, 0x50, 0x3c, 0x5e, 0x97, 0x71, 0x31, 0x68, 0xfa, 0x59, 0x88, 0x41, - 0xef, 0x24, 0xf3, 0x9b, 0x78, 0xc4, 0x47, 0xbf, 0x18, 0xd3, 0x0e, 0x23, 0xe9, 0x67, 0x1a, 0x4f, - 0xee, 0x88, 0xfd, 0x66, 0x7c, 0x47, 0xec, 0x29, 0xe9, 0x35, 0xa1, 0x29, 0x76, 0x8c, 0xfc, 0xed, - 0xd7, 0x0a, 0xcc, 0x35, 0xa2, 0xfb, 0x2a, 0x0f, 0x69, 0xf3, 0x29, 0x79, 0x96, 0xca, 0xe9, 0x41, - 0xbf, 0x38, 0x17, 0x23, 0xe0, 0xb8, 0x32, 0xea, 0xd7, 0x61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x7a, 0xbc, 0x7a, 0xea, 0x7b, 0x83, 0x55, 0xe5, 0xd1, - 0x60, 0x55, 0xf9, 0x60, 0xb0, 0xaa, 0x7c, 0x34, 0x58, 0x55, 0xfe, 0x39, 0x58, 0x55, 0x1e, 0xfe, - 0x6b, 0xf5, 0xd4, 0xab, 0x3b, 0x27, 0xf6, 0xb7, 0xf0, 0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x5f, - 0x86, 0xfa, 0x6d, 0x79, 0x2c, 0x00, 0x00, + // 2558 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xec, 0x5a, 0x5d, 0x8c, 0x1b, 0x57, + 0x15, 0xce, 0xac, 0xbd, 0xeb, 0xf5, 0xd9, 0x9f, 0x6c, 0x6e, 0xb2, 0xd4, 0x2c, 0x74, 0x1d, 0x4d, + 0xa5, 0xaa, 0x11, 0xc4, 0x56, 0x56, 0x69, 0x88, 0x40, 0x42, 0x5a, 0xef, 0x66, 0x37, 0x9b, 0xcd, + 0x26, 0xd6, 0xf5, 0x26, 0x34, 0x85, 0x36, 0x1d, 0x8f, 0xef, 0xda, 0x83, 0xc7, 0x33, 0xc3, 0xcc, + 0x1d, 0x67, 0x5d, 0x15, 0x09, 0x0a, 0x42, 0x85, 0x22, 0x11, 0x21, 0xb5, 0x20, 0x90, 0x78, 0x41, + 0xe2, 0x1d, 0xc1, 0x23, 0x2f, 0x88, 0x97, 0x48, 0x08, 0xa9, 0x52, 0x5f, 0xca, 0x8b, 0x21, 0xe6, + 0x89, 0x47, 0xd4, 0xb7, 0x3e, 0xa1, 0xfb, 0x33, 0x7f, 0xb6, 0x37, 0x5e, 0xa4, 0x9d, 0x34, 0x95, + 0x78, 0x9b, 0x39, 0xe7, 0xdc, 0xf3, 0x9d, 0x7b, 0xee, 0xbd, 0xe7, 0x9c, 0x7b, 0x66, 0xe0, 0x5e, + 0xd3, 0xa0, 0x2d, 0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93, + 0xff, 0x04, 0xa8, 0xd8, 0x8f, 0x1e, 0xaf, 0x9e, 0xfa, 0xe0, 0xf1, 0xea, 0xa9, 0x8f, 0x1e, 0xaf, + 0x9e, 0xfa, 0xde, 0x60, 0x55, 0x79, 0x34, 0x58, 0x55, 0x3e, 0x18, 0xac, 0x2a, 0x1f, 0x0d, 0x56, + 0x95, 0x7f, 0x0e, 0x56, 0x95, 0x87, 0xff, 0x5a, 0x3d, 0xf5, 0xea, 0xce, 0x89, 0xfd, 0x73, 0xfc, + 0xdf, 0x00, 0x00, 0x00, 0xff, 0xff, 0x20, 0xaf, 0xd1, 0x04, 0xbf, 0x2c, 0x00, 0x00, } func (m *AppCluster) Marshal() (dAtA []byte, err error) { @@ -2120,6 +2121,11 @@ func (m *AppSpec) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + i -= len(m.DefaultNamespace) + copy(dAtA[i:], m.DefaultNamespace) + i = encodeVarintGenerated(dAtA, i, uint64(len(m.DefaultNamespace))) + i-- + dAtA[i] = 0x52 i-- if m.NoopDelete { dAtA[i] = 1 @@ -3487,6 +3493,8 @@ func (m *AppSpec) Size() (n int) { n += 1 + l + sovGenerated(uint64(l)) } n += 2 + l = len(m.DefaultNamespace) + n += 1 + l + sovGenerated(uint64(l)) return n } @@ -4095,6 +4103,7 @@ func (this *AppSpec) String() string { `Canceled:` + fmt.Sprintf("%v", this.Canceled) + `,`, `SyncPeriod:` + strings.Replace(fmt.Sprintf("%v", this.SyncPeriod), "Duration", "v1.Duration", 1) + `,`, `NoopDelete:` + fmt.Sprintf("%v", this.NoopDelete) + `,`, + `DefaultNamespace:` + fmt.Sprintf("%v", this.DefaultNamespace) + `,`, `}`, }, "") return s @@ -7204,6 +7213,38 @@ func (m *AppSpec) Unmarshal(dAtA []byte) error { } } m.NoopDelete = bool(v != 0) + case 10: + if wireType != 2 { + return fmt.Errorf("proto: wrong wireType = %d for field DefaultNamespace", wireType) + } + var stringLen uint64 + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowGenerated + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + stringLen |= uint64(b&0x7F) << shift + if b < 0x80 { + break + } + } + intStringLen := int(stringLen) + if intStringLen < 0 { + return ErrInvalidLengthGenerated + } + postIndex := iNdEx + intStringLen + if postIndex < 0 { + return ErrInvalidLengthGenerated + } + if postIndex > l { + return io.ErrUnexpectedEOF + } + m.DefaultNamespace = string(dAtA[iNdEx:postIndex]) + iNdEx = postIndex default: iNdEx = preIndex skippy, err := skipGenerated(dAtA[iNdEx:]) diff --git a/pkg/apis/kappctrl/v1alpha1/generated.proto b/pkg/apis/kappctrl/v1alpha1/generated.proto index 751896e47..4e1461e8f 100644 --- a/pkg/apis/kappctrl/v1alpha1/generated.proto +++ b/pkg/apis/kappctrl/v1alpha1/generated.proto @@ -280,6 +280,11 @@ message AppSpec { // (optional; default=false; v0.18.0+) // +optional optional bool noopDelete = 9; + + // Specifies the default namespace to install the App resources, by default this is + // same as the App's namespace (optional; v0.48.0+) + // +optional + optional string defaultNamespace = 10; } // +k8s:openapi-gen=true diff --git a/pkg/apis/kappctrl/v1alpha1/types.go b/pkg/apis/kappctrl/v1alpha1/types.go index ead900af1..dc89189e4 100644 --- a/pkg/apis/kappctrl/v1alpha1/types.go +++ b/pkg/apis/kappctrl/v1alpha1/types.go @@ -76,6 +76,10 @@ type AppSpec struct { // (optional; default=false; v0.18.0+) // +optional NoopDelete bool `json:"noopDelete,omitempty" protobuf:"varint,9,opt,name=noopDelete"` + // Specifies the default namespace to install the App resources, by default this is + // same as the App's namespace (optional; v0.48.0+) + // +optional + DefaultNamespace string `json:"defaultNamespace,omitempty" protobuf:"bytes,10,opt,name=defaultNamespace"` } // +k8s:openapi-gen=true diff --git a/pkg/apis/packaging/v1alpha1/package_install.go b/pkg/apis/packaging/v1alpha1/package_install.go index 5fa083aa9..0195b0840 100644 --- a/pkg/apis/packaging/v1alpha1/package_install.go +++ b/pkg/apis/packaging/v1alpha1/package_install.go @@ -75,6 +75,10 @@ type PackageInstallSpec struct { // associated resources. // +optional NoopDelete bool `json:"noopDelete,omitempty"` + // Specifies the default namespace to install the Package resources, by default this is + // same as the PackageInstall namespace (optional; v0.48.0+) + // +optional + DefaultNamespace string `json:"defaultNamespace,omitempty"` } type PackageRef struct { diff --git a/pkg/apiserver/openapi/zz_generated.openapi.go b/pkg/apiserver/openapi/zz_generated.openapi.go index c524abf65..7a8dde6a2 100644 --- a/pkg/apiserver/openapi/zz_generated.openapi.go +++ b/pkg/apiserver/openapi/zz_generated.openapi.go @@ -1000,6 +1000,13 @@ func schema_pkg_apis_kappctrl_v1alpha1_AppSpec(ref common.ReferenceCallback) com Format: "", }, }, + "defaultNamespace": { + SchemaProps: spec.SchemaProps{ + Description: "Specifies the default namespace to install the App resources, by default this is same as the App's namespace (optional; v0.48.0+)", + Type: []string{"string"}, + Format: "", + }, + }, }, }, }, diff --git a/pkg/app/app_deploy.go b/pkg/app/app_deploy.go index ae5aa08b7..6bfbd9dea 100644 --- a/pkg/app/app_deploy.go +++ b/pkg/app/app_deploy.go @@ -146,7 +146,9 @@ func (a *App) trySaveMetadata(kapp *ctldep.Kapp) { func (a *App) newKapp(kapp v1alpha1.AppDeployKapp, cancelCh chan struct{}) (*ctldep.Kapp, error) { return a.deployFactory.NewKapp(kapp, a.app.Spec.ServiceAccountName, - a.app.Spec.Cluster, cancelCh, kubeconfig.AccessLocation{Name: a.app.Name, Namespace: a.app.Namespace}) + a.app.Spec.Cluster, cancelCh, kubeconfig.AccessLocation{Name: a.app.Name, Namespace: a.app.Namespace}, + a.app.Spec.DefaultNamespace, a.app.Namespace, + ) } type cancelCondition func(v1alpha1.App) bool diff --git a/pkg/componentinfo/component_info.go b/pkg/componentinfo/component_info.go index 23313dcab..164158442 100644 --- a/pkg/componentinfo/component_info.go +++ b/pkg/componentinfo/component_info.go @@ -50,7 +50,7 @@ func (ci *ComponentInfo) KubernetesVersion(serviceAccountName string, specCluste return ci.parseAndScrubVersion(v.String()) case specCluster != nil: - accessInfo, err := ci.clusterAccess.ClusterAccess(serviceAccountName, specCluster, kubeconfig.AccessLocation{Name: objMeta.Name, Namespace: objMeta.Namespace}) + accessInfo, err := ci.clusterAccess.ClusterAccess(serviceAccountName, specCluster, kubeconfig.AccessLocation{Name: objMeta.Name, Namespace: objMeta.Namespace}, "") if err != nil { return semver.Version{}, err } diff --git a/pkg/deploy/factory.go b/pkg/deploy/factory.go index 795473668..862929c22 100644 --- a/pkg/deploy/factory.go +++ b/pkg/deploy/factory.go @@ -36,21 +36,22 @@ func NewFactory(coreClient kubernetes.Interface, kubeconfig *kubeconfig.Kubeconf // NewKapp configures and returns a deployer of type Kapp func (f Factory) NewKapp(opts v1alpha1.AppDeployKapp, saName string, - clusterOpts *v1alpha1.AppCluster, cancelCh chan struct{}, location kubeconfig.AccessLocation) (*Kapp, error) { + clusterOpts *v1alpha1.AppCluster, cancelCh chan struct{}, location kubeconfig.AccessLocation, + defaultNamespace string, appNamespace string) (*Kapp, error) { - clusterAccess, err := f.kubeconfig.ClusterAccess(saName, clusterOpts, location) + clusterAccess, err := f.kubeconfig.ClusterAccess(saName, clusterOpts, location, defaultNamespace) if err != nil { return nil, err } const suffix string = ".app" return NewKapp(suffix, opts, clusterAccess, - f.globalKappDeployRawOpts(), cancelCh, f.cmdRunner), nil + f.globalKappDeployRawOpts(), cancelCh, f.cmdRunner, appNamespace), nil } // NewKappPrivileged is used for package repositories where users aren't required to provide // a service account, so it will install resources using its own privileges. -func (f Factory) NewKappPrivilegedForPackageRepository(opts v1alpha1.AppDeployKapp, clusterAccess kubeconfig.AccessInfo, cancelCh chan struct{}) (*Kapp, error) { +func (f Factory) NewKappPrivilegedForPackageRepository(opts v1alpha1.AppDeployKapp, clusterAccess kubeconfig.AccessInfo, cancelCh chan struct{}, appNamespace string) (*Kapp, error) { const suffix string = ".pkgr" @@ -61,7 +62,7 @@ func (f Factory) NewKappPrivilegedForPackageRepository(opts v1alpha1.AppDeployKa DangerousUsePodServiceAccount: true, } - return NewKapp(suffix, opts, kconfAccess, f.globalKappDeployRawOpts(), cancelCh, f.cmdRunner), nil + return NewKapp(suffix, opts, kconfAccess, f.globalKappDeployRawOpts(), cancelCh, f.cmdRunner, appNamespace), nil } func (f Factory) globalKappDeployRawOpts() []string { diff --git a/pkg/deploy/kapp.go b/pkg/deploy/kapp.go index 44f3f6966..5618bab79 100644 --- a/pkg/deploy/kapp.go +++ b/pkg/deploy/kapp.go @@ -34,6 +34,7 @@ type Kapp struct { cancelCh chan struct{} cmdRunner exec.CmdRunner appMeta *Meta + appNamespace string } var _ Deploy = &Kapp{} @@ -42,9 +43,9 @@ var _ Deploy = &Kapp{} // additional info from the larger app resource (e.g. service account, name, namespace) as genericOpts, // and a cancel channel that gets passed through to the exec call that runs kapp. func NewKapp(appSuffix string, opts v1alpha1.AppDeployKapp, clusterAccess kubeconfig.AccessInfo, - globalDeployRawOpts []string, cancelCh chan struct{}, cmdRunner exec.CmdRunner) *Kapp { + globalDeployRawOpts []string, cancelCh chan struct{}, cmdRunner exec.CmdRunner, appNamespace string) *Kapp { - return &Kapp{appSuffix, opts, clusterAccess, globalDeployRawOpts, cancelCh, cmdRunner, nil} + return &Kapp{appSuffix, opts, clusterAccess, globalDeployRawOpts, cancelCh, cmdRunner, nil, appNamespace} } // Deploy takes the output from templating, and the app name, @@ -62,7 +63,7 @@ func (a *Kapp) Deploy(tplOutput string, startedApplyingFunc func(), metadataFile := filepath.Join(tmpMetadataDir.Path(), "app-metadata.yml") - args, err := a.addDeployArgs([]string{"deploy", "--app-metadata-file-output", metadataFile, "--prev-app", a.oldManagedName(), "-f", "-"}) + args, err := a.addDeployArgs([]string{"deploy", "--app-metadata-file-output", metadataFile, "--prev-app", a.oldManagedName(), "-f", "-", "--app-namespace", a.appNamespace}) if err != nil { return exec.NewCmdRunResultWithErr(err) } @@ -89,7 +90,7 @@ func (a *Kapp) Deploy(tplOutput string, startedApplyingFunc func(), // Delete takes the app name, it shells out, running kapp delete ... func (a *Kapp) Delete(startedApplyingFunc func(), changedFunc func(exec.CmdRunResult)) exec.CmdRunResult { - args, err := a.addDeleteArgs([]string{"delete", "--prev-app", a.oldManagedName()}) + args, err := a.addDeleteArgs([]string{"delete", "--prev-app", a.oldManagedName(), "--app-namespace", a.appNamespace}) if err != nil { return exec.NewCmdRunResultWithErr(err) } @@ -119,6 +120,7 @@ func (a *Kapp) Inspect() exec.CmdRunResult { // TODO is there a better way to deal with this? "--filter", `{"not":{"resource":{"kinds":["PodMetrics"]}}}`, "--tty", + "--app-namespace", a.appNamespace, }) if err != nil { return exec.NewCmdRunResultWithErr(err) diff --git a/pkg/kubeconfig/kubeconfig.go b/pkg/kubeconfig/kubeconfig.go index f2d53635a..7fbf5e6ea 100644 --- a/pkg/kubeconfig/kubeconfig.go +++ b/pkg/kubeconfig/kubeconfig.go @@ -47,7 +47,7 @@ func NewKubeconfig(coreClient kubernetes.Interface, log logr.Logger) *Kubeconfig // ClusterAccess takes cluster info and a ServiceAccount Name, and returns a populated kubeconfig that can connect to a cluster. // if the saName is empty then you'll connect to a cluster via the clusterOpts inside the genericOpts, otherwise you'll use the specified SA. -func (k Kubeconfig) ClusterAccess(saName string, clusterOpts *v1alpha1.AppCluster, accessLocation AccessLocation) (AccessInfo, error) { +func (k Kubeconfig) ClusterAccess(saName string, clusterOpts *v1alpha1.AppCluster, accessLocation AccessLocation, preferredNamespace string) (AccessInfo, error) { var err error var clusterAccessInfo AccessInfo @@ -67,5 +67,9 @@ func (k Kubeconfig) ClusterAccess(saName string, clusterOpts *v1alpha1.AppCluste default: return AccessInfo{}, fmt.Errorf("Expected service account or cluster specified") } + + // If preferredNamespace is "", then kubeconfig preferred namespace will be used + clusterAccessInfo.Namespace = preferredNamespace + return clusterAccessInfo, nil } diff --git a/pkg/packageinstall/app.go b/pkg/packageinstall/app.go index 17bf8f2eb..23ce547d7 100644 --- a/pkg/packageinstall/app.go +++ b/pkg/packageinstall/app.go @@ -62,6 +62,7 @@ func NewApp(existingApp *v1alpha1.App, pkgInstall *pkgingv1alpha1.PackageInstall desiredApp.Spec.Paused = pkgInstall.Spec.Paused desiredApp.Spec.Canceled = pkgInstall.Spec.Canceled desiredApp.Spec.Cluster = pkgInstall.Spec.Cluster + desiredApp.Spec.DefaultNamespace = pkgInstall.Spec.DefaultNamespace err := controllerutil.SetControllerReference(pkgInstall, desiredApp, scheme.Scheme) if err != nil { diff --git a/pkg/packageinstall/app_test.go b/pkg/packageinstall/app_test.go index 16477431e..f1c985e18 100644 --- a/pkg/packageinstall/app_test.go +++ b/pkg/packageinstall/app_test.go @@ -677,3 +677,42 @@ func TestAppPackageDetailsAnnotations(t *testing.T) { require.Equal(t, expectedObjectMeta, app.ObjectMeta) } + +// TestAppPackageIntallDefaultNamespace tests the creation of an App when using PackageInstall with a defaultNamespace defined. +func TestAppPackageIntallDefaultNamespace(t *testing.T) { + ipkg := &pkgingv1alpha1.PackageInstall{ + ObjectMeta: metav1.ObjectMeta{ + Name: "app", + Namespace: "default", + }, + Spec: pkgingv1alpha1.PackageInstallSpec{ + DefaultNamespace: "default-namespace", + SyncPeriod: &metav1.Duration{100 * time.Second}, + }, + } + + pkgVersion := datapkgingv1alpha1.Package{ + Spec: datapkgingv1alpha1.PackageSpec{ + RefName: "expec-pkg", + Version: "1.5.0", + Template: datapkgingv1alpha1.AppTemplateSpec{ + Spec: &kcv1alpha1.AppSpec{}, + }, + }, + } + + app, err := packageinstall.NewApp(&kcv1alpha1.App{}, ipkg, pkgVersion, packageinstall.Opts{}) + require.NoError(t, err) + + expectedApp := &kcv1alpha1.App{ + Spec: kcv1alpha1.AppSpec{ + DefaultNamespace: "default-namespace", + SyncPeriod: &metav1.Duration{100 * time.Second}, + }, + } + + // Not interested in metadata in this test + app.ObjectMeta = metav1.ObjectMeta{} + + require.Equal(t, expectedApp, app, "App does not match expected app") +} diff --git a/pkg/packageinstall/packageinstall.go b/pkg/packageinstall/packageinstall.go index 4c72b38ca..9745f8498 100644 --- a/pkg/packageinstall/packageinstall.go +++ b/pkg/packageinstall/packageinstall.go @@ -373,6 +373,7 @@ func (pi *PackageInstallCR) reconcileDelete(modelStatus *reconciler.Status) (rec if existingApp.Spec.Canceled != pi.model.Spec.Canceled { existingApp.Spec.Canceled = pi.model.Spec.Canceled } + existingApp.Spec.DefaultNamespace = pi.model.Spec.DefaultNamespace if !equality.Semantic.DeepEqual(existingApp, unchangeExistingApp) { existingApp, err = pi.kcclient.KappctrlV1alpha1().Apps(existingApp.Namespace).Update( diff --git a/pkg/pkgrepository/app_deploy.go b/pkg/pkgrepository/app_deploy.go index b4e29e228..1f5bc6131 100644 --- a/pkg/pkgrepository/app_deploy.go +++ b/pkg/pkgrepository/app_deploy.go @@ -73,5 +73,5 @@ func (a *App) delete() exec.CmdRunResult { func (a *App) newKapp(kapp v1alpha1.AppDeployKapp, cancelCh chan struct{}) (*ctldep.Kapp, error) { genericOpts := kubeconfig.AccessInfo{Name: a.app.Name, Namespace: a.app.Namespace} - return a.deployFactory.NewKappPrivilegedForPackageRepository(kapp, genericOpts, cancelCh) + return a.deployFactory.NewKappPrivilegedForPackageRepository(kapp, genericOpts, cancelCh, a.app.Namespace) } diff --git a/test/e2e/kappcontroller/default_namespace_test.go b/test/e2e/kappcontroller/default_namespace_test.go new file mode 100644 index 000000000..ebac6fe6f --- /dev/null +++ b/test/e2e/kappcontroller/default_namespace_test.go @@ -0,0 +1,222 @@ +// Copyright 2023 VMware, Inc. +// SPDX-License-Identifier: Apache-2.0 + +package kappcontroller + +import ( + "fmt" + "strings" + "testing" + + "github.com/stretchr/testify/assert" + "github.com/vmware-tanzu/carvel-kapp-controller/test/e2e" +) + +func Test_AppDefaultNamespace(t *testing.T) { + env := e2e.BuildEnv(t) + logger := e2e.Logger{} + kapp := e2e.Kapp{t, env.Namespace, logger} + kubectl := e2e.Kubectl{t, env.Namespace, logger} + name := "app-default-namespace" + defaultNamespace := "default-namespace" + defaultNamespaceApp := "default-namespace-app" + + cleanUp := func() { + kapp.Run([]string{"delete", "-a", name}) + kapp.Run([]string{"delete", "-a", defaultNamespaceApp}) + } + cleanUp() + defer cleanUp() + + namespaceYAML := fmt.Sprintf(`--- +apiVersion: v1 +kind: Namespace +metadata: + name: %s`, defaultNamespace) + + sas := e2e.ServiceAccounts{env.Namespace} + appYAML := fmt.Sprintf(`--- +apiVersion: kappctrl.k14s.io/v1alpha1 +kind: App +metadata: + name: %s + namespace: %s +spec: + serviceAccountName: kappctrl-e2e-ns-sa + defaultNamespace: %s + fetch: + - inline: + paths: + file.yml: | + apiVersion: v1 + kind: ConfigMap + metadata: + name: my-cm + data: + key: value + template: + - ytt: {} + deploy: + - kapp: {}`, name, env.Namespace, defaultNamespace) + sas.ForClusterYAML() + + kapp.RunWithOpts([]string{"deploy", "-a", defaultNamespaceApp, "-f", "-"}, e2e.RunOpts{StdinReader: strings.NewReader(namespaceYAML)}) + + _, err := kapp.RunWithOpts([]string{"deploy", "-a", name, "-f", "-"}, e2e.RunOpts{AllowError: true, StdinReader: strings.NewReader(appYAML)}) + assert.NoError(t, err, "Expected app deploy to succeed, it did not") + + // Assert that app resources are in defaultNamespace + kubectl.RunWithOpts([]string{"get", "configmap", "my-cm", "-n", defaultNamespace}, e2e.RunOpts{NoNamespace: true}) + + // Assert that kapp metaconfigmap is in app namespace + kubectl.RunWithOpts([]string{"get", "configmap", name + ".app", "-n", env.Namespace}, e2e.RunOpts{NoNamespace: true}) +} + +func Test_PackageInstall_DefaultNamespace(t *testing.T) { + env := e2e.BuildEnv(t) + logger := e2e.Logger{} + kapp := e2e.Kapp{t, env.Namespace, logger} + kubectl := e2e.Kubectl{t, env.Namespace, logger} + name := "app-default-namespace" + defaultNamespace := "default-namespace" + pkgiNamespace := "pkgi-namespace" + pkgiName := "test-pkgi" + appName := "test-app" + + cleanUp := func() { + kapp.Run([]string{"delete", "-a", name}) + } + cleanUp() + defer cleanUp() + + sas := e2e.ServiceAccounts{env.Namespace} + + namespacesYAML := fmt.Sprintf(` +--- +apiVersion: v1 +kind: Namespace +metadata: + name: %s +--- +apiVersion: v1 +kind: Namespace +metadata: + name: %s +`, defaultNamespace, pkgiNamespace) + + rbacYAML := sas.ForDefaultNamespaceYAML(defaultNamespace, pkgiNamespace) + + installPkgYAML := fmt.Sprintf(` +--- +apiVersion: data.packaging.carvel.dev/v1alpha1 +kind: PackageMetadata +metadata: + name: pkg.test.carvel.dev + namespace: %[1]s +spec: + # This is the name we want to reference in resources such as PackageInstall. + displayName: "Test PackageMetadata in repo" + shortDescription: "PackageMetadata used for testing" + longDescription: "A longer, more detailed description of what the package contains and what it is for" + providerName: Carvel + maintainers: + - name: carvel + categories: + - testing + supportDescription: "Description of support provided for the package" +--- +apiVersion: data.packaging.carvel.dev/v1alpha1 +kind: Package +metadata: + name: pkg.test.carvel.dev.1.0.0 + namespace: %[1]s +spec: + refName: pkg.test.carvel.dev + version: 1.0.0 + licenses: + - Apache 2.0 + capactiyRequirementsDescription: "cpu: 1,RAM: 2, Disk: 3" + releaseNotes: | + - Introduce simple-app package + releasedAt: 2021-05-05T18:57:06Z + template: + spec: + fetch: + - inline: + paths: + file.yml: | + apiVersion: v1 + kind: ConfigMap + metadata: + name: my-cm + data: + key: value + template: + - ytt: {} + deploy: + - kapp: + rawOptions: ["--app-changes-max-to-keep=0"] +--- +apiVersion: packaging.carvel.dev/v1alpha1 +kind: PackageInstall +metadata: + name: %[2]s + namespace: %[1]s + annotations: +spec: + defaultNamespace: %[3]s + serviceAccountName: kappctrl-e2e-ns-sa + packageRef: + refName: pkg.test.carvel.dev + versionSelection: + constraints: 1.0.0`, pkgiNamespace, pkgiName, defaultNamespace) + + // deploy app with workspace and pkgi + _, err := kapp.RunWithOpts([]string{"deploy", "-a", name, "-f", "-"}, e2e.RunOpts{StdinReader: strings.NewReader(appWithInlineResources(appName, namespacesYAML+rbacYAML+installPkgYAML) + sas.ForClusterYAML()), AllowError: true}) + assert.NoError(t, err, "Expected app deploy to succeed, it did not") + + // assert that pkgi resources are present in defaultNamespace + kubectl.RunWithOpts([]string{"get", "configmap", "my-cm", "-n", defaultNamespace}, e2e.RunOpts{NoNamespace: true}) + + // assert that kapp configmap is present in the pkgi namespace + kubectl.RunWithOpts([]string{"get", "configmap", pkgiName + ".app", "-n", pkgiNamespace}, e2e.RunOpts{NoNamespace: true}) + + // deploy app with workspace only, i.e. delete pkgi + _, err = kapp.RunWithOpts([]string{"deploy", "-a", name, "-f", "-"}, e2e.RunOpts{AllowError: true, StdinReader: strings.NewReader(appWithInlineResources(appName, namespacesYAML) + sas.ForClusterYAML())}) + assert.NoError(t, err, "Expected app deploy to succeed, it did not") + + cleanUp() + + // deploy app with workspace and pkgi again + _, err = kapp.RunWithOpts([]string{"deploy", "-a", name, "-f", "-"}, e2e.RunOpts{AllowError: true, StdinReader: strings.NewReader(appWithInlineResources(appName, namespacesYAML+rbacYAML+installPkgYAML) + sas.ForClusterYAML())}) + assert.NoError(t, err, "Expected app deploy to succeed, it did not") + + // delete app, i.e complete workspace along with pkgis + _, err = kapp.RunWithOpts([]string{"delete", "-a", name}, e2e.RunOpts{AllowError: true}) + assert.NoError(t, err, "Expected app delete to succeed gracefully, it did not") +} + +func appWithInlineResources(name, resources string) string { + // Add indentation for the resources as these would be added inline to the App CR + indentedResourceYAML := "" + for _, line := range strings.Split(resources, "\n") { + if line != "" { + indentedResourceYAML += " " + line + "\n" + } + } + return fmt.Sprintf(`--- +apiVersion: kappctrl.k14s.io/v1alpha1 +kind: App +metadata: + name: %s +spec: + serviceAccountName: kappctrl-e2e-ns-sa + fetch: + - inline: + paths: + file.yml: | +%s + template: + - ytt: {} + deploy: + - kapp: {}`, name, indentedResourceYAML) +} diff --git a/test/e2e/service_accounts.go b/test/e2e/service_accounts.go index 89b34e08e..e3b66ef8b 100644 --- a/test/e2e/service_accounts.go +++ b/test/e2e/service_accounts.go @@ -84,3 +84,63 @@ roleRef: name: kappctrl-e2e-ns-role `, sa.Namespace) } + +// ForDefaultNamespaceYAML can be used to get service account with permissions in defaultNamespace +func (sa ServiceAccounts) ForDefaultNamespaceYAML(defaultNamespace, pkgiNamespace string) string { + return fmt.Sprintf(` +--- +apiVersion: v1 +kind: ServiceAccount +metadata: + name: kappctrl-e2e-ns-sa + namespace: %[2]s +--- +kind: Role +apiVersion: rbac.authorization.k8s.io/v1 +metadata: + name: kappctrl-e2e-ns-role + namespace: %[1]s +rules: +- apiGroups: ["*"] + resources: ["*"] + verbs: ["*"] +--- +kind: RoleBinding +apiVersion: rbac.authorization.k8s.io/v1 +metadata: + name: kappctrl-e2e-ns-role-binding + namespace: %[1]s +subjects: +- kind: ServiceAccount + name: kappctrl-e2e-ns-sa + namespace: %[2]s +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: kappctrl-e2e-ns-role +--- +kind: Role +apiVersion: rbac.authorization.k8s.io/v1 +metadata: + name: kappctrl-e2e-ns-role + namespace: %[2]s +rules: +- apiGroups: [""] + resources: ["configmaps"] + verbs: ["get", "list", "create", "delete", "update"] +--- +kind: RoleBinding +apiVersion: rbac.authorization.k8s.io/v1 +metadata: + name: kappctrl-e2e-ns-role-binding + namespace: %[2]s +subjects: +- kind: ServiceAccount + name: kappctrl-e2e-ns-sa + namespace: %[2]s +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: Role + name: kappctrl-e2e-ns-role +`, defaultNamespace, pkgiNamespace) +}