Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Commit 3c77f68

Browse files
committed
Fix all links/directories
1 parent bb0615c commit 3c77f68

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+1686
-172
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ build: generate fmt vet manifests
103103
go build -o bin/manager ./cmd/manager/main.go
104104
GOOS=linux GOARCH=amd64 go build \
105105
-o bin/kubectl/kubectl-hns_linux_amd64 \
106-
-ldflags="-X sigs.k8s.io/multi-tenancy/incubator/hnc/internal/version.Version=${HNC_IMG_TAG}" \
106+
-ldflags="-X sigs.k8s.io/hierarchical-namespaces/internal/version.Version=${HNC_IMG_TAG}" \
107107
./cmd/kubectl/main.go
108108
GOOS=darwin GOARCH=amd64 go build \
109109
-o bin/kubectl/kubectl-hns_darwin_amd64 \
110-
-ldflags="-X sigs.k8s.io/multi-tenancy/incubator/hnc/internal/version.Version=${HNC_IMG_TAG}" \
110+
-ldflags="-X sigs.k8s.io/hierarchical-namespaces/internal/version.Version=${HNC_IMG_TAG}" \
111111
./cmd/kubectl/main.go
112112

113113
# Clean all binaries (manager and kubectl)
@@ -348,7 +348,7 @@ release: check-release-env
348348
@echo "Releasing ${HNC_RELEASE_IMG}"
349349
@echo "... override with HNC_RELEASE_REGISTRY, HNC_IMG_NAME and"
350350
@echo "... HNC_IMG_TAG."
351-
@echo "Pulling from Github multi-tenancy repo owned by ${HNC_RELEASE_REPO_OWNER}"
351+
@echo "Pulling from Github hierarchical-namespaces repo owned by ${HNC_RELEASE_REPO_OWNER}"
352352
@echo "... override with HNC_RELEASE_REPO_OWNER"
353353
@echo "GCP project: ${PROJECT_ID} (obtained from gcloud)"
354354
@echo "Temporary build image (must be in ${PROJECT_ID}): ${HNC_IMG}"

PROJECT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: "2"
22
domain: x-k8s.io
3-
repo: github.com/kubernetes-sigs/multi-tenancy
3+
repo: github.com/kubernetes-sigs/hierarchical-namespaces
44
resources:
55
- group: hnc
66
version: v1alpha1

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Credits:
2828
### Getting started and learning more
2929

3030
The [latest version of HNC is
31-
v0.8.0](https://github.com/kubernetes-sigs/multi-tenancy/releases/tag/hnc-v0.8.0).
31+
v0.8.0](https://github.com/kubernetes-sigs/hierarchical-namespaces/releases/tag/hnc-v0.8.0).
3232
To install HNC on your cluster, and the `kubectl-hns` plugin on your
3333
workstation, follow the instructions on that page.
3434

@@ -54,26 +54,26 @@ All HNC issues are assigned to an HNC milestone. So far, the following
5454
milestones are defined or planned:
5555

5656
* v1.0 - Likely late Q2 or early Q3 2021: HNC recommended for production use
57-
* [v0.9](https://github.com/kubernetes-sigs/multi-tenancy/milestone/21): move
57+
* [v0.9](https://github.com/kubernetes-sigs/hierarchical-namespaces/milestone/21): move
5858
HNC to its own repo; continued stability improvements.
59-
* [v0.8 - COMPLETE APR 2021](https://github.com/kubernetes-sigs/multi-tenancy/milestone/20):
59+
* [v0.8 - COMPLETE APR 2021](https://github.com/kubernetes-sigs/hierarchical-namespaces/milestone/20):
6060
incremental stability improvements
61-
* [v0.7 - COMPLETE DEC 2020](https://github.com/kubernetes-sigs/multi-tenancy/milestone/18):
61+
* [v0.7 - COMPLETE DEC 2020](https://github.com/kubernetes-sigs/hierarchical-namespaces/milestone/18):
6262
introduce exceptions.
63-
* [v0.6 - COMPLETE OCT 2020](https://github.com/kubernetes-sigs/multi-tenancy/milestone/14):
63+
* [v0.6 - COMPLETE OCT 2020](https://github.com/kubernetes-sigs/hierarchical-namespaces/milestone/14):
6464
introduce the v1alpha2 API and fully automated end-to-end testing.
65-
* [v0.5 - COMPLETE JUL 2020](https://github.com/kubernetes-sigs/multi-tenancy/milestone/13):
65+
* [v0.5 - COMPLETE JUL 2020](https://github.com/kubernetes-sigs/hierarchical-namespaces/milestone/13):
6666
feature simplification and improved testing and stability.
67-
* [v0.4 - COMPLETE JUN 2020](https://github.com/kubernetes-sigs/multi-tenancy/milestone/11):
67+
* [v0.4 - COMPLETE JUN 2020](https://github.com/kubernetes-sigs/hierarchical-namespaces/milestone/11):
6868
stabilize the API and add productionization features.
69-
* [v0.3 - COMPLETE APR 2020](https://github.com/kubernetes-sigs/multi-tenancy/milestone/10):
69+
* [v0.3 - COMPLETE APR 2020](https://github.com/kubernetes-sigs/hierarchical-namespaces/milestone/10):
7070
type configuration and better self-service namespace UX.
71-
* [v0.2 - COMPLETE DEC 2019](https://github.com/kubernetes-sigs/multi-tenancy/milestone/8):
71+
* [v0.2 - COMPLETE DEC 2019](https://github.com/kubernetes-sigs/hierarchical-namespaces/milestone/8):
7272
contains enough functionality to be suitable for non-production workloads.
73-
* [v0.1 - COMPLETE NOV 2019](https://github.com/kubernetes-sigs/multi-tenancy/milestone/7):
73+
* [v0.1 - COMPLETE NOV 2019](https://github.com/kubernetes-sigs/hierarchical-namespaces/milestone/7):
7474
an initial release with all basic functionality so you can play with it, but
7575
not suitable for any real workloads.
76-
* [Backlog](https://github.com/kubernetes-sigs/multi-tenancy/milestone/9):
76+
* [Backlog](https://github.com/kubernetes-sigs/hierarchical-namespaces/milestone/9):
7777
all unscheduled work.
7878

7979
## Contributing to HNC
@@ -159,7 +159,7 @@ cycle looks like the following:
159159
not set, we'll skip any tests that include modifying the HNC deployement,
160160
e.g. to bypass webhooks.
161161
- If you deploy to Kind, the tests that use Network Policies may fail. See
162-
https://github.com/kubernetes-sigs/multi-tenancy/issues/1098.
162+
https://github.com/kubernetes-sigs/hierarchical-namespaces/issues/1098.
163163
- Once you're ready to make a pull request, please follow the following
164164
instructions:
165165
- Each PR should contain _one commit_. If you have multiple commits (either
@@ -168,7 +168,7 @@ cycle looks like the following:
168168
any changes to your fork of this repo.
169169
- Ensure your commit message includes a "Tested:" section explaining in
170170
reasonable detail what you did to test your change.
171-
[Here](https://github.com/kubernetes-sigs/multi-tenancy/commit/ce983662e87264c76f92dbfbab7cef7bd6128837)
171+
[Here](https://github.com/kubernetes-sigs/hierarchical-namespaces/commit/ce983662e87264c76f92dbfbab7cef7bd6128837)
172172
is a good example. A minimal message might be something like "Added new
173173
test; verified that the test failed before my change and passed after it;
174174
ran e2e tests."

api/v1alpha2/hnc_config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ type HNCConfigurationSpec struct {
144144
// Note that 'roles' and 'rolebindings' are pre-configured by HNC with
145145
// 'Propagate' mode and are omitted in the spec. Any configuration of 'roles'
146146
// or 'rolebindings' are not allowed. To learn more, see
147-
// https://github.com/kubernetes-sigs/multi-tenancy/blob/master/incubator/hnc/docs/user-guide/how-to.md#admin-types
147+
// https://github.com/kubernetes-sigs/hierarchical-namespaces/blob/master/docs/user-guide/how-to.md#admin-types
148148
Resources []ResourceSpec `json:"resources,omitempty"`
149149
}
150150

@@ -157,7 +157,7 @@ type HNCConfigurationStatus struct {
157157
// "ActivitiesHalted" reason, this means that HNC cannot function in the
158158
// affected namespaces. The HierarchyConfiguration object in each of the
159159
// affected namespaces will have more information. To learn more about
160-
// conditions, see https://github.com/kubernetes-sigs/multi-tenancy/blob/master/incubator/hnc/docs/user-guide/concepts.md#admin-conditions.
160+
// conditions, see https://github.com/kubernetes-sigs/hierarchical-namespaces/blob/master/docs/user-guide/concepts.md#admin-conditions.
161161
Conditions []Condition `json:"conditions,omitempty"`
162162
}
163163

cloudbuild.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ steps:
77
- '-c'
88
- |
99
set -e
10-
echo Cloning from https://github.com/$_HNC_REPO_OWNER/multi-tenancy
11-
git clone https://github.com/$_HNC_REPO_OWNER/multi-tenancy
12-
cd multi-tenancy
10+
echo Cloning from https://github.com/$_HNC_REPO_OWNER/hierarchical-namespaces
11+
git clone https://github.com/$_HNC_REPO_OWNER/hierarchical-namespaces
12+
cd hierarchical-namespaces
1313
echo Checking out hnc-$_HNC_IMG_TAG
1414
git checkout hnc-$_HNC_IMG_TAG
1515
# Build the manifests and the kubectl plugin
@@ -19,7 +19,7 @@ steps:
1919
- '-c'
2020
- |
2121
set -e
22-
cd multi-tenancy/incubator/hnc
22+
cd hierarchical-namespaces
2323
export HNC_REGISTRY=$_HNC_REGISTRY
2424
export HNC_IMG_NAME=$_HNC_IMG_NAME
2525
export HNC_IMG_TAG=$_HNC_IMG_TAG
@@ -35,10 +35,10 @@ steps:
3535
- '-H'
3636
- 'Content-Type: application/x-application'
3737
- '--data-binary'
38-
- '@multi-tenancy/incubator/hnc/manifests/hnc-manager.yaml'
38+
- '@hierarchical-namespaces/manifests/hnc-manager.yaml'
3939
- '-u'
4040
- '$_HNC_USER:$_HNC_PERSONAL_ACCESS_TOKEN'
41-
- 'https://uploads.github.com/repos/$_HNC_REPO_OWNER/multi-tenancy/releases/$_HNC_RELEASE_ID/assets?name=hnc-manager.yaml'
41+
- 'https://uploads.github.com/repos/$_HNC_REPO_OWNER/hierarchical-namespaces/releases/$_HNC_RELEASE_ID/assets?name=hnc-manager.yaml'
4242
# Upload plugin (Linux)
4343
- name: gcr.io/cloud-builders/curl
4444
args:
@@ -47,10 +47,10 @@ steps:
4747
- '-H'
4848
- 'Content-Type: application/x-application'
4949
- '--data-binary'
50-
- '@multi-tenancy/incubator/hnc/bin/kubectl/kubectl-hns_linux_amd64'
50+
- '@hierarchical-namespaces/bin/kubectl/kubectl-hns_linux_amd64'
5151
- '-u'
5252
- '$_HNC_USER:$_HNC_PERSONAL_ACCESS_TOKEN'
53-
- 'https://uploads.github.com/repos/$_HNC_REPO_OWNER/multi-tenancy/releases/$_HNC_RELEASE_ID/assets?name=kubectl-hns_linux_amd64'
53+
- 'https://uploads.github.com/repos/$_HNC_REPO_OWNER/hierarchical-namespaces/releases/$_HNC_RELEASE_ID/assets?name=kubectl-hns_linux_amd64'
5454
# Upload plugin (Darwin)
5555
- name: gcr.io/cloud-builders/curl
5656
args:
@@ -59,10 +59,10 @@ steps:
5959
- '-H'
6060
- 'Content-Type: application/x-application'
6161
- '--data-binary'
62-
- '@multi-tenancy/incubator/hnc/bin/kubectl/kubectl-hns_darwin_amd64'
62+
- '@hierarchical-namespaces/bin/kubectl/kubectl-hns_darwin_amd64'
6363
- '-u'
6464
- '$_HNC_USER:$_HNC_PERSONAL_ACCESS_TOKEN'
65-
- 'https://uploads.github.com/repos/$_HNC_REPO_OWNER/multi-tenancy/releases/$_HNC_RELEASE_ID/assets?name=kubectl-hns_darwin_amd64'
65+
- 'https://uploads.github.com/repos/$_HNC_REPO_OWNER/hierarchical-namespaces/releases/$_HNC_RELEASE_ID/assets?name=kubectl-hns_darwin_amd64'
6666
# Upload plugin (Krew tar file)
6767
- name: gcr.io/cloud-builders/curl
6868
args:
@@ -71,10 +71,10 @@ steps:
7171
- '-H'
7272
- 'Content-Type: application/x-application'
7373
- '--data-binary'
74-
- '@multi-tenancy/incubator/hnc/bin/kubectl-hns.tar.gz'
74+
- '@hierarchical-namespaces/bin/kubectl-hns.tar.gz'
7575
- '-u'
7676
- '$_HNC_USER:$_HNC_PERSONAL_ACCESS_TOKEN'
77-
- 'https://uploads.github.com/repos/$_HNC_REPO_OWNER/multi-tenancy/releases/$_HNC_RELEASE_ID/assets?name=kubectl-hns.tar.gz'
77+
- 'https://uploads.github.com/repos/$_HNC_REPO_OWNER/hierarchical-namespaces/releases/$_HNC_RELEASE_ID/assets?name=kubectl-hns.tar.gz'
7878
# Upload plugin (Krew manifest file - to add to the Krew index)
7979
- name: gcr.io/cloud-builders/curl
8080
args:
@@ -83,12 +83,12 @@ steps:
8383
- '-H'
8484
- 'Content-Type: application/x-application'
8585
- '--data-binary'
86-
- '@multi-tenancy/incubator/hnc/manifests/krew-kubectl-hns.yaml'
86+
- '@hierarchical-namespaces/manifests/krew-kubectl-hns.yaml'
8787
- '-u'
8888
- '$_HNC_USER:$_HNC_PERSONAL_ACCESS_TOKEN'
89-
- 'https://uploads.github.com/repos/$_HNC_REPO_OWNER/multi-tenancy/releases/$_HNC_RELEASE_ID/assets?name=krew-kubectl-hns.yaml'
89+
- 'https://uploads.github.com/repos/$_HNC_REPO_OWNER/hierarchical-namespaces/releases/$_HNC_RELEASE_ID/assets?name=krew-kubectl-hns.yaml'
9090
# Build Docker image
9191
- name: gcr.io/cloud-builders/docker
92-
args: ['build', '-t', 'gcr.io/$PROJECT_ID/$_HNC_IMG_NAME:$_HNC_IMG_TAG', 'multi-tenancy/incubator/hnc']
92+
args: ['build', '-t', 'gcr.io/$PROJECT_ID/$_HNC_IMG_NAME:$_HNC_IMG_TAG', 'hierarchical-namespaces']
9393

9494
images: ['gcr.io/$PROJECT_ID/$_HNC_IMG_NAME:$_HNC_IMG_TAG']

cmd/kubectl/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616
package main
1717

1818
import (
19-
"sigs.k8s.io/multi-tenancy/incubator/hnc/internal/kubectl"
19+
"sigs.k8s.io/hierarchical-namespaces/internal/kubectl"
2020
)
2121

2222
func main() {

cmd/manager/main.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ import (
3838

3939
// +kubebuilder:scaffold:imports
4040

41-
v1a2 "sigs.k8s.io/multi-tenancy/incubator/hnc/api/v1alpha2"
42-
"sigs.k8s.io/multi-tenancy/incubator/hnc/internal/config"
43-
"sigs.k8s.io/multi-tenancy/incubator/hnc/internal/forest"
44-
"sigs.k8s.io/multi-tenancy/incubator/hnc/internal/reconcilers"
45-
"sigs.k8s.io/multi-tenancy/incubator/hnc/internal/stats"
46-
"sigs.k8s.io/multi-tenancy/incubator/hnc/internal/validators"
41+
v1a2 "sigs.k8s.io/hierarchical-namespaces/api/v1alpha2"
42+
"sigs.k8s.io/hierarchical-namespaces/internal/config"
43+
"sigs.k8s.io/hierarchical-namespaces/internal/forest"
44+
"sigs.k8s.io/hierarchical-namespaces/internal/reconcilers"
45+
"sigs.k8s.io/hierarchical-namespaces/internal/stats"
46+
"sigs.k8s.io/hierarchical-namespaces/internal/validators"
4747
)
4848

4949
var (
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
2+
---
3+
apiVersion: apiextensions.k8s.io/v1
4+
kind: CustomResourceDefinition
5+
metadata:
6+
annotations:
7+
controller-gen.kubebuilder.io/version: v0.5.0
8+
creationTimestamp: null
9+
name: hierarchyconfigurations.hnc.x-k8s.io
10+
spec:
11+
group: hnc.x-k8s.io
12+
names:
13+
kind: HierarchyConfiguration
14+
listKind: HierarchyConfigurationList
15+
plural: hierarchyconfigurations
16+
singular: hierarchyconfiguration
17+
scope: Namespaced
18+
versions:
19+
- name: v1alpha2
20+
schema:
21+
openAPIV3Schema:
22+
description: Hierarchy is the Schema for the hierarchies API
23+
properties:
24+
apiVersion:
25+
description: 'APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
26+
type: string
27+
kind:
28+
description: 'Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
29+
type: string
30+
metadata:
31+
type: object
32+
spec:
33+
description: HierarchySpec defines the desired state of Hierarchy
34+
properties:
35+
allowCascadingDeletion:
36+
description: AllowCascadingDeletion indicates if the subnamespaces of this namespace are allowed to cascading delete.
37+
type: boolean
38+
parent:
39+
description: Parent indicates the parent of this namespace, if any.
40+
type: string
41+
type: object
42+
status:
43+
description: HierarchyStatus defines the observed state of Hierarchy
44+
properties:
45+
children:
46+
description: Children indicates the direct children of this namespace, if any.
47+
items:
48+
type: string
49+
type: array
50+
conditions:
51+
description: Conditions describes the errors, if any.
52+
items:
53+
description: "Condition contains details for one aspect of the current state of this API Resource. --- This struct is intended for direct use as an array at the field path .status.conditions. For example, type FooStatus struct{ // Represents the observations of a foo's current state. // Known .status.conditions.type are: \"Available\", \"Progressing\", and \"Degraded\" // +patchMergeKey=type // +patchStrategy=merge // +listType=map // +listMapKey=type Conditions []metav1.Condition `json:\"conditions,omitempty\" patchStrategy:\"merge\" patchMergeKey:\"type\" protobuf:\"bytes,1,rep,name=conditions\"` \n // other fields }"
54+
properties:
55+
lastTransitionTime:
56+
description: lastTransitionTime is the last time the condition transitioned from one status to another. This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable.
57+
format: date-time
58+
type: string
59+
message:
60+
description: message is a human readable message indicating details about the transition. This may be an empty string.
61+
maxLength: 32768
62+
type: string
63+
observedGeneration:
64+
description: observedGeneration represents the .metadata.generation that the condition was set based upon. For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date with respect to the current state of the instance.
65+
format: int64
66+
minimum: 0
67+
type: integer
68+
reason:
69+
description: reason contains a programmatic identifier indicating the reason for the condition's last transition. Producers of specific condition types may define expected values and meanings for this field, and whether the values are considered a guaranteed API. The value should be a CamelCase string. This field may not be empty.
70+
maxLength: 1024
71+
minLength: 1
72+
pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$
73+
type: string
74+
status:
75+
description: status of the condition, one of True, False, Unknown.
76+
enum:
77+
- "True"
78+
- "False"
79+
- Unknown
80+
type: string
81+
type:
82+
description: type of condition in CamelCase or in foo.example.com/CamelCase. --- Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be useful (see .node.status.conditions), the ability to deconflict is important. The regex it matches is (dns1123SubdomainFmt/)?(qualifiedNameFmt)
83+
maxLength: 316
84+
pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$
85+
type: string
86+
required:
87+
- lastTransitionTime
88+
- message
89+
- reason
90+
- status
91+
- type
92+
type: object
93+
type: array
94+
type: object
95+
type: object
96+
served: true
97+
storage: true
98+
status:
99+
acceptedNames:
100+
kind: ""
101+
plural: ""
102+
conditions: []
103+
storedVersions: []

0 commit comments

Comments
 (0)